Scripted Pipeline unique credential variables per environment

2017-09-21 Thread Mike Zupan
So I'm trying to use withCredentials() with unique variables and looking for the best way. I have the following password that is unique per region which we call clients client1 = foo client2 = bar client3 = baz So i have a script that might look like sh "./deploy -password " For one region

Jenkins declarative pipeline dynamic paramters

2017-08-29 Thread Mike Zupan
I have a use case where we need to list environments to run a pipeline over and we have multiple jenkins servers that handle different environments. jenkins1 handles dev1 dev2 dev3 jenkins2 handles prod1 prod2 prod3 I want to be able to setup a pipeline that sources different envs and shows th