Fix jenkins-job-builder-compare-xml job by using zuul-cloner

The script in jenkins-job-builder-compare-xml job failed due to git clone
executing a shallow clone:
  Cloning into 'project-config'...
  fatal: The remote end hung up unexpectedly
  fatal: protocol error: bad pack header

This can be fixed by just removing the '/p/' from the url but we would
rather use the zuul-cloner because it can take advantage of the local
git cache on disk thus allowing for more efficient cloning.

Change-Id: I05f1c928a15cf5e791a95a01975e8aba78f4953f
This commit is contained in:
Khai Do 2015-03-25 15:17:36 -07:00
parent f14589b14d
commit 23c851eb2a
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ mkdir -p .test/old/out
mkdir -p .test/new/config
mkdir -p .test/new/out
cd .test
git clone https://review.openstack.org/p/openstack-infra/project-config --depth 1
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git git://git.openstack.org/openstack-infra project-config
cp project-config/jenkins/jobs/* old/config
cp project-config/jenkins/jobs/* new/config
cd ..