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

Git SCM-polling should match everything when a parametrized branchspec resolves to empty

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • git-plugin
    • None
    • git-plugin 2.3.5

      This is a follow-up to JENKINS-27349.

      To reproduce:

      • A parametrized build with parameter BRANCH_TO_BUILD, with default value "" (or a last execution with BRANCH_TO_BUILD="" until JENKINS-27349 is fixed)
      • Git SCM with branch specifier "${BRANCH_TO_BUILD}"
      • SCM polling enabled

      Expected:

      • Should poll all branches, same as when you set the branchspec to "" directly, without parameters.

      Actual:

      • Nothing is matched

      Workaround:

      • Set the default value to "**" instead of ""

          [JENKINS-27351] Git SCM-polling should match everything when a parametrized branchspec resolves to empty

          Jean Blanchard created issue -
          Mark Waite made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 161556 ] New: JNJira + In-Review [ 208518 ]

            ndeloof Nicolas De Loof
            jblanchard Jean Blanchard
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: