How to bundle third-party libraries to jenkins artifactory repository?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to bundle third-party libraries to jenkins artifactory repository?

Rajeev Ranjan
Hi devs,
I have a custom jar, which I want to share across multiple projects. For jenkins plugins to use that I need to upload it to jenkins artifactory if not in maven central repository as mentioned in theĀ doc. How can I achieve that?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/31153bc2-1bff-4de2-94f7-cefc8decea75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to bundle third-party libraries to jenkins artifactory repository?

Daniel Beck


> On 11. Feb 2019, at 20:01, Rajeev Ranjan <[hidden email]> wrote:
>
> For jenkins plugins to use that I need to upload it to jenkins artifactory if not in maven central repository as mentioned in the doc. How can I achieve that?

If you can't publish it to central and just reuse from your plugin, and assuming the Jenkins plugin using it is hosted in Jenkins project infra, request hosting just like for a plugin, and explain it's a library.

If you have multiple plugins using the same library, consider creating a 'library plugin' -- essentially a (typically otherwise empty) plugin that just has the library dependency. That way you won't end up with multiple different versions of the library on the same Jenkins instance.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/2AD9A6AC-9518-4037-B4D1-ECF657EC2F4F%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.