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:

  1. In PulseUno, navigate to Spaces, select a space and then a product or Git repository.
  2. In the sidebar, select Chains.
  3. Open a chain from the chain list and click Edit.
  4. Select the Variables tab, and click Add Variable .
  5. Enter a variable name and value pair, for example:

    Name: MAVEN

    Value: M2_HOME

    You cannot add variables with duplicate or empty names.

  6. (Optional) To make the variable private, select the Private option. The values of private variables are displayed obscured in the user interface.
  7. Click Save.

Back to top

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:

  1. In PulseUno, navigate to Administration > Global Chain Variables.
  2. On the Global Chain Variables page, click Add variable .
  3. 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.

  4. (Optional) To make the variable private, select the Private option. The values of private variables are displayed obscured in the user interface.
  5. Click Save.

Back to top

See also: