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 HCL DevOps Test UI - 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 DTUI-FunctionalTest-Jenkins-HCL 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.