use of com.thoughtworks.go.domain.NullStage in project gocd by gocd.
the class UnrunStagesPopulator method populateConfiguredStages.
private void populateConfiguredStages(Node node, PipelineConfig pipelineConfig) {
UnrunPipelineRevision unrunPipelineRevision = new UnrunPipelineRevision(node.getName());
for (StageConfig stageConfig : pipelineConfig) {
unrunPipelineRevision.addStage(new NullStage(stageConfig.name().toString()));
}
node.addRevision(unrunPipelineRevision);
}
Aggregations