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

Command line git does not accept regular expressions in refspec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • git-plugin
    • None
    • Jenkins, groovy

      I am using this regex :^(.*regression|.*regress).$* in Jenkin UI under Branch Specifier. This idea is to make any GitHub branch containing name "regression" or "regress" example should match

      origin/regression
      regression
      origin/MOBILE-XXXX-regression-NNNNN
      regress
      MOBILE-5364-regress
      /feature/MOBILE-XXXX-regression-NNNNN ** and perform build or git hook trigger from any such branch. However I am getting this error when I pushed form branch "MOBILE-XXXX-regression"

      java.lang.IllegalArgumentException: Invalid refspec refs/heads/:^(.regression|.*regress).$:refs/remotes/origin/

       

      What am I doing wrong or how do I specify the regex in under Branch Specifier to get such matches to work?

            markewaite Mark Waite
            saintjab Jonas Boateng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: