@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class InstallUtil extends Object
Modifier and Type | Field and Description |
---|---|
static VersionNumber |
NEW_INSTALL_VERSION |
Constructor and Description |
---|
InstallUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
clearInstallStatus()
Call to remove any active install status
|
static String |
getLastExecVersion()
Get the last saved Jenkins instance version.
|
static Map<String,String> |
getPersistedInstallStatus()
Returns a list of any plugins that are persisted in the installing list
|
static void |
persistInstallStatus(List<UpdateCenter.UpdateCenterJob> installingPlugins)
Persists a list of installing plugins; this is used in the case Jenkins fails mid-installation and needs to be restarted
|
static void |
proceedToNextStateFrom(InstallState prior)
Proceed to the state following the provided one
|
static void |
saveLastExecVersion()
Save the current Jenkins instance version as the last executed version.
|
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final VersionNumber NEW_INSTALL_VERSION
public static void proceedToNextStateFrom(InstallState prior)
public static void saveLastExecVersion()
This state information is required in order to determine whether or not the Jenkins instance is just restarting, or is being upgraded from an earlier version.
@NonNull public static String getLastExecVersion()
saveLastExecVersion()
@CheckForNull public static Map<String,String> getPersistedInstallStatus()
public static void persistInstallStatus(List<UpdateCenter.UpdateCenterJob> installingPlugins)
installingPlugins
- public static void clearInstallStatus()
Copyright © 2004–2021. All rights reserved.