Search in sources :

Example 6 with NullStage

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);
}
Also used : NullStage(com.thoughtworks.go.domain.NullStage) StageConfig(com.thoughtworks.go.config.StageConfig)

Aggregations

NullStage (com.thoughtworks.go.domain.NullStage)6 StageConfig (com.thoughtworks.go.config.StageConfig)2 Pipeline (com.thoughtworks.go.domain.Pipeline)2 Stages (com.thoughtworks.go.domain.Stages)2 CaseInsensitiveString (com.thoughtworks.go.config.CaseInsensitiveString)1 Test (org.junit.Test)1