[JENKINS-9620] added shared option to git clone

See https://issues.jenkins-ci.org/browse/JENKINS-9620