This article explains how to add environment variables to a deployment project in Bamboo Server server using the Bamboo Command Line Interface app.
...
Use the addEnvironmentVariables CLI action with deploymentProject and environment as the required parameters.
- addEnvironmentVariables: Add deployment environment variables. Use the parameters field for the variable name and the corresponding value parameters for the variable values.
...
- Log in as a Bamboo administrator. Ensure you have the deployment project with environment defined.
Navigate to Deploy > All deployment projects to view all deployment projects in the Bamboo instance.
- Select the required Environment and then Edit environment. For this example, Environment 2 > Edit environment is selected as follows:
In this example, no variables are defined as for Environment 2 as shown: Execute the following command to add the environment variables:
Code Block theme Midnight --action addEnvironmentVariables --deploymentProject DeployProject2 --environment Environment2 --field Inputfield1=InputValue1 --replace
...
Info |
---|
|
...