Package hudson.model
Class Cause.UpstreamCause
- java.lang.Object
-
- hudson.model.Cause
-
- hudson.model.Cause.UpstreamCause
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCause.UpstreamCause.ConverterImplstatic classCause.UpstreamCause.DeeplyNestedUpstreamCause-
Nested classes/interfaces inherited from class hudson.model.Cause
Cause.LegacyCodeCause, Cause.RemoteCause, Cause.UpstreamCause, Cause.UserCause, Cause.UserIdCause
-
-
Constructor Summary
Constructors Constructor Description UpstreamCause(AbstractBuild<?,?> up)Deprecated.since 2009-02-28UpstreamCause(Run<?,?> up)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object rhs)StringgetShortDescription()One-line human-readable text of the cause.intgetUpstreamBuild()List<Cause>getUpstreamCauses()StringgetUpstreamProject()Run<?,?>getUpstreamRun()StringgetUpstreamUrl()inthashCode()voidonLoad(Job<?,?> _job, int _buildNumber)booleanpointsTo(Job<?,?> j)Returns true if this cause points to a build in the specified job.booleanpointsTo(Run<?,?> r)Returns true if this cause points to the specified build.voidprint(TaskListener listener)Report a line to the listener about this cause.StringtoString()
-
-
-
Constructor Detail
-
UpstreamCause
@Deprecated public UpstreamCause(AbstractBuild<?,?> up)
Deprecated.since 2009-02-28
-
UpstreamCause
public UpstreamCause(Run<?,?> up)
-
-
Method Detail
-
onLoad
public void onLoad(@NonNull Job<?,?> _job, int _buildNumber)
-
pointsTo
public boolean pointsTo(Job<?,?> j)
Returns true if this cause points to a build in the specified job.
-
pointsTo
public boolean pointsTo(Run<?,?> r)
Returns true if this cause points to the specified build.
-
getUpstreamProject
@Exported(visibility=3) public String getUpstreamProject()
-
getUpstreamBuild
@Exported(visibility=3) public int getUpstreamBuild()
-
getUpstreamRun
@CheckForNull public Run<?,?> getUpstreamRun()
- Since:
- 1.505
-
getUpstreamUrl
@Exported(visibility=3) public String getUpstreamUrl()
-
getShortDescription
public String getShortDescription()
Description copied from class:CauseOne-line human-readable text of the cause. Historically, this method's return value was used to render HTML on the UI as well. Since Jenkins 2.315 and 2.303.2, the return value is interpreted as text. To have rich HTML output on the UI, provide a customdescription.jellyview for your subclass. See the documentation.- Specified by:
getShortDescriptionin classCause
-
print
public void print(TaskListener listener)
Description copied from class:CauseReport a line to the listener about this cause.
-
-