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 toonSetupWizardInitialized
with 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 InstallState
CONFIGURE_INSTANCE
static InstallState
CREATE_ADMIN_USER
Creating an admin user for an initial Jenkins install.static InstallState
DEVELOPMENT
Jenkins started in development mode: Boolean.getBoolean("hudson.Main.development").static InstallState
DOWNGRADE
Downgrade of an existing Jenkins install.static InstallState
INITIAL_PLUGINS_INSTALLING
New Jenkins install.static InstallState
INITIAL_SECURITY_SETUP
Security setup for a new Jenkins install.static InstallState
INITIAL_SETUP_COMPLETED
The initial set up has been completedstatic InstallState
NEW
New Jenkins install.static InstallState
RESTART
Restart of an existing Jenkins install.static InstallState
RUNNING
After any setup / restart / etc.static InstallState
TEST
Jenkins started in test mode (JenkinsRule).static InstallState
UNKNOWN
Need InstallState != NEW for tests by defaultstatic InstallState
UPGRADE
Upgrade 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 boolean
equals(Object obj)
int
hashCode()
void
initializeState()
Process any initialization this install state requiresboolean
isSetupComplete()
Indicates the initial setup is completeString
name()
protected Object
readResolve()
String
toString()
static InstallState
valueOf(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
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
public String name()
-
valueOf
@CheckForNull public static InstallState valueOf(@NonNull String name)
Find an install state by name
-
-