We were having a similar issue after 1.43 -> 1.54 plugin upgrade : our post-commit hook was during from 2 minutes to 5 minutes... and sometimes the job ended before the commit...
We have 75 jobs with 1 svn location, and each uses two or more externals that are common of multiple repositories (some jobs are also using same location to a trunk).
I've patched the doNotifyCommit method and our post commit now is around 20 seconds ![](/images/icons/emoticons/smile.png)
The issue is in the UUID determination method that makes an svn call (https in our case) and repeat this call for each locations. I have just add a simple "cache" map that prevents newer calls on already gathered UUIDs.
Here is the pull request : https://github.com/jenkinsci/subversion-plugin/pull/59
EDIT to be more precise on results (20 seconds were measured at client side, including upload commit time, at server side, it lower : 11 seconds) :
Dec 12, 2013 9:41:35 PM FINE hudson.scm.SubversionRepositoryStatus
Starting subversion locations checks for all jobs
Dec 12, 2013 9:41:37 PM FINE hudson.scm.SubversionRepositoryStatus
Scheduling the immediate polling of hudson.model.FreeStyleProject@25a598f5[test-job]
Dec 12, 2013 9:41:37 PM FINE hudson.triggers.SCMTrigger
Scheduling a polling for hudson.model.FreeStyleProject@25a598f5[test-job]
Dec 12, 2013 9:41:37 PM FINE hudson.triggers.SCMTrigger
scheduling the trigger to (asynchronously) run
Dec 12, 2013 9:41:42 PM INFO hudson.triggers.SCMTrigger$Runner run
SCM changes detected in test-job. Triggering #137
Dec 12, 2013 9:41:46 PM FINE hudson.scm.SubversionRepositoryStatus
Ended subversion locations checks for all job
Dec 12, 2013 10:15:13 PM FINE hudson.scm.SubversionRepositoryStatus
Starting subversion locations checks for all jobs
Dec 12, 2013 10:15:40 PM FINE hudson.scm.SubversionRepositoryStatus
Scheduling the immediate polling of hudson.model.FreeStyleProject@350d5a52[test-job]
Dec 12, 2013 10:15:40 PM FINE hudson.triggers.SCMTrigger
Scheduling a polling for hudson.model.FreeStyleProject@350d5a52[test-job]
Dec 12, 2013 10:15:40 PM FINE hudson.triggers.SCMTrigger
scheduling the trigger to (asynchronously) run
Dec 12, 2013 10:15:51 PM INFO hudson.triggers.SCMTrigger$Runner run
SCM changes detected in test-job. Triggering #138
Dec 12, 2013 10:18:20 PM FINE hudson.scm.SubversionRepositoryStatus
Ended subversion locations checks for all jobs
A threadDump of Jenkins while the post commit hook is notifying Jenkins, would help to track down the problem.