From 228e5f5334be7f57c7e512fc12ad538a8d0618c4 Mon Sep 17 00:00:00 2001 From: Chase Qi <chase.qi@linaro.org> Date: Thu, 24 Mar 2022 15:48:54 +0800 Subject: [PATCH] .oniro-ci: fail build job if the MACHINE variable not defined Fail build job if the MACHINE variable not defined, otherwise build job will be continued with the default qemux86-64 machine which is not desired. Signed-off-by: Chase Qi <chase.qi@linaro.org> --- .oniro-ci/build-generic.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.oniro-ci/build-generic.yaml b/.oniro-ci/build-generic.yaml index b10198c5..d5cbaa0e 100644 --- a/.oniro-ci/build-generic.yaml +++ b/.oniro-ci/build-generic.yaml @@ -102,6 +102,9 @@ - test -n "$CI_ONIRO_BUILD_FLAVOUR" || ( echo "precondition failed - set CI_ONIRO_BUILD_FLAVOUR to \"flavour\" of the build to use (e.g. linux)" && exit 1 ) + - test -n "$MACHINE" || ( + echo "precondition failed - set MACHINE to supported machines (e.g. qemux86-64)" + && exit 1 ) # Check devtool operation is enabled and configured properly. - | if { [ -n "$CI_ONIRO_DEVTOOL_RECIPE_NAME" ] && [ -z "$CI_ONIRO_DEVTOOL_LAYER_PATH" ]; } || { [ -z "$CI_ONIRO_DEVTOOL_RECIPE_NAME" ] && [ -n "$CI_ONIRO_DEVTOOL_LAYER_PATH" ]; } then -- GitLab