Authentication error in jenkins on using sudo Authentication error in jenkins on using sudo jenkins jenkins

Authentication error in jenkins on using sudo


sudo su    visudo -f /etc/sudoers

add add following line at the end.

jenkins ALL= NOPASSWD: ALL


username ALL= NOPASSWD: ALL in sudoers worked in ubuntu server 12.04.2