Merge "Hide the zuul-cloner output unless there is an error"

This commit is contained in:
Jenkins 2016-04-28 19:42:50 +00:00 committed by Gerrit Code Review
commit 3eb4694b65
1 changed files with 8 additions and 2 deletions

View File

@ -82,6 +82,12 @@ function clone_repo {
branch="master"
fi
title "Cloning $repo"
zuul-cloner --branch "$branch" git://git.openstack.org $repo \
&& (cd $repo && git review -s)
output=$({ zuul-cloner --branch "$branch" git://git.openstack.org $repo \
&& (cd $repo && git review -s); } 2>&1)
_retval=$?
if [ $_retval -ne 0 ] ; then
echo "$output"
fi
return $_retval
}