Package jenkins.install
Class InstallState
- java.lang.Object
-
- jenkins.install.InstallState
-
- All Implemented Interfaces:
ExtensionPoint
@StaplerAccessibleType public class InstallState extends Object implements ExtensionPoint
Jenkins install state. In order to hook into the setup wizard lifecycle, you should include something in a script that call toonSetupWizardInitializedwith a callback- Author:
- tom.fennelly@gmail.com
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static InstallStateCONFIGURE_INSTANCEstatic InstallStateCREATE_ADMIN_USERCreating an admin user for an initial Jenkins install.static InstallStateDEVELOPMENTJenkins started in development mode: Boolean.getBoolean("hudson.Main.development").static InstallStateDOWNGRADEDowngrade of an existing Jenkins install.static InstallStateINITIAL_PLUGINS_INSTALLINGNew Jenkins install.static InstallStateINITIAL_SECURITY_SETUPSecurity setup for a new Jenkins install.static InstallStateINITIAL_SETUP_COMPLETEDThe initial set up has been completedstatic InstallStateNEWNew Jenkins install.static InstallStateRESTARTRestart of an existing Jenkins install.static InstallStateRUNNINGAfter any setup / restart / etc.static InstallStateTESTJenkins started in test mode (JenkinsRule).static InstallStateUNKNOWNNeed InstallState != NEW for tests by defaultstatic InstallStateUPGRADEUpgrade of an existing Jenkins install.
-
Constructor Summary
Constructors Constructor Description InstallState(String name, boolean isSetupComplete)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()voidinitializeState()Process any initialization this install state requiresbooleanisSetupComplete()Indicates the initial setup is completeStringname()protected ObjectreadResolve()StringtoString()static InstallStatevalueOf(String name)Find an install state by name
-
-
-
Field Detail
-
UNKNOWN
@Extension public static final InstallState UNKNOWN
Need InstallState != NEW for tests by default
-
RUNNING
@Extension public static final InstallState RUNNING
After any setup / restart / etc. hooks are done, states should be running
-
INITIAL_SETUP_COMPLETED
@Extension public static final InstallState INITIAL_SETUP_COMPLETED
The initial set up has been completed
-
CREATE_ADMIN_USER
@Extension public static final InstallState CREATE_ADMIN_USER
Creating an admin user for an initial Jenkins install.
-
CONFIGURE_INSTANCE
@Extension public static final InstallState CONFIGURE_INSTANCE
-
INITIAL_PLUGINS_INSTALLING
@Extension public static final InstallState 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
@Extension public static final InstallState INITIAL_SECURITY_SETUP
Security setup for a new Jenkins install.
-
NEW
@Extension public static final InstallState NEW
New Jenkins install.
-
RESTART
@Extension public static final InstallState RESTART
Restart of an existing Jenkins install.
-
UPGRADE
@Extension public static final InstallState UPGRADE
Upgrade of an existing Jenkins install.
-
DOWNGRADE
@Extension public static final InstallState DOWNGRADE
Downgrade of an existing Jenkins install.
-
TEST
public static final InstallState TEST
Jenkins started in test mode (JenkinsRule).
-
DEVELOPMENT
public static final InstallState DEVELOPMENT
Jenkins started in development mode: Boolean.getBoolean("hudson.Main.development"). Can be run normally with the -Djenkins.install.runSetupWizard=true
-
-
Constructor Detail
-
InstallState
public InstallState(@NonNull String name, boolean isSetupComplete)
-
-
Method Detail
-
initializeState
public void initializeState()
Process any initialization this install state requires
-
readResolve
@Deprecated protected Object readResolve()
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
public String name()
-
valueOf
@CheckForNull public static InstallState valueOf(@NonNull String name)
Find an install state by name
-
-