use of com.thoughtworks.go.domain.valuestreammap.Revision in project gocd by gocd.
the class DownstreamInstancePopulator method populateRevisionsForAllChildrenOf.
private void populateRevisionsForAllChildrenOf(Node node, Set<Revision> visitedRevisions) {
for (Revision revision : node.revisions()) {
if (visitedRevisions.contains(revision)) {
continue;
}
visitedRevisions.add(revision);
for (Node child : node.getChildren()) {
List<PipelineIdentifier> pipelineIdentifiers = pipelineDao.getPipelineInstancesTriggeredWithDependencyMaterial(child.getName(), ((PipelineRevision) revision).getPipelineIdentifier());
addRevisionsToNode(child, pipelineIdentifiers);
populateRevisionsForAllChildrenOf(child, visitedRevisions);
}
}
}
use of com.thoughtworks.go.domain.valuestreammap.Revision in project gocd by gocd.
the class RunStagesPopulator method apply.
public void apply(ValueStreamMap graph) {
for (Node node : graph.allNodes()) {
for (Revision revision : node.revisions()) {
if (revision instanceof PipelineRevision) {
PipelineRevision pipelineRevision = (PipelineRevision) revision;
Stages latestStages = latestRunStagesForRevsion(pipelineRevision);
pipelineRevision.addStages(latestStages);
}
}
}
}
Aggregations