-2

I have a shell script to do deployment on a remote server. But I didn't have full root privileges for that server and it asks password for every steps (4-5 times while executing the script).

Now, I want to run the shell script using Jenkins. How to configure jenkins to give the password while executing the shell script in remote server.

Thanks in advance

1 Answers1

0

Add myuser ALL=(ALL) NOPASSWD: ALL in /etc/sudoers.

Note: Replace myuser with your actual username.

Niraj Nandane
  • 1,318
  • 1
  • 13
  • 24