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 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

      public static void proceedToNextStateFrom(InstallState prior)
      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

      @NonNull public static String getLastExecVersion()
      Get the last saved Jenkins instance version.
      Returns:
      The last saved Jenkins instance version.
      See Also:
    • getPersistedInstallStatus

      @CheckForNull public static Map<String,String> getPersistedInstallStatus()
      Returns a list of any plugins that are persisted in the installing list
    • persistInstallStatus

      public 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
    • clearInstallStatus

      public static void clearInstallStatus()
      Call to remove any active install status