Inline

Le 17 mars 2016 1:23 PM, "Frank Hask" <nikolicja...@gmail.com> a écrit :
>
> Hi all, i am building pipeline on my project that uses 5 DB servers.
>
> So based on build variable i want to set node name. Like this..
>
> env.NODE = 'blabla'
>
>
> node('${NODE}') {
>   //some code
> }

Why don't you just do:
def nodeLabel = 'blabla'
node(nodeLabel) {
...
}

?

Here you seem to want to define an environment variable. Not a pipeline
(groovy) variable. Is this intended?

>
> but each time i get error - There are no nodes with the label ‘${NODE}’
>
> Thanks for help in advance...
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/bf6fe502-84b4-401a-ae57-e003e8e37f01%40googlegroups.com
.
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7WOUuScVewS7hR6%2B9kWH_uY9ACuEUenKeGiffbDq3K9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to