-
Bug
-
Resolution: Unresolved
-
Major
-
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
Assignee | Original: Mark Waite [ markewaite ] |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Attachment | New: image-2022-09-09-16-24-56-443.png [ 59052 ] |
As far as I can tell, this is not a Jenkins issue. If Gitlab is rejecting the refspecs as invalid, that is likely a Gitlab issue.
I have confirmed that multiple refpsecs work as expected in Jenkins with my test job JENKINS-69564-multiple-refspecs-freestyle. I have Pipeline jobs that also use multiple refspecs
You may be able to test the multiple refspecs more quickly from a command line rather than through Jenkins.