I have a EC2 instance running. How can I run commands with
sudo through Jenkins?
When I try
sudo touch /home/ec2-user/foo.bar, I get the following error:
sudo: no tty present and no askpass program specified.
What am I doing wrong?
By default sudo cannot be used without a TTY. In order to do so: