Checkout by label

Implemented the ability to checkout by label. 
https://issues.jenkins-ci.org/browse/JENKINS-3002