Annotate hudson.Util methods.

The change adds annotations for all methods inside the class. The initial idea - enforce checks of symlink methods to prevent NPEs on Windows platforms.

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Fixed annotations in hudson/Util.java according to the discussion with @jglick and @kutzi

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
[FIX JENKINS-16827] Don't try to guess the build number

The confusion resulting from a wrongly guessed build number isn't
worth the minimal use this information provides.
[JENKINS-17374 JENKINS-18116] Don't set gzip header for error
[FIXED JENKINS-19454] - Added DecoratedLauncher implementation to the core.
This launcher Allows subclasses to only implement methods they want to override.
Originally, this launcher has been implemented in Custom Tools Plugin, but there are many duplicates in other plugins => it would be useful to have it in Jenkins core.

Resolves https://issues.jenkins-ci.org/browse/JENKINS-19454

Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>
[FIXED JENKINS-20559] - ProcStarter: Check for null before cloning of environment variables list

Resolves https://issues.jenkins-ci.org/browse/JENKINS-20559
BTW, I also need to add some tests to "Test Harness" in order to improve coverage of nested operations.
These test require a fix for https://issues.jenkins-ci.org/browse/JENKINS-19454

Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>
[JENKINS-20559] - A direct test for the bug

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Add logging to PeepholePermalink's RunListener
[maven-release-plugin] prepare release jenkins-1.566
[maven-release-plugin] prepare for next development iteration
updated changelog for release
updated changelog as a part of the release
merged back the RC branch
[FIXED JENKINS-23277] Better diagnosis for an NPE probably involving cloud slaves.
Minor improvements in Jenkins Node-related classes.
The change adds some missing null checks

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Added missing null checks for Computer::getNode(), SlaveComputer::getNode() and AbstractBuild::getCurrentNode()

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>

Conflicts:
	core/src/main/java/hudson/model/AbstractBuild.java
[nodes handling] - Fixed code according to comments from @jglick

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>

Conflicts:
	core/src/main/java/hudson/model/Job.java
[node null checks] - Throw the HTTP "Not found exception"

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Merge branch 'JENKINS-17374-18116' of github.com:daniel-beck/jenkins
[JENKINS-17374] [JENKINS-18116] Noting merge of #1260.