Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public PipelineConfig addPipelineToGroup(PipelineConfig pipelineConfig, final String groupName) {
   CruiseConfig cruiseConfig = loadForEdit();
   cruiseConfig.addPipeline(groupName, pipelineConfig);
   writeConfigFile(cruiseConfig);
   return pipelineConfig;
 }