Skip to content

Commit e076ed9

Browse files
authored
Wrap environment resume to handle exit code in CI env (#1182)
* Scheduled CI task to keep alive defined development environments * Refine to handle non-0 exit code
1 parent 4a506a4 commit e076ed9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.circleci/config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,14 @@ jobs:
302302
platform environment:resume -p $PLATFORM_PROJECT -e $env -y
303303
done
304304
305+
exit_code=$?
306+
# Adjust exit code to 0 if non-zero
307+
if [ $exit_code -ne 0 ]; then
308+
echo "Environment resume command exited with non-zero exit code, catching to avoid false error on CI task"
309+
exit_code=0
310+
fi
311+
exit $exit_code
312+
305313
workflows:
306314
version: 2
307315
# Our default pipeline that tests the integrity of our code.

0 commit comments

Comments
 (0)