Merge "Fall back to git clone if zuul-cloner not available"

This commit is contained in:
Jenkins 2015-06-10 21:40:37 +00:00 committed by Gerrit Code Review
commit 542df4f206
1 changed files with 6 additions and 1 deletions

View File

@ -22,7 +22,12 @@ mkdir -p .test/old/out
mkdir -p .test/new/config
mkdir -p .test/new/out
cd .test
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git git://git.openstack.org/openstack-infra project-config
if [ -e /usr/zuul-env/bin/zuul-cloner ];
then
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git git://git.openstack.org/openstack-infra project-config
else
git clone --depth=1 git://git.openstack.org/openstack-infra/project-config
fi
cp project-config/jenkins/jobs/* old/config
cp project-config/jenkins/jobs/* new/config
cd ..