Class JobRunnerForCause
- java.lang.Object
-
- org.jenkinsci.plugins.github.pullrequest.trigger.JobRunnerForCause
-
- All Implemented Interfaces:
com.google.common.base.Predicate<GitHubPRCause>
,Predicate<GitHubPRCause>
public class JobRunnerForCause extends Object implements com.google.common.base.Predicate<GitHubPRCause>
- Author:
- lanwen (Merkushev Kirill)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
JobRunnerForCause.CauseHasPRNum
protected static class
JobRunnerForCause.CausesFromAction
-
Constructor Summary
Constructors Constructor Description JobRunnerForCause(Job<?,?> job, GitHubPRTrigger trigger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
abortRunning(int number)
boolean
apply(GitHubPRCause cause)
int
cancelQueuedBuildByPrNumber(int id)
Cancel previous builds for specified PR id.QueueTaskFuture<?>
startJob(GitHubPRCause cause)
QueueTaskFuture<?>
startJob(GitHubPRCause cause, Cause additionalCause)
-
-
-
Constructor Detail
-
JobRunnerForCause
public JobRunnerForCause(Job<?,?> job, GitHubPRTrigger trigger)
-
-
Method Detail
-
apply
public boolean apply(GitHubPRCause cause)
- Specified by:
apply
in interfacecom.google.common.base.Predicate<GitHubPRCause>
-
abortRunning
public int abortRunning(int number) throws IllegalAccessException
- Throws:
IllegalAccessException
-
cancelQueuedBuildByPrNumber
public int cancelQueuedBuildByPrNumber(int id)
Cancel previous builds for specified PR id.
-
startJob
public QueueTaskFuture<?> startJob(GitHubPRCause cause)
-
startJob
public QueueTaskFuture<?> startJob(GitHubPRCause cause, @CheckForNull Cause additionalCause)
-
-