Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save julianxhokaxhiu/545bf27b9db05176ae66349c5d178835 to your computer and use it in GitHub Desktop.
Save julianxhokaxhiu/545bf27b9db05176ae66349c5d178835 to your computer and use it in GitHub Desktop.
Put Jenkins in maintenance mode ( prevent new jobs to be run, hold them in queue )
import jenkins.model.Jenkins;
// Start Jenkins in maintenance mode
Jenkins.instance.doQuietDown();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment