@StaplerAccessibleType public class InstallState extends Object implements ExtensionPoint
upgradeWizard.js
for an exampleExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and 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 completed
|
static 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 default
|
static InstallState |
UPGRADE
Upgrade of an existing Jenkins install.
|
Constructor and Description |
---|
InstallState(String name,
boolean isSetupComplete) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
initializeState()
Process any initialization this install state requires
|
boolean |
isSetupComplete()
Indicates the initial setup is complete
|
String |
name() |
protected Object |
readResolve()
|
String |
toString() |
static InstallState |
valueOf(String name)
Find an install state by name
|
@Extension public static final InstallState UNKNOWN
@Extension public static final InstallState RUNNING
@Extension public static final InstallState INITIAL_SETUP_COMPLETED
@Extension public static final InstallState CREATE_ADMIN_USER
@Extension public static final InstallState CONFIGURE_INSTANCE
@Extension public static final InstallState INITIAL_PLUGINS_INSTALLING
@Extension public static final InstallState INITIAL_SECURITY_SETUP
@Extension public static final InstallState NEW
@Extension public static final InstallState RESTART
@Extension public static final InstallState UPGRADE
@Extension public static final InstallState DOWNGRADE
public static final InstallState TEST
public static final InstallState DEVELOPMENT
public InstallState(@NonNull String name, boolean isSetupComplete)
public void initializeState()
@Deprecated protected Object readResolve()
Creating a writeReplace
does not help much since XStream then just saves:
<installState class="jenkins.install.InstallState$CreateAdminUser" resolves-to="jenkins.install.InstallState">
UNUSED_INNER_CLASSES
public boolean isSetupComplete()
public String name()
@CheckForNull public static InstallState valueOf(@NonNull String name)
name
- Copyright © 2004–2021. All rights reserved.