Open belsander opened 6 years ago
Hi,
You could do this by using JCasC plugin and define your lib in the config.yml. Here the example how the lib details can be defined: https://github.com/jenkinsci/configuration-as-code-plugin/tree/master/demos/workflow-cps-global-lib. Best regards.
Hey @belsander,
in the meantime this is really easy to solve using Configuration as Code as mentioned by @OliverNocon. I've described it for a specific case in a blog post, should be really simple to adopt for other cases. I think this issue can be closed.
My plan is to have support of packaging libraries with Custom WAR Packager flow: https://issues.jenkins-ci.org/browse/JENKINS-56100
https://jenkins.io/blog/2018/10/16/custom-war-packager/ explains the flow for custom packages
@fwilhe Just in case you are interested, your blog could be reposted on https://jenkins.io/node/ . It would be an interesting case study. CC @tracymiranda
W.r.t rhis particular issue, I am going to close it. JCasC formally addresses the request (see the blogpost), the rest will be automated in https://issues.jenkins-ci.org/browse/JENKINS-56100 .
@oleg-nenashev @tracymiranda I'd love to share the post in other places. What would I need to do for that?
@fwilhe We use configuration-as-code so you can just submit a pull request to https://github.com/jenkins-infra/jenkins.io. Guidelines: https://github.com/jenkins-infra/jenkins.io/blob/master/CONTRIBUTING.adoc#adding-a-blog-post
Submitted a PR :)
Thanks for the offering!
Removing Hacktoberfest label, because the easiest way (Filesystem SCM Plugin) has a published unresolved security issues. Ideally it needs a proper solution on the Pipeline Side instead (Lirary Source extension)
Hi,
Thanks for the work! I'm however looking into including a shared library to validate our Jenkinsfiles, but I do not know how to proceed. Could you help me out?
Thanks!