Browse Source

Before uploading failed reports check if secrets are set

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 4 years ago
parent
commit
f1d3854a11
1 changed files with 5 additions and 0 deletions
  1. 5 0
      scripts/uploadReport.sh

+ 5 - 0
scripts/uploadReport.sh

@@ -52,6 +52,11 @@ BRANCH_TYPE=$BRANCH-$TYPE
 
 set -e
 
+if [ -z $USER ] || [ -z $PASS ]; then
+    echo "USER or PASS is empty!"
+    exit 1
+fi
+
 if [ $TYPE = "IT" ]; then
     FOLDER=build/reports/androidTests/connected/flavors/GPLAY
 elif [ $TYPE = "Unit" ]; then