Skip to content

Commit a254482

Browse files
committed
handle exit code manually
1 parent e1cb0e9 commit a254482

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.circleci/config.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,19 @@ jobs:
173173
command: |
174174
git fetch origin master
175175
cd ./scripts/release && yarn && cd ../../
176+
# Don't exit immediately but handle the exit code
177+
set +e
176178
scripts/release/download-experimental-build.js --commit=$(git merge-base HEAD origin/master)
177-
# broken base build?
178-
if [ $? -eq 64 ]
179+
if [ $? -eq 0 ]
179180
then
181+
mv ./build2 ./base-build
182+
elif [ $? -eq 64 ]
183+
then
184+
echo "Ignoring broken base build"
180185
exit 0
186+
else
187+
exit $?
181188
fi
182-
mv ./build2 ./base-build
183189
- persist_to_workspace:
184190
root: .
185191
paths:

0 commit comments

Comments
 (0)