From 3bfb0d86e305545a9c1709a4c48a425b5d520a83 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 14 Mar 2019 10:15:49 +1100 Subject: [PATCH] ci: Print an error in the log if the label check fails One less step for a developer to figure out why this failed. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 285d641a7d..549adf3a3a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: