We are running Jenkins in a docker container and using the Docker-outside-of-Docker approach. As is well documented, we added:
jenkins ALL=NOPASSWD: ALL
to /etc/sudoers.
http://container-solutions.com/running-docker-in-jenkins-in-docker/
How to fix 'sudo: no tty present and no askpass program specified' error?
The problem we face is that our pipeline job randomly fails when executing the first make command:
sudo -E make login
with the error:
sudo: no tty present and no askpass program specified
Why are we experiencing this error only sometimes?