Package hudson.model
Class DependencyGraph.Dependency
- java.lang.Object
-
- hudson.model.DependencyGraph.Dependency
-
- Enclosing class:
- DependencyGraph
public static class DependencyGraph.Dependency extends Object
Represents an edge in the dependency graph.- Since:
- 1.341
-
-
Constructor Summary
Constructors Constructor Description Dependency(AbstractProject upstream, AbstractProject downstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
AbstractProject
getDownstreamProject()
AbstractProject
getUpstreamProject()
int
hashCode()
boolean
pointsItself()
Does this method point to itself?boolean
shouldTriggerBuild(AbstractBuild build, TaskListener listener, List<Action> actions)
Decide whether build should be triggered and provide any Actions for the build.String
toString()
-
-
-
Constructor Detail
-
Dependency
public Dependency(AbstractProject upstream, AbstractProject downstream)
-
-
Method Detail
-
getUpstreamProject
public AbstractProject getUpstreamProject()
-
getDownstreamProject
public AbstractProject getDownstreamProject()
-
shouldTriggerBuild
public boolean shouldTriggerBuild(AbstractBuild build, TaskListener listener, List<Action> actions)
Decide whether build should be triggered and provide any Actions for the build. Default implementation always returns true (for backward compatibility), and adds no Actions. Subclasses may override to control how/if the build is triggered.The authentication in effect (
Jenkins.getAuthentication2()
) will be that of the upstream build. An implementation is expected to perform any relevant access control checks: that an upstream project can both see and build a downstream project, or that a downstream project can see an upstream project.- Parameters:
build
- Build of upstream project that just completedlistener
- For any error/log outputactions
- Add Actions for the triggered build to this list; never null- Returns:
- True to trigger a build of the downstream project
-
pointsItself
public boolean pointsItself()
Does this method point to itself?
-
-