Jenkins running tomcat8 sudo: no tty present and no askpass program specified with NOPASSWD

Viewed 1453

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?

2 Answers
Related