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

fetch has 3 options: nothing, --no-tags, --tags, jenkins only 2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None

      git fetch has three options to fetch tags:

      • "git fetch" fetches a branch with tags reachable, the ideal default
      • "git fetch --no-tags" fetches a branch without tags
      • "git fetch --tags" fetches tags not reachable from the branch, i.e. other branches also

      in jenkins variant 1, fetching tags reachable cannot be configured any more (with ease), while it reasonably should be the default? also the branch name is not there in the git repo fetched. all of these operatins add labels to existing commits so do not increase the clone size.

      this should be for multibranch pipeline, not sure what the correct component is.

      the current workaround is:

      // code placeholder
      
      

            Unassigned Unassigned
            rthurner rupert je thurner
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: