public PipelineConfig addStageToPipeline(
     String pipelineName, String stageName, String... buildNames) throws Exception {
   CruiseConfig cruiseConfig = loadForEdit();
   PipelineConfig pipelineConfig =
       goConfigMother.addStageToPipeline(cruiseConfig, pipelineName, stageName, buildNames);
   writeConfigFile(cruiseConfig);
   return pipelineConfig;
 }
 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,
     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;
 }
 public PipelineConfig addPipelineWithGroupAndTimer(
     String groupName,
     String pipelineName,
     MaterialConfigs materialConfigs,
     String stageName,
     TimerConfig timer,
     String... buildNames) {
   CruiseConfig cruiseConfig = loadForEdit();
   PipelineConfig pipelineConfig =
       goConfigMother.addPipelineWithGroupAndTimer(
           cruiseConfig, groupName, pipelineName, materialConfigs, stageName, timer, buildNames);
   writeConfigFile(cruiseConfig);
   return pipelineConfig;
 }
 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;
 }
 public void setDependencyOn(PipelineConfig product, String pipelineName, String stageName) {
   CruiseConfig cruiseConfig = loadForEdit();
   goConfigMother.setDependencyOn(cruiseConfig, product, pipelineName, stageName);
   writeConfigFile(cruiseConfig);
 }