Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public void addPipelineToEnvironment(String env, String pipelineName) {
   CruiseConfig config = loadForEdit();
   config.getEnvironments().addPipelinesToEnvironment(env, pipelineName);
   writeConfigFile(config);
 }
Exemplo n.º 3
0
 public void addAgentToEnvironment(String env, String uuid) {
   CruiseConfig config = loadForEdit();
   config.getEnvironments().addAgentsToEnvironment(env, uuid);
   writeConfigFile(config);
 }