Don't let a reqs sync fail kill the sync job
Try to sync each and every project. An error syncing a single project should not cause the job to stop running early preventing syncage for projects later in the list. Do this by setting the success flag appropriately if syncing fails and continuing to the next project. Change-Id: I801abca1f21643fc23a8e3b5e7fc6d89ebd313ff
This commit is contained in:
parent
e6bb7f8819
commit
0fbd5ca822
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user