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
Modifier and TypeFieldDescriptionstatic final InstallState
static final InstallState
Creating an admin user for an initial Jenkins install.static final InstallState
Jenkins started in development mode: Boolean.getBoolean("hudson.Main.development").static final InstallState
Downgrade of an existing Jenkins install.static final InstallState
New Jenkins install.static final InstallState
Security setup for a new Jenkins install.static final InstallState
The initial set up has been completedstatic final InstallState
New Jenkins install.static final InstallState
Restart of an existing Jenkins install.static final InstallState
After any setup / restart / etc.static final InstallState
Jenkins started in test mode (JenkinsRule).static final InstallState
Need InstallState != NEW for tests by defaultstatic final InstallState
Upgrade of an existing Jenkins install. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
Process any initialization this install state requiresboolean
Indicates the initial setup is completename()
protected Object
Deprecated.toString()
static InstallState
Find 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, asJenkins
now saves onlyname
.The actual class name is irrelevant; this is functionally an enum.Creating a
writeReplace
does 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
-
Jenkins
now saves onlyname
.