Saturday, January 27, 2018

sudo: no tty present and no askpass program specified - How to fix no tty present and no askpass program specified error?

You may get this error during deployment to Tomcat from Jenkins. 
The fix for deployment to Tomcat from Jenkins is:

type --> sudo visudo
look for root and make the changes highlighted in red and save the file and re-do the deployment in Jenkins.

# User privilege specification 


root ALL=(ALL:ALL) ALL 
jenkins ALL=(ALL) NOPASSWD: ALL

No comments:

Post a Comment