Fix the build target detection
This commit is contained in:
@@ -28,9 +28,9 @@ fi
|
|||||||
if [ $CI_PIPELINE_SOURCE == "push" ]; then
|
if [ $CI_PIPELINE_SOURCE == "push" ]; then
|
||||||
BUILD_LATEST=true
|
BUILD_LATEST=true
|
||||||
elif [ $CI_PIPELINE_SOURCE == "trigger" ]; then
|
elif [ $CI_PIPELINE_SOURCE == "trigger" ]; then
|
||||||
if [ -z $BUILD_LATEST ] || \
|
if [ -z $BUILD_LATEST ] && \
|
||||||
[ -z $BUILD_MAJOR ] || \
|
[ -z $BUILD_MAJOR ] && \
|
||||||
[ -z $BUILD_MINOR ] || \
|
[ -z $BUILD_MINOR ] && \
|
||||||
[ -z $BUILD_REVISION ]; then
|
[ -z $BUILD_REVISION ]; then
|
||||||
echo "You must provide build targets to this stage when ran from Pipeline Triggers."
|
echo "You must provide build targets to this stage when ran from Pipeline Triggers."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user