Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48930

Add new way to publish shared libraries

    Details

    • Similar Issues:

      Description

      As of today, the only way to publish a shared library is via a git repository. The possibility to reference a tag is already a decent way to get a fixed version of the library. But having to clone a git repository is probably not the most convenient way to retrieve some code / libraries. I would have felt more comfortable if the library retrieval had been done via an http request for example.

      I see two advantages there:

      • a faster download (I don't need any commit comment, changes history ... or any info that git downloads on top of the code itself)
      • the download would rely (at least in our case) on┬áservices with different SLAs compared to our git repository. This is even more meaningful for Pipelines that are not triggered by SCM changes. By having the code of the shared library packaged as tar.gz on Artifactory (in our case) or anything available via http/s, we would avoid the dependency on git

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          Feel free to create and publish a new plugin implementing the LibraryRetriever extension point.

          Show
          jglick Jesse Glick added a comment - Feel free to create and publish a new plugin implementing the LibraryRetriever extension point.
          Hide
          fabricepipart Fabrice Pipart added a comment -

          Why not!

          Any recommended read to know how to start writing my first Jenkins plugin?

          Show
          fabricepipart Fabrice Pipart added a comment - Why not! Any recommended read to know how to start writing my first Jenkins plugin?
          Hide
          fabricepipart Fabrice Pipart added a comment -

          We started working on the implementation of this plugin internally. We'll see later how to make it open source.

          Show
          fabricepipart Fabrice Pipart added a comment - We started working on the implementation of this plugin internally. We'll see later how to make it open source.
          Hide
          fabricepipart Fabrice Pipart added a comment -

          The plugin has been released: https://github.com/AmadeusITGroup/workflow-cps-global-lib-http-plugin
          Feel free to consider this issue as solved.

          Show
          fabricepipart Fabrice Pipart added a comment - The plugin has been released: https://github.com/AmadeusITGroup/workflow-cps-global-lib-http-plugin Feel free to consider this issue as solved.
          Hide
          jglick Jesse Glick added a comment -

          Thanks!

          Show
          jglick Jesse Glick added a comment - Thanks!

            People

            • Assignee:
              Unassigned
              Reporter:
              fabricepipart Fabrice Pipart
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: