Skip to content

Commit 57056ba

Browse files
committed
Remove switch.
1 parent 75357ef commit 57056ba

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

ci/input_files/build.yaml.tpl

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -294,22 +294,15 @@ e2e-status:
294294
{{- end }}
295295
{{- end }}
296296
- |
297-
# TODO: link to the test results
298-
# make this job start running at same time as e2e-test job
299-
# do not wait around for the scheduled job to complete
300-
switch "${CI_JOB_STATUS}" in
301-
"success")
302-
echo "✅ E2E tests completed successfully"
303-
;;
304-
"failed")
305-
echo "❌ E2E tests failed"
306-
exit 1
307-
;;
308-
"canceled")
309-
echo "❌ E2E tests were canceled"
310-
exit 1
311-
;;
312-
*)
313-
echo "❌ E2E tests unknown status: ${CI_JOB_STATUS}"
314-
exit 1
315-
esac
297+
if [ "$CI_JOB_STATUS" = "success" ]; then
298+
echo "✅ E2E tests completed successfully"
299+
elif [ "$CI_JOB_STATUS" = "failed" ]; then
300+
echo "❌ E2E tests failed"
301+
exit 1
302+
elif [ "$CI_JOB_STATUS" = "canceled" ]; then
303+
echo "❌ E2E tests were canceled"
304+
exit 1
305+
else
306+
echo "❌ E2E tests unknown status: ${CI_JOB_STATUS}"
307+
exit 1
308+
fi

0 commit comments

Comments
 (0)