[FIXED JENKINS-14862] add option to get the whole repository on clone/pull

if you want to build a tag it is necessary to pull the whole repository
[JENKINS-14862](https://issues.jenkins-ci.org/browse/JENKINS-14862)