예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }