I have one build machine which has a user abc which is has limited sudo access. When I check out the source code and run my build script, it works fine. The build script contains sudo calls for which it does not say sudo: no tty present and no askpass program specified. But when I did same thing with Jenkins on a build machine added as slave, it shows sudo: no tty present and no askpass program specified.I have found one solution saying to comment out Default requiretty in the file /etc/sudoers. But I dont have access to this file.How I can overcome this problem?
Call sudo from Jenkins
sudo;tty;not root user;jenkins