Example #1
0
 public PipelineConfig addPipelineWithInvalidMaterial(String pipelineName, String stageName) {
   CruiseConfig cruiseConfig = loadForEdit();
   StageConfig stageConfig = StageConfigMother.custom(stageName, defaultBuildPlans("buildName"));
   PipelineConfig pipelineConfig =
       new PipelineConfig(
           new CaseInsensitiveString(pipelineName),
           invalidRepositoryMaterialConfigs(),
           stageConfig);
   cruiseConfig.addPipeline(DEFAULT_GROUP, pipelineConfig);
   writeConfigFile(cruiseConfig);
   return pipelineConfig;
 }
Example #2
0
 public PipelineConfig addPipelineToGroup(PipelineConfig pipelineConfig, final String groupName) {
   CruiseConfig cruiseConfig = loadForEdit();
   cruiseConfig.addPipeline(groupName, pipelineConfig);
   writeConfigFile(cruiseConfig);
   return pipelineConfig;
 }