|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.Cause
@ExportedBean public abstract class Cause
Cause object base class. This class hierarchy is used to keep track of why
a given build was started. This object encapsulates the UI rendering of the cause,
as well as providing more useful information in respective subypes.
The Cause object is connected to a build via the CauseAction object.
Run.getCauses(),
Queue.Item.getCauses()| Nested Class Summary | |
|---|---|
static class |
Cause.LegacyCodeCause
Deprecated. since 2009-02-08 |
static class |
Cause.RemoteCause
|
static class |
Cause.UpstreamCause
A build is triggered by the completion of another build (AKA upstream build.) |
static class |
Cause.UserCause
Deprecated. 1.428 use Cause.UserIdCause |
static class |
Cause.UserIdCause
A build is started by an user action. |
| Constructor Summary | |
|---|---|
Cause()
|
|
| Method Summary | |
|---|---|
abstract String |
getShortDescription()
One-line human-readable text of the cause. |
void |
onAddedTo(AbstractBuild build)
Called when the cause is registered to AbstractBuild. |
void |
print(TaskListener listener)
Report a line to the listener about this cause. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cause()
| Method Detail |
|---|
@Exported(visibility=3) public abstract String getShortDescription()
By default, this method is used to render HTML as well.
public void onAddedTo(AbstractBuild build)
AbstractBuild.
build - never nullpublic void print(TaskListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||