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 Summary
Modifier and TypeClassDescriptionstatic final class
Build is blocked because everyone that matches the specified label is fully busystatic final class
Build is blocked because all the nodes that match a given label is offline.static final class
Build is blocked because a node is fully busystatic final class
Build is blocked because a node (or its retention strategy) is not accepting tasks.static final class
Build is blocked because a node is offline. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CauseOfBlockage
createNeedsMoreExecutor
(org.jvnet.localizer.Localizable l) static CauseOfBlockage
fromMessage
(org.jvnet.localizer.Localizable l) Obtains a simple implementation backed byLocalizable
.abstract String
Human readable description of why the build is blocked.void
print
(TaskListener listener) Report a line to the listener about this cause.toString()
-
Constructor Details
-
CauseOfBlockage
public CauseOfBlockage()
-
-
Method Details