How to fix ‘sudo: no tty present and no askpass program specified’ error? Use NOPASSWD line for all commands, I mean: jenkins ALL=(ALL) NOPASSWD: ALL Put the line after all other lines in the sudoers file. Rate this:Share this: Share on X (Opens in new window) X Share on Facebook (Opens in new window) Facebook Like Loading...