Define chain and global variables
Add chain and global variables so that you can reference them in chain steps when you need to reuse specific values.
For details on how to reference variables in chains, see Use variables in chains.
Add chain variables
Define variables on a chain to reuse the same values in the chain's steps.
To add a variable to a chain:
- In PulseUno, navigate to Spaces, select a space and then a product or Git repository.
- In the sidebar, select Chains.
- Open a chain from the chain list and click Edit.
- Select the Variables tab, and click Add Variable
.
-
Enter a variable name and value pair, for example:
Name: MAVEN
Value: M2_HOME
You cannot add variables with duplicate or empty names.
- (Optional) To make the variable private, select the Private option. The values of private variables are displayed obscured in the user interface.
- Click Save.
Add global chain variables
Define global variables to reuse the same values across multiple chains and steps.
Note: Administrator permissions required.
To add a global variable:
- In PulseUno, navigate to Administration
> Global Chain Variables.
- On the Global Chain Variables page, click Add variable
.
-
Enter a variable name and value pair, for example:
Name: JENKINS_URL
Value: http://host:8080/jenkins
You cannot add variables with duplicate or empty names.
- (Optional) To make the variable private, select the Private option. The values of private variables are displayed obscured in the user interface.
- Click Save.
See also: