Merge "Don't let a reqs sync fail kill the sync job"
This commit is contained in:
commit
8e60d06859
@ -90,11 +90,20 @@ EOF
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Don't short circuit when one project fails to sync.
|
||||||
|
set +e
|
||||||
if [ "$OWN_PROJECT" == "requirements" ] ; then
|
if [ "$OWN_PROJECT" == "requirements" ] ; then
|
||||||
python update.py $PROJECT_DIR
|
python update.py $PROJECT_DIR
|
||||||
else
|
else
|
||||||
bash -xe tools/sync-projects.sh $PROJECT_DIR
|
bash -xe tools/sync-projects.sh $PROJECT_DIR
|
||||||
fi
|
fi
|
||||||
|
RET=$?
|
||||||
|
set -e
|
||||||
|
if [ "$RET" -ne "0" ] ; then
|
||||||
|
ALL_SUCCESS=1
|
||||||
|
echo "Error in syncing: Ignoring $PROJECT"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
pushd $PROJECT_DIR
|
pushd $PROJECT_DIR
|
||||||
if ! git diff --stat --exit-code HEAD ; then
|
if ! git diff --stat --exit-code HEAD ; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user