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