-
Type:
Improvement
-
Resolution: Incomplete
-
Priority:
Minor
-
Component/s: workflow-durable-task-step-plugin
I have a Jenkinsfile that looks roughly like this:
Â
... stage('Build') { Â Â steps { Â Â Â Â script { Â Â Â Â Â Â FOOÂ = sh (script: "echo bar", returnStdout: true) } Â Â Â } } stage('Plan') { Â Â steps { Â Â Â Â sh "FOO=${FOO} ./tests/run.sh" } } ...
Â
Why am I not seeing the variable $FOO within run.sh? This works in a regular shell and bash. Furthermore it's not like Jenkins isn't picking up the value of $FOO. It correctly prints the value of $FOO as "bar" in other places that I've used it.
Â