Skip to content
Snippets Groups Projects
Commit 228e5f53 authored by Chase Qi's avatar Chase Qi
Browse files

.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: default avatarChase Qi <chase.qi@linaro.org>
parent 351e3869
No related branches found
No related tags found
1 merge request!20.oniro-ci: enable lava test jobs on Seco C61 4G
...@@ -102,6 +102,9 @@ ...@@ -102,6 +102,9 @@
- test -n "$CI_ONIRO_BUILD_FLAVOUR" || ( - test -n "$CI_ONIRO_BUILD_FLAVOUR" || (
echo "precondition failed - set CI_ONIRO_BUILD_FLAVOUR to \"flavour\" of the build to use (e.g. linux)" echo "precondition failed - set CI_ONIRO_BUILD_FLAVOUR to \"flavour\" of the build to use (e.g. linux)"
&& exit 1 ) && 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. # 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 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment