[JENKINS 19866] Add log handling line beginning with 'file://'
[FIXED JENKINS-19866] Merge pull request #1003 from ewongbb/jenkins_19866
Refactor hudson.console.UrlAnnotatorTest
[JENKINS-10615]

Reproduced the problem. Workspace is getting released prematurely, before publishers run. This has all sorts of serious problems.
[FIXED JENKINS-10615]

Hold on to the lease until the very end.
Previously, the lease was only held until the main build section is over, before publishers start running.