|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

I am having the problem of polling always deciding that there were changes.
I have a master with many branches and I want to just look at one branch.
there were many past problems in this area, so it was confusing looking at jiras in 2014
Finally I found this jira.
The code in question that decides if there were changes, had a big change Feb 3, 2015
look here for the diff see where the buildData.hasBeenBuilt(head) continue;
has been been replaced by other code
https://github.com/jenkinsci/git-plugin/commit/70857d247d1ef3ab57f7ce047b8d4c7fe88aa4f3#diff-f1f2ff967f38c8b53a4901be3169035e
I took the hint from above and reverted my git-plugin from 2.3.5 to 2.3.4 (not all the way back to 2.3.3)
I finally got the git polling log to say "no changes" rather than changes all the time. However I also added a "git checkout $BRANCH"
to my build script. So I have to isolate whether that may have helped. The comment about headless git stuff got me wondering about whether a "git checkout $BRANCH" would help get my workspace into a "good" state. I don't use the workspace polling additional thing though.
here's evidence that I was able to get it to to not detect a change.
Before, I was seeing what others are reporting above: the sha's were the same but it was still detecting changes. I suspect the code change at the above url isn't exactly right.
Started on Mar 16, 2015 3:15:00 AM
Using strategy: Default
[poll] Last Built Revision: Revision f79163c96d12a2277de247c0d8c530db0a9b606c (origin/brandon_jenkins)
> git ls-remote -h https://github.com/h2oai/h2o-dev.git brandon_jenkins # timeout=10
[poll] Latest remote head revision is: f79163c96d12a2277de247c0d8c530db0a9b606c
Done. Took 1.9 sec
No changes
-kevin