Package hudson.model.queue
Class CauseOfBlockage
java.lang.Object
hudson.model.queue.CauseOfBlockage
- Direct Known Subclasses:
- AbstractProject.BecauseOfDownstreamBuildInProgress,- AbstractProject.BecauseOfUpstreamBuildInProgress,- BlockedBecauseOfBuildInProgress,- CauseOfBlockage.BecauseLabelIsBusy,- CauseOfBlockage.BecauseLabelIsOffline,- CauseOfBlockage.BecauseNodeIsBusy,- CauseOfBlockage.BecauseNodeIsNotAcceptingTasks,- CauseOfBlockage.BecauseNodeIsOffline,- CompositeCauseOfBlockage
If something is blocked/vetoed, this object represents why.
 
 Originally, this is added for Queue.Task stuck in the queue, but since then the use of this
 has expanded beyond queues.
 
View
summary.jelly should do one-line HTML rendering to be used showing the cause
 to the user. By default it simply renders getShortDescription() text.
 For queues, this is used while rendering the "build history" widget.
- Since:
- 1.330
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classBuild is blocked because everyone that matches the specified label is fully busystatic final classBuild is blocked because all the nodes that match a given label is offline.static final classBuild is blocked because a node is fully busystatic final classBuild is blocked because a node (or its retention strategy) is not accepting tasks.static final classBuild is blocked because a node is offline.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic CauseOfBlockagecreateNeedsMoreExecutor(org.jvnet.localizer.Localizable l) static CauseOfBlockagefromMessage(org.jvnet.localizer.Localizable l) Obtains a simple implementation backed byLocalizable.abstract StringHuman readable description of why the build is blocked.booleanisFatal()voidprint(TaskListener listener) Report a line to the listener about this cause.toString()
- 
Constructor Details- 
CauseOfBlockagepublic CauseOfBlockage()
 
- 
- 
Method Details- 
getShortDescriptionHuman readable description of why the build is blocked.
- 
isFatalpublic boolean isFatal()- Returns:
- trueif the blockage is fatal and the item should be removed from the queue.
- Since:
- 2.532
 
- 
printReport a line to the listener about this cause.
- 
fromMessageObtains a simple implementation backed byLocalizable.
- 
toString
- 
createNeedsMoreExecutor
 
-