public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
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.AbstractProject<?,?> project,
String nodeAction,
String masterAction)
Executes script actions for a given project.
|
protected static boolean |
qualifyForUnchangedRestart(hudson.model.AbstractProject<?,?> 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.AbstractProject<?,?> project,
String cause,
RegEx regEx,
int quietPeriod)
Helper method for restarting a project.
|
protected static boolean qualifyForUnchangedRestart(hudson.model.AbstractProject<?,?> project)
project - the project.protected static void restart(hudson.model.AbstractProject<?,?> project,
String cause,
RegEx regEx,
int quietPeriod)
project - the project.cause - the cause for the restart.regEx - regual expression.quietPeriod - amount of time a job will wait in the queue(in seconds).IOExceptionInterruptedExceptionprotected 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.AbstractProject<?,?> project,
String nodeAction,
String masterAction)
throws IOException,
InterruptedException
project - the projectnodeAction - the nodeActionmasterAction - the masterActionIOException - input/output problemInterruptedException - interrupt exceptionCopyright © 2004–2014. All rights reserved.