su - jenkins
해봤자 바로 터미널 세션이 꺼져버린다.
우분투 18 기준 아래 명령어로 젠킨스사용자로 터미널에 접속
root$ su -s /bin/bash jenkins
bash-4.2$ whoami
jenkins
bash-4.2$ aws configure
AWS Access Key ID [None]: ****
AWS Secret Access Key [None]: ****
Default region name [None]:
Default output format [None]:
bash-4.2$
bash-4.2$ aws configure list
Name Value Type Location
---- ----- ---- --------
profile <not set> None None
access_key ****************abcd shared-credentials-file
secret_key ****************abcd shared-credentials-file
region <not set> None None
bash-4.2$ exit
다시 빌드 파이프라인을 실행하면 제대로 돌아감