|
|||||||||
| 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 RegEx |
checkBuild(hudson.model.Run<?,?> build)
Checks if a certain build matches any of the given regular expressions. |
protected static boolean |
checkBuild(hudson.model.Run<?,?> build,
RegEx regEx)
Checks if a certain build matches the given regular expression. |
protected static void |
execAction(hudson.model.Project<?,?> project,
String nodeAction,
String masterAction)
Executes script actions for a given project. |
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,
String cause,
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,
String cause,
RegEx regEx)
project - the project.cause - the cause for the restart.regEx - regual expression
IOException
InterruptedExceptionprotected static RegEx checkBuild(hudson.model.Run<?,?> build)
build - the build.
protected static boolean checkBuild(hudson.model.Run<?,?> build,
RegEx regEx)
build - the build.regEx - the regular expression.
protected static void execAction(hudson.model.Project<?,?> project,
String nodeAction,
String masterAction)
throws IOException,
InterruptedException
project - the projectnodeAction - the nodeActionmasterAction - the masterAction
IOException - input/output problem
InterruptedException - interrupt exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||