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 class
Cause.UpstreamCause.ConverterImpl
static class
Cause.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 boolean
equals(Object rhs)
String
getShortDescription()
One-line human-readable text of the cause.int
getUpstreamBuild()
List<Cause>
getUpstreamCauses()
String
getUpstreamProject()
Run<?,?>
getUpstreamRun()
String
getUpstreamUrl()
int
hashCode()
void
onLoad(Job<?,?> _job, int _buildNumber)
boolean
pointsTo(Job<?,?> j)
Returns true if this cause points to a build in the specified job.boolean
pointsTo(Run<?,?> r)
Returns true if this cause points to the specified build.void
print(TaskListener listener)
Report a line to the listener about this cause.String
toString()
-
-
-
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:Cause
One-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.jelly
view for your subclass. See the documentation.- Specified by:
getShortDescription
in classCause
-
print
public void print(TaskListener listener)
Description copied from class:Cause
Report a line to the listener about this cause.
-
-