I'm running jenkins on Ubuntu 16.04 and one of my makefiles has a sudo command. When it runs I see this error in the output:sudo: no tty present and no askpass program specifiedI had the same issue very recently with a CentOS machine and made the changes to the sudoers file. However ubuntu 16.04 doesn't have the option to comment out requiretty. I've added jenkins as a user that doesn't require a password:jenkins ALL = (root) NOPASSWD:ALLThis works fine, I can sudo as the jenkins user without being prompted for a password. I've also tried adding: Defaults:jenkins !requirettyThis doesn't seem to have had the required effect. Can anyone help with this?TIA
Disable requiretty on ubuntu 16.04 for jenkins?
linux;ubuntu;sudo