Trying to execute a sudo command from my Jenkins executor, I get the title error.
On the host machine(executor) I have configured the sudoers file to contain this line: jenkins ALL=(ALL) NOPASSWD: ALL at the very end.
The command which I am trying to run is sudo service tomcat8 restart.
Checking the available answers I got all I need or am I missing something?