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

Git plugin: fetch and prune tags on submodules

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • git-plugin

      There is no option to fetch and prune tags on all submodules in Jenkins.

      In our environment, it happens in rare cases that tags are force-pushed on the main repo and on submodules. We did not find any way to reflect the actual tags before build using Jenkins, except with a full repository wipeout.

      Also we have a case where a new tag on the submodule repository was not present on our builder at build time.

      We tried using a command such as git fetch --prune origin "refs/tags/:refs/tags/ in the build steps, but this fails as the credentials cannot be used at that stage.

            Unassigned Unassigned
            benoit_mortgat BenoƮt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: