Skip to content

Jenkins

Marton Bur edited this page Mar 22, 2018 · 1 revision

Allow sudo for Jenkins

sudo su    
visudo -f /etc/sudoers

add add following line at the end.

jenkins ALL= NOPASSWD: ALL

You can also specify what scripts can Jenkins run as sudo:

jenkins ALL = NOPASSWD: /home/user/deploy.sh
Clone this wiki locally