Use double quotes if you want expressions resolved. Vincent
2016-03-17 13:23 GMT+01:00 Frank Hask <nikolicja...@gmail.com>: > 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 > } > > 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 > <https://groups.google.com/d/msgid/jenkinsci-users/bf6fe502-84b4-401a-ae57-e003e8e37f01%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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/CAH-zGCiDFf4%2B2aGt1NNBKvt%3DtyQiis0tO-78avNcMDAOBU57Bg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.