Hi folks,
I'm trying to put together a library of Job-DSL builders that might be re-used throughout our organisation. With the Additional Classpath field unavailable with the security turned on (Matt Sheehan's job-dsl-examples Readme) could anyone recommend a method that might emulate the Global Shared Pipelines @Library annotation which quite seamlessly incorporates the implementation of a library within an executing pipeline.
At the moment the only way I can see to accomplish this is perhaps to have a GIT clone step before the job-dsl step runs somehow which pulls the builder code from the library repo directly into the workspace of the referencing project. There are obvious filename clash possiblities if the packaging isn't unique enough but it might work? If anyone has any ideas that would be great!
Packaging the builders into a library and pulling it into the lib directory during a gradle build would work but I would have to still have the Additional Classpath field available. Can't see our Jenkins admin being too happy about turning off the security.
Thanks,
Mark.