|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jenkinsci.plugins.periodicreincarnation.Utils
public class Utils
Utility class.
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
protected static PeriodicReincarnationGlobalConfiguration.RegEx |
checkBuild(hudson.model.Run<?,?> build)
Checks if a certain build matches any of the given regular expressions. |
protected static boolean |
qualifyForUnchangedRestart(hudson.model.Project<?,?> project)
If there were no changes between the last 2 builds of a project and the last build failed but the previous didn't, then this project is being restarted if this unchanged restart option is enabled. |
protected static void |
restart(hudson.model.Project<?,?> project,
PeriodicReincarnationGlobalConfiguration config,
String cause,
PeriodicReincarnationGlobalConfiguration.RegEx regEx)
Helper method for restarting a project. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
protected static boolean qualifyForUnchangedRestart(hudson.model.Project<?,?> project)
project - the project.
protected static void restart(hudson.model.Project<?,?> project,
PeriodicReincarnationGlobalConfiguration config,
String cause,
PeriodicReincarnationGlobalConfiguration.RegEx regEx)
throws IOException,
InterruptedException
project - the project.config - instance of periodic reincarnation configuration.cause - the cause for the restart.regEx - regual expression
IOException
InterruptedExceptionprotected static PeriodicReincarnationGlobalConfiguration.RegEx checkBuild(hudson.model.Run<?,?> build)
build - the build.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||