title: Jenkins sudo: no tty present and no askpass program specified with NOPASSWD
body: <p>I spend several days setting up the file <code>/etc/sudoers</code> to be able to give permissions to root to the user <code>jenkins</code>. I have Jenkins installed on my server because I host several projects with symfony, ionic, neo4j, etc... The problem is that I can not do build in the projects with ionic, I get this error:<code>sudo: no tty present and no askpass program specified.</code> This is the content of my /etc/sudoers file:</p>
  
  <pre><code>#
  # This file MUST be edited with the 'visudo' command as root.
  #
  # Please consider adding local content in /etc/sudoers.d/ instead of
  # directly modifying this file.
  #
  # See the man page for details on how to write a sudoers file.
  #
  Defaults    env_reset
  Defaults    mail_badpass
  Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  
  # Host alias specification
  
  # User alias specification
  
  # Cmnd alias specification
  
  # User privilege specification
  root    ALL=(ALL:ALL) ALL
  jenkins ALL=(ALL) NOPASSWD: ALL
  # Allow members of group sudo to execute any command
  %sudo   ALL=(ALL:ALL) ALL
  </code></pre>