Created
November 21, 2019 08:42
-
-
Save entrofi/c93ef1312b56f6b0b78f67c117b7e433 to your computer and use it in GitHub Desktop.
Groovy Script to disable jenkins setup wizard
This file contains hidden or 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
#!groovy | |
import jenkins.model.* | |
import hudson.util.*; | |
import jenkins.install.*; | |
def instance = Jenkins.getInstance() | |
instance.setInstallState(InstallState.INITIAL_SETUP_COMPLETED) | |
//or -Djenkins.install.runSetupWizard=false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment