Package hudson.model
Class DependencyGraph.Dependency
java.lang.Object
hudson.model.DependencyGraph.Dependency
- Enclosing class:
- DependencyGraph
Represents an edge in the dependency graph.
- Since:
- 1.341
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
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.toString()
-
Constructor Details
-
Dependency
-
-
Method Details
-
getUpstreamProject
-
getDownstreamProject
-
shouldTriggerBuild
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? -
equals
-
hashCode
public int hashCode() -
toString
-