[JENKINS-20502] enforce configured refspecs have been fetched
clone don't handle custom refspecs, so need to run fetch
[JENKINS-20318] use git-credentials-store
Merge remote-tracking branch 'upstream/master'