[FIXED JENKINS-22641] FileUtils.readFileToByteArray behavior has changed in the latest version of commons-io.
Remove a closeQuietly call.
Fix NPE when stream is already closed.
Simplify finally block.
Removing ArtifactArchiver.latestOnly; LogRotator.artifactNumToKeep handles this more generally.
Add test unit for JENKINS-22641
Merge branch 'JENKINS-22641' of github.com:christ66/jenkins into JENKINS-22641
Replaced Fingerprinter.recordBuildArtifacts with ArtifactArchiver.fingerprint.
This is simpler: we do not need to inspect the configuration of the project.
Merge branch 'JENKINS-22641' of github.com:christ66/jenkins
[JENKINS-22641] Noting merge of #1322.
Corrected NPE from Migrator.