Re: Best way to get named parameter in a shared library function

2017-08-25 Thread David Karr
On Fri, Aug 25, 2017 at 12:59 PM, red 888 wrote: > I have this in my shared library in /vars/myLib.groovy: > > def call(Map args) { > > one = args.one > two = args.two > three = args.three > > somePlugin( > someParam: one, > otherParam:

Best way to get named parameter in a shared library function

2017-08-25 Thread red 888
I have this in my shared library in /vars/myLib.groovy: def call(Map args) { one = args.one two = args.two three = args.three somePlugin( someParam: one, otherParam: two, anotherParam: three ) } Then in my jenkinsfile I call it like this: myLib(