Package jenkins.model
Class BlockedBecauseOfBuildInProgress
- java.lang.Object
-
- hudson.model.queue.CauseOfBlockage
-
- jenkins.model.BlockedBecauseOfBuildInProgress
-
- Direct Known Subclasses:
AbstractProject.BecauseOfBuildInProgress
public class BlockedBecauseOfBuildInProgress extends CauseOfBlockage
Indicates that a new build is blocked because the previous build is already in progress. Useful for implementingQueue.Task.getCauseOfBlockage()
from aJob
which supportsQueue.Task.isConcurrentBuild()
.- Since:
- 1.624
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.queue.CauseOfBlockage
CauseOfBlockage.BecauseLabelIsBusy, CauseOfBlockage.BecauseLabelIsOffline, CauseOfBlockage.BecauseNodeIsBusy, CauseOfBlockage.BecauseNodeIsNotAcceptingTasks, CauseOfBlockage.BecauseNodeIsOffline
-
-
Constructor Summary
Constructors Constructor Description BlockedBecauseOfBuildInProgress(Run<?,?> build)
Creates a cause for the specified build.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getShortDescription()
Human readable description of why the build is blocked.-
Methods inherited from class hudson.model.queue.CauseOfBlockage
createNeedsMoreExecutor, fromMessage, print, toString
-
-
-
-
Constructor Detail
-
BlockedBecauseOfBuildInProgress
public BlockedBecauseOfBuildInProgress(@NonNull Run<?,?> build)
Creates a cause for the specified build.- Parameters:
build
- Build, which is already in progress
-
-
Method Detail
-
getShortDescription
public String getShortDescription()
Description copied from class:CauseOfBlockage
Human readable description of why the build is blocked.- Specified by:
getShortDescription
in classCauseOfBlockage
-
-