Skip to content

Instantly share code, notes, and snippets.

@entrofi
Created November 21, 2019 08:42
Show Gist options
  • Save entrofi/c93ef1312b56f6b0b78f67c117b7e433 to your computer and use it in GitHub Desktop.
Save entrofi/c93ef1312b56f6b0b78f67c117b7e433 to your computer and use it in GitHub Desktop.
Groovy Script to disable jenkins setup wizard
#!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