hudson.model
Class Cause.UpstreamCause

java.lang.Object
  extended by hudson.model.Cause
      extended by hudson.model.Cause.UpstreamCause
Enclosing class:
Cause

public static class Cause.UpstreamCause
extends Cause

A build is triggered by the completion of another build (AKA upstream build.)


Nested Class Summary
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
Cause.UpstreamCause(AbstractBuild<?,?> up)
          Deprecated. since 2009-02-28
Cause.UpstreamCause(Run<?,?> up)
           
 
Method Summary
 String getShortDescription()
          One-line human-readable text of the cause.
 int getUpstreamBuild()
           
 List<Cause> getUpstreamCauses()
           
 String getUpstreamProject()
           
 Run<?,?> getUpstreamRun()
           
 String getUpstreamUrl()
           
 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()
           
 
Methods inherited from class hudson.model.Cause
onAddedTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cause.UpstreamCause

public Cause.UpstreamCause(AbstractBuild<?,?> up)
Deprecated. since 2009-02-28


Cause.UpstreamCause

public Cause.UpstreamCause(Run<?,?> up)
Method Detail

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()

getUpstreamCauses

public List<Cause> getUpstreamCauses()

getShortDescription

public String getShortDescription()
Description copied from class: Cause
One-line human-readable text of the cause.

By default, this method is used to render HTML as well.

Specified by:
getShortDescription in class Cause

print

public void print(TaskListener listener)
Description copied from class: Cause
Report a line to the listener about this cause.

Overrides:
print in class Cause

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2013. All Rights Reserved.