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

Infinite loop (pooling changes continuously) when using "*/master" branches to build

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • Git plugin version: 2.3.5
      Jenkins version: 1.599

      Hi there,

      For some reason if the branch value is set as "*/master" it keeps polling and building forever even though it doesn't have any scm polling configuration at all, firstly you need to trigger that job manually once and then that behaviour occurs.

      Workaround:

      • change branch name as "master"

      Already added some screenshots.

      I've no idea whether this issue is related to the below ticket:

      Cheers

        1. Workaround.png
          Workaround.png
          12 kB
        2. Failure.png
          Failure.png
          26 kB
        3. Failure_History.png
          Failure_History.png
          65 kB

          [JENKINS-30296] Infinite loop (pooling changes continuously) when using "*/master" branches to build

          Victor Martinez created issue -

          Mark Waite added a comment -

          Can you post your job definition which is showing the problem, the git polling log which reports the change, and any other hints that might help someone else duplicate the problem?

          Mark Waite added a comment - Can you post your job definition which is showing the problem, the git polling log which reports the change, and any other hints that might help someone else duplicate the problem?

          Victor Martinez added a comment - - edited
          • Bug (based on "*/master" branch)
            <project>
              <actions/>
              <description/>
              <keepDependencies>false</keepDependencies>
              <properties>
                <hudson.plugins.buildblocker.BuildBlockerProperty plugin="build-blocker-plugin@1.6">
                  <useBuildBlocker>false</useBuildBlocker>
                </hudson.plugins.buildblocker.BuildBlockerProperty>
                <com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty plugin="build-failure-analyzer@1.13.0">
                  <doNotScan>false</doNotScan>
                </com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty>
                <jenkins.plugins.hipchat.HipChatNotifier_-HipChatJobProperty plugin="hipchat@0.1.6">
                  <room/>
                  <startNotification>false</startNotification>
                  <notifySuccess>false</notifySuccess>
                  <notifyAborted>false</notifyAborted>
                  <notifyNotBuilt>false</notifyNotBuilt>
                  <notifyUnstable>false</notifyUnstable>
                  <notifyFailure>false</notifyFailure>
                  <notifyBackToNormal>false</notifyBackToNormal>
                </jenkins.plugins.hipchat.HipChatNotifier_-HipChatJobProperty>
                <com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty plugin="ownership@0.7">
                  <ownership>
                    <ownershipEnabled>true</ownershipEnabled>
                    <primaryOwnerId>victor.martinez</primaryOwnerId>
                    <coownersIds class="sorted-set"/>
                  </ownership>
                </com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty>
                <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.22">
                  <autoRebuild>false</autoRebuild>
                </com.sonyericsson.rebuild.RebuildSettings>
                <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@1.8.3">
                  <maxConcurrentPerNode>0</maxConcurrentPerNode>
                  <maxConcurrentTotal>0</maxConcurrentTotal>
                  <throttleEnabled>false</throttleEnabled>
                  <throttleOption>project</throttleOption>
                </hudson.plugins.throttleconcurrents.ThrottleJobProperty>
              </properties>
              <scm class="hudson.plugins.git.GitSCM" plugin="git@2.3.5">
                <configVersion>2</configVersion>
                <userRemoteConfigs>
                  <hudson.plugins.git.UserRemoteConfig>
                    <url>
                    git@github.com:cc/cc.git
                    </url>
                    <credentialsId>c43d943d-f03b-4db2-8aa8-6467d20000c3</credentialsId>
                  </hudson.plugins.git.UserRemoteConfig>
                </userRemoteConfigs>
                <branches>
                  <hudson.plugins.git.BranchSpec>
                  <name>*/master</name>
                </hudson.plugins.git.BranchSpec>
                </branches>
                <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
                <submoduleCfg class="list"/>
                <extensions/>
              </scm>
              <assignedNode>osx</assignedNode>
              <canRoam>false</canRoam>
              <disabled>false</disabled>
              <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
              <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
              <jdk>(Default)</jdk>
              <triggers/>
              <concurrentBuild>false</concurrentBuild>
              <builders/>
              <publishers/>
              <buildWrappers/>
            </project>
            
          • Workaround (based on "master" branch)
            <project>
              <actions/>
              <description/>
              <keepDependencies>false</keepDependencies>
              <properties>
              <hudson.plugins.buildblocker.BuildBlockerProperty plugin="build-blocker-plugin@1.6">
                <useBuildBlocker>false</useBuildBlocker>
              </hudson.plugins.buildblocker.BuildBlockerProperty>
              <com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty plugin="build-failure-analyzer@1.13.0">
                <doNotScan>false</doNotScan>
              </com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty>
              <jenkins.plugins.hipchat.HipChatNotifier_-HipChatJobProperty plugin="hipchat@0.1.6">
                <room/>
                <startNotification>false</startNotification>
                <notifySuccess>false</notifySuccess>
                <notifyAborted>false</notifyAborted>
                <notifyNotBuilt>false</notifyNotBuilt>
                <notifyUnstable>false</notifyUnstable>
                <notifyFailure>false</notifyFailure>
                <notifyBackToNormal>false</notifyBackToNormal>
              </jenkins.plugins.hipchat.HipChatNotifier_-HipChatJobProperty>
              <com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty plugin="ownership@0.7">
                <ownership>
                  <ownershipEnabled>true</ownershipEnabled>
                  <primaryOwnerId>victor.martinez</primaryOwnerId>
                  <coownersIds class="sorted-set"/>
                </ownership>
              </com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty>
              <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.22">
                <autoRebuild>false</autoRebuild>
              </com.sonyericsson.rebuild.RebuildSettings>
              <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@1.8.3">
              <maxConcurrentPerNode>0</maxConcurrentPerNode>
              <maxConcurrentTotal>0</maxConcurrentTotal>
              <throttleEnabled>false</throttleEnabled>
              <throttleOption>project</throttleOption>
              </hudson.plugins.throttleconcurrents.ThrottleJobProperty>
              </properties>
              <scm class="hudson.plugins.git.GitSCM" plugin="git@2.3.5">
                <configVersion>2</configVersion>
                <userRemoteConfigs>
                  <hudson.plugins.git.UserRemoteConfig>
                    <url>
                    git@github.com:cc/cc.git
                    </url>
                    <credentialsId>c43d943d-f03b-4db2-8aa8-6467d20000c3</credentialsId>
                  </hudson.plugins.git.UserRemoteConfig>
                </userRemoteConfigs>
                <branches>
                  <hudson.plugins.git.BranchSpec>
                  <name>master</name>
                </hudson.plugins.git.BranchSpec>
                </branches>
                <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
                <submoduleCfg class="list"/>
                <extensions/>
              </scm>
              <assignedNode>osx</assignedNode>
              <canRoam>false</canRoam>
              <disabled>false</disabled>
              <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
              <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
              <jdk>(Default)</jdk>
              <triggers/>
              <concurrentBuild>false</concurrentBuild>
              <builders/>
              <publishers/>
              <buildWrappers/>
            </project>
            
          • Polling log (it's always like the below one)
            Polling Log
            
            View as plain text
            This page captures the polling log that triggered this build.
            

          I've found that behaviour when using "*/master"

          Cheers

          Victor Martinez added a comment - - edited Bug (based on "*/master" branch) <project> <actions/> <description/> <keepDependencies> false </keepDependencies> <properties> <hudson.plugins.buildblocker.BuildBlockerProperty plugin= "build-blocker-plugin@1.6" > <useBuildBlocker> false </useBuildBlocker> </hudson.plugins.buildblocker.BuildBlockerProperty> <com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty plugin= "build-failure-analyzer@1.13.0" > <doNotScan> false </doNotScan> </com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty> <jenkins.plugins.hipchat.HipChatNotifier_-HipChatJobProperty plugin= "hipchat@0.1.6" > <room/> <startNotification> false </startNotification> <notifySuccess> false </notifySuccess> <notifyAborted> false </notifyAborted> <notifyNotBuilt> false </notifyNotBuilt> <notifyUnstable> false </notifyUnstable> <notifyFailure> false </notifyFailure> <notifyBackToNormal> false </notifyBackToNormal> </jenkins.plugins.hipchat.HipChatNotifier_-HipChatJobProperty> <com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty plugin= "ownership@0.7" > <ownership> <ownershipEnabled> true </ownershipEnabled> <primaryOwnerId> victor.martinez </primaryOwnerId> <coownersIds class= "sorted-set" /> </ownership> </com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty> <com.sonyericsson.rebuild.RebuildSettings plugin= "rebuild@1.22" > <autoRebuild> false </autoRebuild> </com.sonyericsson.rebuild.RebuildSettings> <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin= "throttle-concurrents@1.8.3" > <maxConcurrentPerNode> 0 </maxConcurrentPerNode> <maxConcurrentTotal> 0 </maxConcurrentTotal> <throttleEnabled> false </throttleEnabled> <throttleOption> project </throttleOption> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> </properties> <scm class= "hudson.plugins.git.GitSCM" plugin= "git@2.3.5" > <configVersion> 2 </configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> <url> git@github.com:cc/cc.git </url> <credentialsId> c43d943d-f03b-4db2-8aa8-6467d20000c3 </credentialsId> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> <name> */master </name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations> false </doGenerateSubmoduleConfigurations> <submoduleCfg class= "list" /> <extensions/> </scm> <assignedNode> osx </assignedNode> <canRoam> false </canRoam> <disabled> false </disabled> <blockBuildWhenDownstreamBuilding> false </blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding> false </blockBuildWhenUpstreamBuilding> <jdk> (Default) </jdk> <triggers/> <concurrentBuild> false </concurrentBuild> <builders/> <publishers/> <buildWrappers/> </project> Workaround (based on "master" branch) <project> <actions/> <description/> <keepDependencies> false </keepDependencies> <properties> <hudson.plugins.buildblocker.BuildBlockerProperty plugin= "build-blocker-plugin@1.6" > <useBuildBlocker> false </useBuildBlocker> </hudson.plugins.buildblocker.BuildBlockerProperty> <com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty plugin= "build-failure-analyzer@1.13.0" > <doNotScan> false </doNotScan> </com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty> <jenkins.plugins.hipchat.HipChatNotifier_-HipChatJobProperty plugin= "hipchat@0.1.6" > <room/> <startNotification> false </startNotification> <notifySuccess> false </notifySuccess> <notifyAborted> false </notifyAborted> <notifyNotBuilt> false </notifyNotBuilt> <notifyUnstable> false </notifyUnstable> <notifyFailure> false </notifyFailure> <notifyBackToNormal> false </notifyBackToNormal> </jenkins.plugins.hipchat.HipChatNotifier_-HipChatJobProperty> <com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty plugin= "ownership@0.7" > <ownership> <ownershipEnabled> true </ownershipEnabled> <primaryOwnerId> victor.martinez </primaryOwnerId> <coownersIds class= "sorted-set" /> </ownership> </com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty> <com.sonyericsson.rebuild.RebuildSettings plugin= "rebuild@1.22" > <autoRebuild> false </autoRebuild> </com.sonyericsson.rebuild.RebuildSettings> <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin= "throttle-concurrents@1.8.3" > <maxConcurrentPerNode> 0 </maxConcurrentPerNode> <maxConcurrentTotal> 0 </maxConcurrentTotal> <throttleEnabled> false </throttleEnabled> <throttleOption> project </throttleOption> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> </properties> <scm class= "hudson.plugins.git.GitSCM" plugin= "git@2.3.5" > <configVersion> 2 </configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> <url> git@github.com:cc/cc.git </url> <credentialsId> c43d943d-f03b-4db2-8aa8-6467d20000c3 </credentialsId> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> <name> master </name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations> false </doGenerateSubmoduleConfigurations> <submoduleCfg class= "list" /> <extensions/> </scm> <assignedNode> osx </assignedNode> <canRoam> false </canRoam> <disabled> false </disabled> <blockBuildWhenDownstreamBuilding> false </blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding> false </blockBuildWhenUpstreamBuilding> <jdk> (Default) </jdk> <triggers/> <concurrentBuild> false </concurrentBuild> <builders/> <publishers/> <buildWrappers/> </project> Polling log (it's always like the below one) Polling Log View as plain text This page captures the polling log that triggered this build. I've found that behaviour when using "*/master" Cheers

          Mark Waite added a comment -

          That's a surprisingly short polling log. I'm also surprised there is a polling log, since I don't see any indication that you've defined polling in the job definition. Is it defined to poll, and if so, what is the polling frequency (or is it empty)?

          There were a number of polling related fixes in git plugin 2.4.0 and git client plugin 1.18.0 (and in the version of the git client which added support for Windows git 2.5.0, 1.1.9.0). Have you tried those more recent plugin versions?

          I attempted to duplicate the problem using one of my authenticated private repos on GitHub with git plugin 2.4.0 and am unable to do so.

          Mark Waite added a comment - That's a surprisingly short polling log. I'm also surprised there is a polling log, since I don't see any indication that you've defined polling in the job definition. Is it defined to poll, and if so, what is the polling frequency (or is it empty)? There were a number of polling related fixes in git plugin 2.4.0 and git client plugin 1.18.0 (and in the version of the git client which added support for Windows git 2.5.0, 1.1.9.0). Have you tried those more recent plugin versions? I attempted to duplicate the problem using one of my authenticated private repos on GitHub with git plugin 2.4.0 and am unable to do so.

          Actually I didn't mention, It used to be "h 5/* * * * *" but I was forced to delete that configuration, and even though I ran that job manually without any polling it used to keep polling. And also creating a new jenkins job without polling and running manually once it kept polling and building continuously

          I'll double check whether I can reproduce that issue within a docker container, and send you those details later on

          Victor Martinez added a comment - Actually I didn't mention, It used to be "h 5/* * * * *" but I was forced to delete that configuration, and even though I ran that job manually without any polling it used to keep polling. And also creating a new jenkins job without polling and running manually once it kept polling and building continuously I'll double check whether I can reproduce that issue within a docker container, and send you those details later on

          I'm not sure what's going on, I've upgraded it to the latest version and still same issue. I strongly believe it might be related to some weird configuration somehow in my private git server. You probably can close this ticket now and I'll reopen/update it if I find the cause.

          Victor Martinez added a comment - I'm not sure what's going on, I've upgraded it to the latest version and still same issue. I strongly believe it might be related to some weird configuration somehow in my private git server. You probably can close this ticket now and I'll reopen/update it if I find the cause.
          Kanstantsin Shautsou made changes -
          Link New: This issue is related to JENKINS-30345 [ JENKINS-30345 ]

          Vincent Fiset added a comment -

          I am affected by this exact problem with Jenkins ver. 1.651.1 and Git plugin 2.4.2

          Vincent Fiset added a comment - I am affected by this exact problem with Jenkins ver. 1.651.1 and Git plugin 2.4.2

          Mark Waite added a comment - - edited

          vincentf can you describe the steps you take to see this problem?

          The use case described in the bug report is so common that I would expect hundreds of users to report that problem if it existed in a general configuration. I have many, many jobs which use the "*/master" branch spec, and none of them run continuously or build continuously.

          Mark Waite added a comment - - edited vincentf can you describe the steps you take to see this problem? The use case described in the bug report is so common that I would expect hundreds of users to report that problem if it existed in a general configuration. I have many, many jobs which use the "*/master" branch spec, and none of them run continuously or build continuously.

          There are a lot of cases when such problem may appear https://issues.jenkins-ci.org/browse/JENKINS-30345
          https://issues.jenkins-ci.org/browse/JENKINS-29714
          And PR that solved at least for me in production logic missbehaviour https://github.com/jenkinsci/git-plugin/pull/352

          Kanstantsin Shautsou added a comment - There are a lot of cases when such problem may appear https://issues.jenkins-ci.org/browse/JENKINS-30345 https://issues.jenkins-ci.org/browse/JENKINS-29714 And PR that solved at least for me in production logic missbehaviour https://github.com/jenkinsci/git-plugin/pull/352

            Unassigned Unassigned
            v2v Victor Martinez
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: