Hi,
I'm trying out the Jenkins Workflow plugin and I was wondering if there is any way to pass values from a shell script to the workflow script without going through writing them in a file a reading and parsing the file from the workflow script.
I've checking 'env' and 'withEnv' but they both seem to work only in one direction (passing values from workflow script to a shell script in the form of environmental variables.
Basically what I'm trying to achieve is something llke:
sh 'LAST_VERSION="$(git describe --abbrev=0 --tags)"'
and now being able to access the result of $(git describe --abbrev=0 --tags)/the value of LAST_VERSION from the workflow script
Thanks in advance
L