Reputation: 121
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").
Here is a link to the console output:
As 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 :/
Upvotes: 4
Views: 3205
Reputation: 1
check the scm url,if encode url may cause this problem,like:
https://example.com:8443/svn/%E7%A0%94/hm/prj%201.x
Upvotes: 0
Reputation: 7924
I know this doesn't directly answer your question, but it's solid advice. As Kosuke rants here - polling is sub-optimal. I strongly suggest you implement a post commit hook as described in the jenkins svn plugin wiki.
Upvotes: 0