I am trying to get the current workspace of my Jenkins build using a Groovy pipeline script:
node(\'master\') { // PULL IN ENVIRONMENT VARIABLES // J
I have successfully used as shown below in Jenkinsfile:
steps { script { def reportPath = "${WORKSPACE}/target/report" ... } }