Class ConditionalDependencyWrapper
- java.lang.Object
-
- hudson.model.DependencyGraph.Dependency
-
- org.jenkinsci.plugins.conditionalbuildstep.dependency.ConditionalDependencyWrapper
-
public class ConditionalDependencyWrapper extends DependencyGraph.Dependency
WrapsDependencyGraph.Dependency
and evaluatesRunCondition
when the dependency is triggered.
-
-
Constructor Summary
Constructors Constructor Description ConditionalDependencyWrapper(DependencyGraph.Dependency dep, org.jenkins_ci.plugins.run_condition.RunCondition condition, org.jenkins_ci.plugins.run_condition.BuildStepRunner runner)
-
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()
boolean
shouldTriggerBuild(AbstractBuild build, TaskListener listener, List<Action> actions)
Determines whether the downstream project should be launched.-
Methods inherited from class hudson.model.DependencyGraph.Dependency
toString
-
-
-
-
Constructor Detail
-
ConditionalDependencyWrapper
public ConditionalDependencyWrapper(DependencyGraph.Dependency dep, org.jenkins_ci.plugins.run_condition.RunCondition condition, org.jenkins_ci.plugins.run_condition.BuildStepRunner runner)
-
-
Method Detail
-
shouldTriggerBuild
public boolean shouldTriggerBuild(AbstractBuild build, TaskListener listener, List<Action> actions)
Determines whether the downstream project should be launched.RunCondition
is evaluated.
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classDependencyGraph.Dependency
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDependencyGraph.Dependency
-
getDownstreamProject
public AbstractProject getDownstreamProject()
- Overrides:
getDownstreamProject
in classDependencyGraph.Dependency
-
getUpstreamProject
public AbstractProject getUpstreamProject()
- Overrides:
getUpstreamProject
in classDependencyGraph.Dependency
-
pointsItself
public boolean pointsItself()
- Overrides:
pointsItself
in classDependencyGraph.Dependency
-
-