예제 #1
0
 public void addEnvironmentVariablesToEnvironment(
     String environmentName, String variableName, String variableValue)
     throws NoSuchEnvironmentException {
   CruiseConfig config = loadForEdit();
   EnvironmentConfig env =
       config.getEnvironments().named(new CaseInsensitiveString(environmentName));
   env.addEnvironmentVariable(variableName, variableValue);
   writeConfigFile(config);
 }
예제 #2
0
 public void addPipelineToEnvironment(String env, String pipelineName) {
   CruiseConfig config = loadForEdit();
   config.getEnvironments().addPipelinesToEnvironment(env, pipelineName);
   writeConfigFile(config);
 }
예제 #3
0
 public void addAgentToEnvironment(String env, String uuid) {
   CruiseConfig config = loadForEdit();
   config.getEnvironments().addAgentsToEnvironment(env, uuid);
   writeConfigFile(config);
 }