Environment variables

You can add environment variables on the Jenkins server to run the Jenkins build by referring to environment variables.

You can add an environment variable on the Jenkins server by navigating to Manage Jenkins > Configure System > Global properties. You can enter the variable name by using any of the following methods for the corresponding text fields in the Run an IBM Rational Functional Tester - Functional Test step:

  • Use the dollar sign ($) followed by the variable name.

    For example, $workspace

  • Use the dollar sign ($) followed by the variable name between braces.

    For example, ${workspace}

The IBM® Rational® Functional Tester - Functional Test uses the actual value while running the job.

For example, if you add the environment variable named workspace with the value C:\Users\IBM\workspace1, then you can use $workspace or ${workspace} as input to the Workspace field when running tests. During the run time, $workspace or ${workspace} is substituted with its corresponding value C:\Users\IBM\workspace1.