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 think you can also execute the pwd() function on the particular node:
node { def PWD = pwd(); ... }