Merge "Don't short circuit when projects fails to clone"
This commit is contained in:
commit
61a3e5ea16
@ -40,7 +40,21 @@ for PROJECT in $(cat projects.txt); do
|
||||
|
||||
PROJECT_DIR=$(basename $PROJECT)
|
||||
rm -rf $PROJECT_DIR
|
||||
|
||||
# Don't short circuit when one project fails to clone, just report the
|
||||
# error and move onto the next project.
|
||||
set +e
|
||||
git clone ssh://$USERNAME@review.openstack.org:29418/$PROJECT.git
|
||||
RET=$?
|
||||
set -e
|
||||
if [ "$RET" -ne "0" ] ; then
|
||||
# ALL_SUCCESS is being set to 1, which means that a failure condition
|
||||
# has been detected. The job will end in failure once it finishes
|
||||
# cycling through the remaining projects.
|
||||
ALL_SUCCESS=1
|
||||
echo "Error in git clone: Ignoring $PROJECT"
|
||||
continue
|
||||
fi
|
||||
pushd $PROJECT_DIR
|
||||
|
||||
# check whether the project has this branch or a suitable fallback
|
||||
|
Loading…
x
Reference in New Issue
Block a user