@ExportedBean public abstract class Cause extends Object
CauseAction
object.
Run.getCauses()
,
Queue.Item.getCauses()
Modifier and Type | Class and Description |
---|---|
static class |
Cause.LegacyCodeCause
Deprecated.
since 2009-02-08
|
static class |
Cause.RemoteCause |
static class |
Cause.UpstreamCause
A build is triggered by 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 and Description |
---|
Cause() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getShortDescription()
One-line human-readable text of the cause.
|
void |
onAddedTo(AbstractBuild build)
Deprecated.
|
void |
onAddedTo(Run build)
Called when the cause is registered.
|
void |
onLoad(AbstractBuild<?,?> build)
Deprecated.
|
void |
onLoad(Run<?,?> build)
Called when a build is loaded from disk.
|
void |
print(TaskListener listener)
Report a line to the listener about this cause.
|
@Exported(visibility=3) public abstract String getShortDescription()
By default, this method is used to render HTML as well.
public void onAddedTo(@NonNull Run build)
@Deprecated public void onAddedTo(AbstractBuild build)
public void onLoad(@NonNull Run<?,?> build)
transient
.@Deprecated public void onLoad(AbstractBuild<?,?> build)
public void print(TaskListener listener)
Copyright © 2004–2021. All rights reserved.