Package jenkins.model
Class CauseOfInterruption
- java.lang.Object
-
- jenkins.model.CauseOfInterruption
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CauseOfInterruption.UserInterruption
@ExportedBean public abstract class CauseOfInterruption extends Object implements Serializable
Records why an executor is interrupted.View
summary.groovy/.jellyshould do one-line HTML rendering to be used while rendering "build history" widget, next to the blocking build. By default it simply rendersgetShortDescription()text.Value equality semantics
Two
CauseOfInterruptions that are equal will get merged together.Persistence
The implementation should be serializable both in Java serialization and XStream.- Since:
- 1.425
- Author:
- Kohsuke Kawaguchi
- See Also:
Executor.interrupt(Result, CauseOfInterruption...),InterruptedBuildAction, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCauseOfInterruption.UserInterruptionIndicates that the build was interrupted from UI.
-
Constructor Summary
Constructors Constructor Description CauseOfInterruption()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetShortDescription()Human readable description of why the build is cancelled.voidprint(TaskListener listener)Report a line to the listener about this cause.
-
-
-
Method Detail
-
getShortDescription
@Exported public abstract String getShortDescription()
Human readable description of why the build is cancelled.
-
print
public void print(TaskListener listener)
Report a line to the listener about this cause.
-
-