• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • git-plugin
    • None
    • 1.609.1
      git-plugin-2.4.0
      git-client-1.18.0

      1. Parametrise build with input string parameter BRANCH and default value *
      2. define branchspec
        origin/${BRANCH}
        
      1. enable polling

      Polling will see infinitely new changes.

      Fix - remove variable and directly set *

          [JENKINS-29714] infinite polling with variable in branchspec

          Kanstantsin Shautsou created issue -
          Kanstantsin Shautsou made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ] New: Mark Waite [ markewaite ]
          Kanstantsin Shautsou made changes -
          Description Original: # Parametrise build with input string parameter BRANCH and default value *
          # define branchspec origin/${BRANCH}
          # enable polling

          Polling will see infinitely new changes.

          Fix - remove variable and directly set *
          New: # Parametrise build with input string parameter BRANCH and default value *
          # define branchspec {code} origin/${BRANCH}{CODE}
          # enable polling

          Polling will see infinitely new changes.

          Fix - remove variable and directly set *
          Kanstantsin Shautsou made changes -
          Description Original: # Parametrise build with input string parameter BRANCH and default value *
          # define branchspec {code} origin/${BRANCH}{CODE}
          # enable polling

          Polling will see infinitely new changes.

          Fix - remove variable and directly set *
          New: # Parametrise build with input string parameter BRANCH and default value *
          # define branchspec
          {code:java}
          origin/${BRANCH}
          {code}

          # enable polling

          Polling will see infinitely new changes.

          Fix - remove variable and directly set *
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]

          Mark Waite added a comment -

          Is this a new behavior, or has it always behaved this way?

          Since this is the refspec, can you explain your use case further so that I understand why you declared it to be critical?

          I'm accustomed to refspecs being used to limit what is fetched or is considered for fetch, but still you need to choose the branch which will be built. Help me better understand how you are using a parameterized refspec.

          Mark Waite added a comment - Is this a new behavior, or has it always behaved this way? Since this is the refspec, can you explain your use case further so that I understand why you declared it to be critical? I'm accustomed to refspecs being used to limit what is fetched or is considered for fetch, but still you need to choose the branch which will be built. Help me better understand how you are using a parameterized refspec.

          I saw such use cases before, people define variable to have ability trigger job with specified branch and in the same time enabling polling for automatically building all branches. So variable has * as default value (or **) for having working polling.
          AFAIR code, branchspec has substitution of default variables.
          Critical because it causes infinite build scheduling and always sees changes. I will try reproduce with previous versions and then define if it regression.

          Kanstantsin Shautsou added a comment - I saw such use cases before, people define variable to have ability trigger job with specified branch and in the same time enabling polling for automatically building all branches. So variable has * as default value (or **) for having working polling. AFAIR code, branchspec has substitution of default variables. Critical because it causes infinite build scheduling and always sees changes. I will try reproduce with previous versions and then define if it regression.
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-17614 [ JENKINS-17614 ]
          Kanstantsin Shautsou made changes -
          Link New: This issue is related to JENKINS-30345 [ JENKINS-30345 ]

          Marc Rohlfs added a comment -

          I'm experiencing this, too. Seems like this happens when the polling interval is shorter than the build duration.

          Marc Rohlfs added a comment - I'm experiencing this, too. Seems like this happens when the polling interval is shorter than the build duration.

            Unassigned Unassigned
            integer Kanstantsin Shautsou
            Votes:
            7 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: