Merge "Don't let a reqs sync fail kill the sync job"

This commit is contained in:
Jenkins 2014-09-24 19:02:09 +00:00 committed by Gerrit Code Review
commit 8e60d06859

View File

@ -90,11 +90,20 @@ EOF
continue
fi
# Don't short circuit when one project fails to sync.
set +e
if [ "$OWN_PROJECT" == "requirements" ] ; then
python update.py $PROJECT_DIR
else
bash -xe tools/sync-projects.sh $PROJECT_DIR
fi
RET=$?
set -e
if [ "$RET" -ne "0" ] ; then
ALL_SUCCESS=1
echo "Error in syncing: Ignoring $PROJECT"
continue
fi
pushd $PROJECT_DIR
if ! git diff --stat --exit-code HEAD ; then