RE: Use of "local" function in shared library

2020-09-09 Thread Jérôme Godbout
yssmann Sent: September 9, 2020 3:39 AM To: Jenkins Users mailto:jenkinsci-users@googlegroups.com>> Subject: Use of "local" function in shared library I use a shared library for our projects to have a common ci pipeline. There are still some project specific stuff like the build scri

RE: Use of "local" function in shared library

2020-09-09 Thread Jérôme Godbout
}, buildApplication); and your call could be something like this def call(body, buildFct) { … buildApplication(pipelineParams); } From: jenkinsci-users@googlegroups.com On Behalf Of Adrian Wyssmann Sent: September 9, 2020 3:39 AM To: Jenkins Users Subject: Use of "local" function

Use of "local" function in shared library

2020-09-09 Thread Adrian Wyssmann
I use a shared library for our projects to have a common ci pipeline. There are still some project specific stuff like the build script. So what I would like to do is defined some functions in the local project's Jenkinsfile and use them in the library So here is my Jenkinsfile library identifi