It looks like you are trying to write a build script in pipeline...
I would think twice if that is actually what you are trying to do. Write your build script to be independent of Jenkins. That lets you test thing from the command line. Pipeline is the glue to wire it all together at the end (same goes for non-pipeline job types, except it is harder to fall into the trap and hence less likely... but it can still happen) On 15 June 2017 at 05:19, Idan Adar <i...@adar.me> wrote: > Currently I have in a node project a .json file with certain values. > Is it possible to externalize these values into a Jenkins global variable > and then consume these properties in my code? > > -- > 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/98e36806-f4b9-4b8d-964a-81ee0f71a66d%40googlegroups. > com > <https://groups.google.com/d/msgid/jenkinsci-users/98e36806-f4b9-4b8d-964a-81ee0f71a66d%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/CA%2BnPnMyR32isH7tKZ%2BvTcR1osiaBXR9dmWftaMARwMw0Qb%2B4zg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.