Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[FIX JENKINS-33663] - Upgrade wizard
Add Upgrade Wizard Add 'replace' handlebars method in jenkins.js Fix state transitions to follow a single basic pattern Suggested plugins selected by default Add an install state for INITIAL_SECURITY_SETUP Removed duplicate setupWizard.js on page [FIX JENKINS-34676] Exclude plugins which are already installed when determining platform Change 'snooze' to not look like a 'close' button Make sure unlock screen doesn't show up after new install Add compatibility check when offering suggested plugins More appropriate handling of security token filter
- Loading branch information
Showing
41 changed files
with
1,122 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
core/src/main/java/jenkins/install/InstallStateFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package jenkins.install; | ||
|
||
import java.util.List; | ||
|
||
import javax.inject.Provider; | ||
|
||
import hudson.ExtensionList; | ||
import hudson.ExtensionPoint; | ||
|
||
/** | ||
* Allows plugging in to the lifecycle when determining InstallState | ||
* from {@link InstallUtil#getNextInstallState(InstallState)} | ||
*/ | ||
public abstract class InstallStateFilter implements ExtensionPoint { | ||
/** | ||
* Determine the current or next install state, proceed with `return proceed.next()` | ||
*/ | ||
public abstract InstallState getNextInstallState(InstallState current, Provider<InstallState> proceed); | ||
|
||
/** | ||
* Get all the InstallStateFilters, in extension order | ||
*/ | ||
public static List<InstallStateFilter> all() { | ||
return ExtensionList.lookup(InstallStateFilter.class); | ||
} | ||
} |
Oops, something went wrong.