[FIXED JENKINS-16533] Respect external revision

Fixes https://issues.jenkins-ci.org/browse/JENKINS-16533