APEX: Fix gate check scenario detection
[releng.git] / jjb / apex / apex-download-artifact.sh
index c12406c..6c0f8fe 100755 (executable)
@@ -10,6 +10,13 @@ echo
 
 [[ -d $BUILD_DIRECTORY ]] || mkdir -p $BUILD_DIRECTORY
 
+if [ -z "$DEPLOY_SCENARIO" ]; then
+  echo "Deploy scenario not set!"
+  exit 1
+else
+  echo "Deploy scenario: ${DEPLOY_SCENARIO}"
+fi
+
 # if upstream we do not need to download anything
 if [[ "$DEPLOY_SCENARIO" =~ upstream ]]; then
   echo "Upstream deployment detected, skipping download artifact"