public PipelineConfig addPipelineWithGroup( String groupName, String pipelineName, MaterialConfigs materialConfigs, TrackingTool trackingTool, String stageName, String... jobs) { CruiseConfig cruiseConfig = loadForEdit(); PipelineConfig pipelineConfig = goConfigMother.addPipelineWithGroup( cruiseConfig, groupName, pipelineName, materialConfigs, stageName, jobs); pipelineConfig.setTrackingTool(trackingTool); writeConfigFile(cruiseConfig); return pipelineConfig; }
public PipelineConfig addPipelineWithGroup( String groupName, String pipelineName, MaterialConfigs materialConfigs, MingleConfig mingleConfig, String stageName, String... buildNames) { CruiseConfig cruiseConfig = loadForEdit(); PipelineConfig pipelineConfig = goConfigMother.addPipelineWithGroup( cruiseConfig, groupName, pipelineName, materialConfigs, stageName, buildNames); pipelineConfig.setMingleConfig(mingleConfig); writeConfigFile(cruiseConfig); return pipelineConfig; }