[FIXED JENKINS-17236] Introduce ArtifactManager.

See [JENKINS-17236](https://issues.jenkins-ci.org/browse/JENKINS-17236) for background.