Using the Pipeline plugin in Jenkins 2.x, how can I access a Groovy variable that is defined somewhere at stage- or node-level from within a sh step?
sh
Si
In order to Pass groovy parameters into bash scripts in Jenkins pipelines - Use this post here