Ignore failure of git review -s in propose_requirements_update

If a project has a broken .gitreview file, git review -s will fail and
the job will abort. Just continue in this case.

Change-Id: I07cd00cdbbc075d90278b39674a3fb3fc3720054
This commit is contained in:
Andreas Jaeger 2014-05-29 16:47:09 +02:00
parent 0a23df5a98
commit 966d787026

View File

@ -67,8 +67,18 @@ EOF
git config user.name "OpenStack Proposal Bot"
git config user.email "openstack-infra@lists.openstack.org"
git config gitreview.username "proposal-bot"
# Do error checking manually to continue with the next project
# in case of failures like a broken .gitreview file.
set +e
git review -s
RET=$?
set -e
popd
if [ "$RET" -ne "0" ] ; then
ALL_SUCCESS=1
echo "Error in git review -s: Ignoring $PROJECT"
continue
fi
python update.py $PROJECT_DIR