I am trying to get the current workspace of my Jenkins build using a Groovy pipeline script:
node(\'master\') { // PULL IN ENVIRONMENT VARIABLES // J
For me just ${workspace} worked without even initializing the variable 'workspace.'
${workspace}