public PipelineConfig addPipeline( String pipelineName, String stageName, MaterialConfig materialConfig, String... buildNames) { CruiseConfig cruiseConfig = loadForEdit(); PipelineConfig pipelineConfig = goConfigMother.addPipeline( cruiseConfig, pipelineName, stageName, new MaterialConfigs(materialConfig), buildNames); writeConfigFile(cruiseConfig); return pipelineConfig; }
public PipelineConfig addPipeline( String pipelineName, String stageName, MaterialConfigs materialConfigs, String... buildNames) throws Exception { CruiseConfig cruiseConfig = loadForEdit(); PipelineConfig pipelineConfig = goConfigMother.addPipeline( cruiseConfig, pipelineName, stageName, materialConfigs, buildNames); writeConfigFile(cruiseConfig); return pipelineConfig; }
public PipelineConfig addPipeline( String pipelineName, String stageName, MaterialConfig materialConfig, TrackingTool trackingTool, String... jobs) { CruiseConfig cruiseConfig = loadForEdit(); PipelineConfig pipelineConfig = goConfigMother.addPipeline( cruiseConfig, pipelineName, stageName, new MaterialConfigs(materialConfig), jobs); pipelineConfig.setTrackingTool(trackingTool); writeConfigFile(cruiseConfig); return pipelineConfig; }