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
use multijob plugin READ MORE
You have to open the /var/log/jenkins/jenkins.log file to ...READ MORE
Here is a snippet from our Jenkins ...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 run the following code, its ...READ MORE
To automatically run build on code commit, follow ...READ MORE
Already have an account? Sign in.