We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sudo
sudo su visudo -f /etc/sudoers
add add following line at the end.
jenkins ALL= NOPASSWD: ALL
source: https://stackoverflow.com/questions/17940612/authentication-error-in-jenkins-on-using-sudo#20241946
You can also specify what scripts can Jenkins run as sudo:
jenkins ALL = NOPASSWD: /home/user/deploy.sh