Environment variables for Jenkins
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 HCL DevOps Test Performance 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 Test Performance Jenkins plugin uses the actual value while running the job.
For example, if you add the environment variable named workspace with the value C:\Users\HCL\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\HCL\workspace1.