How to load a groovy file only in the current node

12 views
Skip to first unread message

Claudiu Guiman

unread,
Mar 13, 2017, 4:00:28 PM3/13/17
to jenkins...@googlegroups.com

Hi,
My current Jenkins instance stores some test environment settings in groovy files that reside in the credentials store.


One of the steps runs some jobs in parallel and each of the nodes should load a different groovy file. Unfortunately the result is not as expected, the load is global and overwrites whatever variables were set on a different node.
Is there some way to load a groovy file only in the current node?


My groovy files are very simple: they just have commands that set environment variables (around 10), so if there’s some other way I could  achieve the same result that would be great. I don’t want to put each variable in its own credentials, because it will get very hard to manage.

Thank you,
Claudiu Guiman

Reply all
Reply to author
Forward
0 new messages