SyntaxFix
Write A Post
Hire A Developer
Questions
There is no variable included for that yet, so you have to use shell-out-read-file method:
sh 'pwd > workspace' workspace = readFile('workspace').trim()
Or (if running on master node):
workspace = pwd()