Hi,

> We would* not* want to use env in this case

https://github.com/jenkinsci/workflow-plugin/blob/master/TUTORIAL.md
Le 11 févr. 2015 16:03, "Christoph Vogtländer" <[email protected]> a écrit
:

> 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
>
>
>
> --
> 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 [email protected].
> 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.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7qgzu4aBqB617wM4oo6tBG2VJjWmJL8qrYmch7hC4qsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to