Created
July 27, 2022 10:08
-
-
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 )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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