인프라/젠킨스(jenkins)
[jenkins] 젠킨스 에러 sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
IT맥구리나스
2023. 5. 3. 11:37
개요
- 젠킨스 빌드 실행시 아래와 같은 에러가 발생한다.
- build step에 shellscript 실행 구문이 있고 sudo로 실행하려고 할 때 발생
sudo /data/ansible/file/win_test.sh
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
Build step 'Execute shell' marked build as failure
Finished: FAILURE
해결방법
/etc/sudoers에 아래 내역 추가
jenkins ALL=(ALL) NOPASSWD: ALL
반응형