When configuring a plan, you may want to specify variables to be used in the build process. For details please see Using Global or Build-specific Variables.
Global variables are one type of variable that is available to you. Global variables are defined across your entire Bamboo instance, and have the same value for every plan that is built by Bamboo.
You can define new global variables for Bamboo or edit or delete existing ones via the 'Global Variables' page, which is accessible from Bamboo's Administration console.
To access the Global Variables page,
- Click the 'Administration' link in the top navigation bar.
- In the left navigation column, within the 'Build Resources' section, click 'Global Variables'.
The Global Variables page opens, which displays a list of variables that have been configured in Bamboo, with an empty field at the bottom of each column for adding a new variable.
To add a new global variable,
- Open the Global Variables page, as described above.
- In the 'Key' field, type the key that you will use to identify the variable.
- In the 'Value' field, type the value of the variable.
- Click 'Save' to save these changes or 'Cancel' to clear these fields.
To edit an existing global variable,
- Open the Global Variables page, as described above.
- Click 'Edit' on the line containing the variable you wish to edit and the corresponding 'Key' and 'Value' fields become editable.
- Modify the 'Key' and 'Value' fields as required.
- Click 'Save' to save these changes or 'Cancel' to revert these fields back to their original values.
To delete an existing global variable,
- Open the Global Variables page, as described above.
- Click 'Delete' on the line containing the variable you wish to delete.
- In the confirmation message, click 'OK' to confirm the deletion.
Screenshot: Global Variables
