Re: Best way to get named parameter in a shared library function
On Fri, Aug 25, 2017 at 12:59 PM, red 888wrote: > 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
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(