[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

--HG--
extra : rebase_source : 7c4271d08177328e9686a1c2059cb01f1c4f515e
extra : amend_source : 60c844565e12643721edc28f8635cd1787eaf490