-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
linux
I have a Jenkins jobs setup to poll SCM nightly and run a build if there are changes. The problem is if there are no changes, Jenkins executes the job anyway.
Here is console output of a simple job that polls SCM and then executes a single build step (shell command of "echo blah").
attached is a screenshot of the console output (also available here: http://i.imgur.com/5jQTIAe.png)
You can see, even though there were no SCM changes, the build continues. The behavior I am looking for is if there is no change, the build steps are not executed. Also strange is the first thing in the output is "Started by an SCM change", followed by an indication that there was in fact no change.
[JENKINS-21288] Build with Poll SCM trigger proceeds even though no SCM change
Priority | Original: Major [ 3 ] | New: Blocker [ 1 ] |
We have the same issue! See
JENKINS-21260,JENKINS-17614(Jenkins triggers builds on SCM changes although not configured)It looks like people who have seen that bug mostly reporting it to corresponding SCM plugin (See for example,
JENKINS-5926), but it looks like more general.I have search internet for solution, and only have found different other forums with about the same description of the bug, for example:
http://stackoverflow.com/questions/21006676/jenkins-build-proceeds-even-though-scm-poll-finds-no-changes
http://stackoverflow.com/questions/20007854/jenkins-scm-triggering-constant-builds-despite-no-change
HELP! We are forced to shutdown our build server because of this issue!