How do I invoke Global environment variables in Jenkinsfile? For example, if I have a variable -
name:credentialsId value:xxxx-xxxx-xxxxx-xxxxxxxxx
Another syntax is $ENV:xxxx
node { echo "Running $ENV.BUILD_ID on $ENV.JENKINS_URL" }
This worked for me