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
public abstract class CauseOfBlockage extends Object
If something is blocked/vetoed, this object represents why.Originally, this is added for
Queue.Taskstuck in the queue, but since then the use of this has expanded beyond queues.View
summary.jellyshould do one-line HTML rendering to be used showing the cause to the user. By default it simply rendersgetShortDescription()text.For queues, this is used while rendering the "build history" widget.
- Since:
- 1.330
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCauseOfBlockage.BecauseLabelIsBusyBuild is blocked because everyone that matches the specified label is fully busystatic classCauseOfBlockage.BecauseLabelIsOfflineBuild is blocked because all the nodes that match a given label is offline.static classCauseOfBlockage.BecauseNodeIsBusyBuild is blocked because a node is fully busystatic classCauseOfBlockage.BecauseNodeIsNotAcceptingTasksBuild is blocked because a node (or its retention strategy) is not accepting tasks.static classCauseOfBlockage.BecauseNodeIsOfflineBuild is blocked because a node is offline.
-
Constructor Summary
Constructors Constructor Description CauseOfBlockage()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CauseOfBlockagecreateNeedsMoreExecutor(org.jvnet.localizer.Localizable l)static CauseOfBlockagefromMessage(org.jvnet.localizer.Localizable l)Obtains a simple implementation backed byLocalizable.abstract StringgetShortDescription()Human readable description of why the build is blocked.voidprint(TaskListener listener)Report a line to the listener about this cause.StringtoString()
-
-
-
Method Detail
-
getShortDescription
public abstract String getShortDescription()
Human readable description of why the build is blocked.
-
print
public void print(TaskListener listener)
Report a line to the listener about this cause.
-
fromMessage
public static CauseOfBlockage fromMessage(@NonNull org.jvnet.localizer.Localizable l)
Obtains a simple implementation backed byLocalizable.
-
createNeedsMoreExecutor
public static CauseOfBlockage createNeedsMoreExecutor(org.jvnet.localizer.Localizable l)
-
-