I have configured Jenkins on the Linux system. I want to run a script as root in Jenkins. How can I do that?
You need to run the script with Sudo. This will run the script with root privileges.
$ sudo /path/to/script
But before you must allow Jenkins to run the script in /etc/sudoers.
jenkins ALL = NOPASSWD: /path/to/script
You could use the Post Build Task Plugin ...READ MORE
If you are talking about executing another ...READ MORE
use multijob plugin READ MORE
You have to open the /var/log/jenkins/jenkins.log file to ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
You can do this task by sharing ...READ MORE
You can assign your Jenkins Job to ...READ MORE
Already have an account? Sign in.