Package jenkins.install
Class InstallState
java.lang.Object
jenkins.install.InstallState
- All Implemented Interfaces:
ExtensionPoint
Jenkins install state.
In order to hook into the setup wizard lifecycle, you should
include something in a script that call
to
onSetupWizardInitialized with a callback- Author:
- tom.fennelly@gmail.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InstallStatestatic final InstallStateCreating an admin user for an initial Jenkins install.static final InstallStateJenkins started in development mode: Boolean.getBoolean("hudson.Main.development").static final InstallStateDowngrade of an existing Jenkins install.static final InstallStateNew Jenkins install.static final InstallStateSecurity setup for a new Jenkins install.static final InstallStateThe initial set up has been completedstatic final InstallStateNew Jenkins install.static final InstallStateRestart of an existing Jenkins install.static final InstallStateAfter any setup / restart / etc.static final InstallStateJenkins started in test mode (JenkinsRule).static final InstallStateNeed InstallState != NEW for tests by defaultstatic final InstallStateUpgrade of an existing Jenkins install. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidProcess any initialization this install state requiresbooleanIndicates the initial setup is completename()protected ObjectDeprecated.toString()static InstallStateFind an install state by name
-
Field Details
-
UNKNOWN
Need InstallState != NEW for tests by default -
RUNNING
After any setup / restart / etc. hooks are done, states should be running -
INITIAL_SETUP_COMPLETED
The initial set up has been completed -
CREATE_ADMIN_USER
Creating an admin user for an initial Jenkins install. -
CONFIGURE_INSTANCE
-
INITIAL_PLUGINS_INSTALLING
New Jenkins install. The user has kicked off the process of installing an initial set of plugins (via the install wizard). -
INITIAL_SECURITY_SETUP
Security setup for a new Jenkins install. -
NEW
New Jenkins install. -
RESTART
Restart of an existing Jenkins install. -
UPGRADE
Upgrade of an existing Jenkins install. -
DOWNGRADE
Downgrade of an existing Jenkins install. -
TEST
Jenkins started in test mode (JenkinsRule). -
DEVELOPMENT
Jenkins started in development mode: Boolean.getBoolean("hudson.Main.development"). Can be run normally with the -Djenkins.install.runSetupWizard=true
-
-
Constructor Details
-
InstallState
-
-
Method Details
-
initializeState
public void initializeState()Process any initialization this install state requires -
readResolve
Deprecated.Should no longer be used, asJenkinsnow saves onlyname.The actual class name is irrelevant; this is functionally an enum.Creating a
writeReplacedoes not help much since XStream then just saves:<installState class="jenkins.install.InstallState$CreateAdminUser" resolves-to="jenkins.install.InstallState">- See Also:
-
UNUSED_INNER_CLASSES
-
isSetupComplete
public boolean isSetupComplete()Indicates the initial setup is complete -
name
-
hashCode
public int hashCode() -
equals
-
toString
-
valueOf
Find an install state by name
-
Jenkinsnow saves onlyname.