Currently the shared libraries will be cloned on every use and for every job that uses them. It would be nice if a global library would function more akin to a tool installation and would only be created once per node and version.

          [JENKINS-48210] Cache Shared Libraries

          Philipp Moeller created issue -

          Sorin Sbarnea added a comment - - edited

          I subscribe, this is close to become critical because each job execution does clone there entire repository again and again putting a huge load on the git server, and also delaying pipeline execution with 30-120 seconds.

          This is happening even when there were no changes on the shared pipeline repository.

          Somehow I find the "global" part in the their name a little bit ironic.

          Sorin Sbarnea added a comment - - edited I subscribe, this is close to become critical because each job execution does clone there entire repository again and again putting a huge load on the git server, and also delaying pipeline execution with 30-120 seconds. This is happening even when there were no changes on the shared pipeline repository. Somehow I find the "global" part in the their name a little bit ironic.

          Julien Duchesne added a comment - Added caching here:  https://github.com/jenkinsci/workflow-cps-global-lib-plugin/pull/50
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-38992 [ JENKINS-38992 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Jenn Briden added a comment -

          I think that the change proposed in the PR may not be the best fix based on the input there.

          Jenn Briden added a comment - I think that the change proposed in the PR may not be the best fix based on the input there.

            Unassigned Unassigned
            pmr Philipp Moeller
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: