[workflow plugin] env changes get propagated to parallel jobs

31 views
Skip to first unread message

Christoph Vogtländer

unread,
Feb 11, 2015, 10:03:21 AM2/11/15
to Jenkinsci Users
Hi,

consider the following workflow:

//------------------------------
parallel Windows: {
node('Windows') {
env.TEST = "A Test"
bat 'echo %TEST%'
}
}, Linux: {
node('Linux') {
sh 'echo "$TEST"'
}
}
//------------------------------

Both steps will echo "A Test". For me this is a show stopper as it is
not possible to e.g. use env.PATH.

It also seems to be a race condition. Setting env.TEST in node "Linux"
instead of node "Windows" will only echo "A Test" on Linux, but not on
Windows.



Christoph



Baptiste Mathus

unread,
Feb 11, 2015, 4:46:07 PM2/11/15
to jenkins...@googlegroups.com

Hi,

> We would not want to use env in this case

https://github.com/jenkinsci/workflow-plugin/blob/master/TUTORIAL.md

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1491f63cf3ac8cc29245bde34ee9dde5%40kfpc.de.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages