Follow the given steps to pass the environment variables:
- You will see a section named Node Properties. Using these options, you can pass predefined environment variables to the Jenkins slaves and tools locations.
- As shown in the following screenshot, you can pass environment variables to the Jenkins slaves. It is possible to pass multiple environment variables (by clicking on the Add button). These environment variables are available to the Jenkins pipeline during its execution:
Passing environment variables to the Jenkins slaves
With the advent of Pipeline as Code feature in Jenkins, it ...