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

Cannot configure multiple glob fetch refspecs in Git plugin with '*' embedded inside the refspec

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins: jenkins/jenkins:2.361.1-jdk11 (in docker)
      Git plugin: 4.11.5

      I am trying to set up refspecs for a project according to this guide, and they specify two glob refspecs to be used:

      +refs/heads/*:refs/remotes/origin/* +refs/merge-requests/*/head:refs/remotes/origin/merge-requests/*
      

      However, I just get a "Specification is invalid" after entering these and cannot proceed.

      Each refspec individually works, just adding them both at the same time does not. Adding two refspecs w/o globs also works.

          [JENKINS-69564] Cannot configure multiple glob fetch refspecs in Git plugin with '*' embedded inside the refspec

          Michael Barton created issue -
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Michael Barton made changes -
          Attachment New: image-2022-09-09-16-24-56-443.png [ 59052 ]
          Mark Waite made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Mark Waite made changes -
          Status Original: Reopened [ 4 ] New: Open [ 1 ]
          Mark Waite made changes -
          Summary Original: Cannot configure multiple glob fetch refspecs in Git plugin New: Cannot configure multiple glob fetch refspecs in Git plugin with '*' embedded inside the refspec

            Unassigned Unassigned
            emike922 Michael Barton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: