ci: Print an error in the log if the label check fails

One less step for a developer to figure out why this failed.
This commit is contained in:
Angus Gratton
2019-03-14 10:15:49 +11:00
committed by Angus Gratton
parent 710bcbd447
commit 3bfb0d86e3

View File

@@ -804,7 +804,7 @@ check_pipeline_triggered_by_label:
script:
# If the pipeline is triggered with label, the pipeline will only succeeded if "regular_test" label is added.
# We want to make sure some jobs are always executed to detect regression.
- test "$BOT_LABEL_REGULAR_TEST" = "true" || exit -1
- test "$BOT_LABEL_REGULAR_TEST" = "true" || { echo "CI can only pass if 'regular_test' label is included"; exit -1; }
assign_test:
tags: