Package jenkins.install
Class InstallUtil
java.lang.Object
jenkins.install.InstallUtil
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class InstallUtil
extends Object
Jenkins install utilities.
- Author:
- tom.fennelly@gmail.com
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Call to remove any active install statusstatic String
Get the last saved Jenkins instance version.Returns a list of any plugins that are persisted in the installing liststatic 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 restartedstatic void
Proceed to the state following the provided onestatic void
Save the current Jenkins instance version as the last executed version.
-
Field Details
-
NEW_INSTALL_VERSION
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final VersionNumber NEW_INSTALL_VERSION
-
-
Constructor Details
-
InstallUtil
public InstallUtil()
-
-
Method Details
-
proceedToNextStateFrom
Proceed to the state following the provided one -
saveLastExecVersion
public static void saveLastExecVersion()Save the current Jenkins instance version as the last executed version.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.
-
getLastExecVersion
Get the last saved Jenkins instance version.- Returns:
- The last saved Jenkins instance version.
- See Also:
-
getPersistedInstallStatus
Returns a list of any plugins that are persisted in the installing list -
persistInstallStatus
Persists a list of installing plugins; this is used in the case Jenkins fails mid-installation and needs to be restarted -
clearInstallStatus
public static void clearInstallStatus()Call to remove any active install status
-