Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2281 from kzantow/JENKINS-33663-upgrade-wizard
[JENKINS-33663] - Upgrade wizard
- 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.