public static class DependencyGraph.Dependency extends Object
Constructor and Description |
---|
Dependency(AbstractProject upstream,
AbstractProject downstream) |
Modifier and Type | Method and 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() |
public Dependency(AbstractProject upstream, AbstractProject downstream)
public AbstractProject getUpstreamProject()
public AbstractProject getDownstreamProject()
public boolean shouldTriggerBuild(AbstractBuild build, TaskListener listener, List<Action> actions)
The authentication in effect (Jenkins.getAuthentication()
) 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.
build
- Build of upstream project that just completedlistener
- For any error/log outputactions
- Add Actions for the triggered build to this list; never nullpublic boolean pointsItself()
Copyright © 2017. All rights reserved.