Hi all,
I've been working through this issue and trying to read other resources on post-commit hooks without finding a match for the issue I'm experiencing.
My jobs work fine, and SVN polling is working and triggering builds. However, the post-commit hook in SVN doesn't trigger a build. Instead, the following is written to the log:
Nov 10, 2014 11:50:33 AM jenkins.scm.impl.subversion.SubversionSCMSource$ListenerImpl onNotify
INFO: Received post-commit hook from 104ea3cd-1caa-42bb-bcc1-xxxxxxxxxxxx for revision 120,169 on paths [src/trunk/mgs/, ... (correct comma-separated path list)]
Nov 10, 2014 11:50:33 AM jenkins.scm.impl.subversion.SubversionSCMSource$ListenerImpl onNotify
INFO: No subversion consumers for UUID 104ea3cd-1caa-42bb-bcc1-xxxxxxxxxxxx
So far:
- The job is working manually, and via SVN polling
- The SCM trigger does not deny post-commit hooks
- The UUID is correct
- The paths appear to be correct
- The post-commit hook is using basic auth with a valid user name and API key (these work -- I used to trigger specific builds using this script)
- I'm not using the BlameSubversion plugin
- I have Jenkins 1.570 and SVN plugin 2.3.
- The SVN checkout for this item is marked with depth 'empty', but the source code appears only to check against the UUID (at this level).
I looked at the code for SubversionSCMSource.onNotify and setup a logger at level 'FINE' for that class. Nothing interesting. I tried:
for (SCMSourceOwner owner : SCMSourceOwners.all()) {
println owner
}
In the console and found the collection has no elements. I tried:
println Jenkins.instance.getAllItems(SCMSource.class)
as well but that's empty too.
At this point I'm at a loss. It might need to be anonymous instead of using basic auth (I'm trying that out) but apart from that I'm out of ideas.
Does anyone have any other ideas I can try?
Thanks in advance,
James