问:为什么在jenkins随机获取'sudo:没有tty present,没有askpass程序指定'错误?

我们在Docker容器中运行Jenkins,并使用Docker-Docker方法。 据了解,我们补充道:

jenkins ALL=NOPASSWD: ALL 

到/ etc / sudoers。

  • http://container-solutions.com/running-docker-in-jenkins-in-docker/

  • 如何解决'sudo:没有tty目前没有askpass程序指定'错误?

我们面临的问题是,执行第一个make命令时,我们的pipe道作业会随机失败:

 sudo -E make login 

与错误:

 sudo: no tty present and no askpass program specified 

为什么我们有时只会遇到这个错误?