Example #1
0
 private boolean isValidGroup(
     String groupName, CruiseConfig cruiseConfig, HttpLocalizedOperationResult result) {
   if (!cruiseConfig.hasPipelineGroup(groupName)) {
     result.notFound(
         LocalizedMessage.string("PIPELINE_GROUP_NOT_FOUND", groupName),
         HealthStateType.general(HealthStateScope.forGroup(groupName)));
     return false;
   }
   return true;
 }
Example #2
0
 public PipelineConfigDependencyGraph upstreamDependencyGraphOf(
     String pipelineName, CruiseConfig currentConfig) {
   return findUpstream(
       currentConfig.pipelineConfigByName(new CaseInsensitiveString(pipelineName)));
 }
Example #3
0
 protected Object valid() {
   CruiseConfig config = configForEditing();
   PipelineConfigs group = config.findGroup(groupName);
   return group.getCopyForEditing();
 }
Example #4
0
 protected final CruiseConfig configForEditing() {
   CruiseConfig config = getConfigForEditing();
   this.md5 = config.getMd5();
   return config;
 }