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 Run an IBM DevOps Test UI - Functional Test step:
. You can enter the variable name by using any of the following methods for the corresponding text fields in the -
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 DTUI-FunctionalTest-Jenkins-IBM plugin 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.