From a254482f316e86069269e292471968a0560a5d2f Mon Sep 17 00:00:00 2001 From: eps1lon Date: Tue, 27 Apr 2021 12:46:30 +0200 Subject: [PATCH] handle exit code manually --- .circleci/config.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e3a6497ceea89..920b0219192e2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -173,13 +173,19 @@ jobs: command: | git fetch origin master cd ./scripts/release && yarn && cd ../../ + # Don't exit immediately but handle the exit code + set +e scripts/release/download-experimental-build.js --commit=$(git merge-base HEAD origin/master) - # broken base build? - if [ $? -eq 64 ] + if [ $? -eq 0 ] then + mv ./build2 ./base-build + elif [ $? -eq 64 ] + then + echo "Ignoring broken base build" exit 0 + else + exit $? fi - mv ./build2 ./base-build - persist_to_workspace: root: . paths: