-
Bug
-
Resolution: Unresolved
-
Major
-
Jenkins 2.7.3
Git Plugin 3.0.0
Hi,
We have a situation where my pipeline job is configured with branch "origin/develop"
I have a master and a tests branches as well.
Configured with polling every 5 minutes.
There's no change in any of the branches and still polling 'detects' one on the system-tests branch...
Polling Log example:
Started on Nov 9, 2016 5:58:00 PM Using strategy: Default [poll] Last Built Revision: Revision 9b3f801b5ce8d6649c25ddd4a573801c9a6b5a23 (refs/remotes/origin/develop) > /usr/bin/git ls-remote -h ssh://my.git.server/git/test.git # timeout=10 Found 3 remote heads on ssh://my.git.server/git/test.git [poll] Latest remote head revision on refs/heads/develop is: 9b3f801b5ce8d6649c25ddd4a573801c9a6b5a23 - already built by 4 Using strategy: Default [poll] Last Built Revision: Revision 9b3f801b5ce8d6649c25ddd4a573801c9a6b5a23 (refs/remotes/origin/develop) > /usr/bin/git ls-remote -h ssh://my.git.server/git/test.git # timeout=10 Found 3 remote heads on ssh://my.git.server/git/test.git [poll] Latest remote head revision on refs/heads/develop is: 9b3f801b5ce8d6649c25ddd4a573801c9a6b5a23 - already built by 4 Using strategy: Default [poll] Last Built Revision: Revision 9b3f801b5ce8d6649c25ddd4a573801c9a6b5a23 (refs/remotes/origin/develop) > /usr/bin/git ls-remote -h ssh://my.git.server/git/test.git # timeout=10 Found 3 remote heads on ssh://my.git.server/git/test.git [poll] Latest remote head revision on refs/heads/develop is: 9b3f801b5ce8d6649c25ddd4a573801c9a6b5a23 - already built by 4 Using strategy: Default [poll] Last Built Revision: Revision 9b3f801b5ce8d6649c25ddd4a573801c9a6b5a23 (refs/remotes/origin/develop) > /usr/bin/git ls-remote -h ssh://my.git.server/git/test.git # timeout=10 Found 3 remote heads on ssh://my.git.server/git/test.git [poll] Latest remote head revision on refs/heads/system-tests is: afac68d836bc8dcd31826fbd56cb343cf1daf3b5 Done. Took 0.34 sec Changes found
I tried recreating the job, test branch... no use...
Appreciate your help here.
Thanks
- is related to
-
JENKINS-44762 Polling always finds changes when you checkout 2 branches of the same repo in the pipeline
-
- Open
-
- relates to
-
JENKINS-38508 git scm poll doesn't ignore changes with pipeline
-
- Open
-
I have similar issues with several of my jobs. Some of them I am able to get to "reset" by unchecking polling and building manually once, before setting up polling again. I do have one particular job thought at builds every 5 minutes if I am polling no matter what I do. Attached is a polling log. Aside from time stamps, they all look identical for this job.
gitpolling.log
So it looks like the job isn't recognizing that revision 4a03...1f79 has already been built. For clarity, I am pulling BRANCH-49 in the pipeline section of the Jenkins UI; this is simply to retrieve the Jenkinsfile. The Jenkinsfile pulls master for myservice and builds it, then pulls master for myotherservice and builds that.
FWIW, I have investigated moving away from polling and using a webhook, however the Bitbucket plugin for Jenkins hasn't been maintained. I was able to get a fork of the repo to build and work for a freestyle job, but the webhook will not trigger a pipeline job, so I'm back to trying to figure out what is going on here with polling.