Class ConditionalDependencyGraphWrapper
- java.lang.Object
-
- hudson.model.DependencyGraph
-
- org.jenkinsci.plugins.conditionalbuildstep.dependency.ConditionalDependencyGraphWrapper
-
- All Implemented Interfaces:
Comparator<AbstractProject>
public class ConditionalDependencyGraphWrapper extends DependencyGraph
WrapsDependencyGraph
and appendRunCondition
toDependencyGraph.Dependency
. Methods other than addDependency are just calling methods of wrappedDependencyGraph
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.DependencyGraph
DependencyGraph.Dependency
-
-
Field Summary
-
Fields inherited from class hudson.model.DependencyGraph
EMPTY
-
-
Constructor Summary
Constructors Constructor Description ConditionalDependencyGraphWrapper(DependencyGraph graph, 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 void
addDependency(DependencyGraph.Dependency dep)
Add dependency.void
build()
int
compare(AbstractProject o1, AbstractProject o2)
<T> T
getComputationalData(Class<T> key)
List<AbstractProject>
getDownstream(AbstractProject p)
List<DependencyGraph.Dependency>
getDownstreamDependencies(AbstractProject p)
Set<AbstractProject>
getTransitiveDownstream(AbstractProject src)
Set<AbstractProject>
getTransitiveUpstream(AbstractProject src)
List<AbstractProject>
getUpstream(AbstractProject p)
List<DependencyGraph.Dependency>
getUpstreamDependencies(AbstractProject p)
boolean
hasIndirectDependencies(AbstractProject src, AbstractProject dst)
<T> void
putComputationalData(Class<T> key, T value)
-
Methods inherited from class hudson.model.DependencyGraph
addDependency, addDependency, addDependency, addDependencyDeclarers, getTopologicallySorted
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
ConditionalDependencyGraphWrapper
public ConditionalDependencyGraphWrapper(DependencyGraph graph, org.jenkins_ci.plugins.run_condition.RunCondition condition, org.jenkins_ci.plugins.run_condition.BuildStepRunner runner)
-
-
Method Detail
-
addDependency
public void addDependency(DependencyGraph.Dependency dep)
Add dependency.RunCondition
will be attached.- Overrides:
addDependency
in classDependencyGraph
- See Also:
DependencyGraph.addDependency(hudson.model.DependencyGraph.Dependency)
-
build
public void build()
- Overrides:
build
in classDependencyGraph
-
compare
public int compare(AbstractProject o1, AbstractProject o2)
- Specified by:
compare
in interfaceComparator<AbstractProject>
- Overrides:
compare
in classDependencyGraph
-
getComputationalData
public <T> T getComputationalData(Class<T> key)
- Overrides:
getComputationalData
in classDependencyGraph
-
getDownstream
public List<AbstractProject> getDownstream(AbstractProject p)
- Overrides:
getDownstream
in classDependencyGraph
-
getDownstreamDependencies
public List<DependencyGraph.Dependency> getDownstreamDependencies(AbstractProject p)
- Overrides:
getDownstreamDependencies
in classDependencyGraph
-
getTransitiveDownstream
public Set<AbstractProject> getTransitiveDownstream(AbstractProject src)
- Overrides:
getTransitiveDownstream
in classDependencyGraph
-
getTransitiveUpstream
public Set<AbstractProject> getTransitiveUpstream(AbstractProject src)
- Overrides:
getTransitiveUpstream
in classDependencyGraph
-
getUpstream
public List<AbstractProject> getUpstream(AbstractProject p)
- Overrides:
getUpstream
in classDependencyGraph
-
getUpstreamDependencies
public List<DependencyGraph.Dependency> getUpstreamDependencies(AbstractProject p)
- Overrides:
getUpstreamDependencies
in classDependencyGraph
-
hasIndirectDependencies
public boolean hasIndirectDependencies(AbstractProject src, AbstractProject dst)
- Overrides:
hasIndirectDependencies
in classDependencyGraph
-
putComputationalData
public <T> void putComputationalData(Class<T> key, T value)
- Overrides:
putComputationalData
in classDependencyGraph
-
-