본문 바로가기
인프라/젠킨스(jenkins)

[JENKINS] 젠킨스 에러 We trust you have received the usual lecture from the local System

by IT맥구리나스 2024. 2. 2.

개요

젠킨스에서 빌드 단계에서 shell script를 수행 시도시 아래와 같은 에러가 발생한다.

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Build step 'Execute shell' marked build as failure
Finished: FAILURE

 

 

해결방법

젠킨스가 SUDO 권한을 얻지못해 발생하는 에러다.

 

/etc/sudoers에서 아래 코드 입력 후 저장

jenkins ALL=(ALL) NOPASSWD: ALL

 

반응형

댓글