From a52559ddb38a64d7fceaa8bf9b8afd7356ccc439 Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Mon, 25 Mar 2019 11:08:19 +0100 Subject: [PATCH] Fix the build target detection --- utils/publish/production.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/publish/production.sh b/utils/publish/production.sh index 819e47a..a84f82d 100755 --- a/utils/publish/production.sh +++ b/utils/publish/production.sh @@ -28,9 +28,9 @@ fi if [ $CI_PIPELINE_SOURCE == "push" ]; then BUILD_LATEST=true elif [ $CI_PIPELINE_SOURCE == "trigger" ]; then - if [ -z $BUILD_LATEST ] || \ - [ -z $BUILD_MAJOR ] || \ - [ -z $BUILD_MINOR ] || \ + if [ -z $BUILD_LATEST ] && \ + [ -z $BUILD_MAJOR ] && \ + [ -z $BUILD_MINOR ] && \ [ -z $BUILD_REVISION ]; then echo "You must provide build targets to this stage when ran from Pipeline Triggers." exit 1