Not sure about you guys but I used to stop/restart Jenkins using cmd prompt only but it looks like we have an optimized way to stop/restart i.e. through the Jenkins instance itself.
Jenkins provides a set of commands to safely stop/restart Jenkins by putting it in a quiet mode.
1) quietDown: Put Jenkins in a Quiet mode, in preparation for a restart. In that mode, Jenkins doesn’t start any build
2) cancelQuietDown: Cancel the effect of the “quiet-down” command.
3) safeRestart: Put Jenkins into the quiet mode, wait for existing builds to be completed, and then restart Jenkins.
4) safeExit: Put Jenkins into the quiet mode, wait for existing builds to be completed, and then shut down Jenkins.
Just hit these URLs on the browser where your jenkins is running by replacing "<jenkins.server>" with your Jenkins domain URL.
http://<jenkins.server>/restart
http://<jenkins.server>/safeRestart
http://<jenkins.server>/exit
http://<jenkins.server>/safeExit
http://<jenkins.server>/quietDown
http://<jenkins.server>/cancelQuietDown
Note* Only user(s) with the required permission can use these commands.
Jenkins provides a set of commands to safely stop/restart Jenkins by putting it in a quiet mode.
1) quietDown: Put Jenkins in a Quiet mode, in preparation for a restart. In that mode, Jenkins doesn’t start any build
2) cancelQuietDown: Cancel the effect of the “quiet-down” command.
3) safeRestart: Put Jenkins into the quiet mode, wait for existing builds to be completed, and then restart Jenkins.
4) safeExit: Put Jenkins into the quiet mode, wait for existing builds to be completed, and then shut down Jenkins.
Just hit these URLs on the browser where your jenkins is running by replacing "<jenkins.server>" with your Jenkins domain URL.
http://<jenkins.server>/restart
http://<jenkins.server>/safeRestart
http://<jenkins.server>/exit
http://<jenkins.server>/safeExit
http://<jenkins.server>/quietDown
http://<jenkins.server>/cancelQuietDown
Note* Only user(s) with the required permission can use these commands.
Comments
Post a Comment