title: Jenkins running tomcat8 sudo: no tty present and no askpass program specified with NOPASSWD
body: <p>Trying to execute a <code>sudo</code> command from my Jenkins executor, I get the title error. </p>
  
  <p>On the host machine(executor) I have configured the <code>sudoers</code> file to contain this line: <code>jenkins ALL=(ALL) NOPASSWD: ALL</code> at the very end. </p>
  
  <p>The command which I am trying to run is <code>sudo service tomcat8 restart</code>. </p>
  
  <p>Checking the available answers I got all I need or am I missing something?</p>