fuel: Enable test jobs for fuel virtual deploys
[releng.git] / jjb / fuel / fuel-upload-artifact.sh
index d72cefb..fa695e6 100755 (executable)
@@ -3,6 +3,13 @@ set -o errexit
 set -o nounset
 set -o pipefail
 
+# check if we built something
+if [ -f $WORKSPACE/.noupload ]; then
+    echo "Nothing new to upload. Exiting."
+    /bin/rm -f $WORKSPACE/.noupload
+    exit 0
+fi
+
 # log info to console
 echo "Uploading the $INSTALLER_TYPE artifact. This could take some time..."
 echo "--------------------------------------------------------"
@@ -26,11 +33,11 @@ fi
 gsutil -m setmeta \
     -h "Content-Type:text/html" \
     -h "Cache-Control:private, max-age=0, no-transform" \
-    gs://$GS_URL/*.properties
+    gs://$GS_URL/*.properties > /dev/null 2>&1
 
 gsutil -m setmeta \
     -h "Cache-Control:private, max-age=0, no-transform" \
-    gs://$GS_URL/*.iso
+    gs://$GS_URL/*.iso > /dev/null 2>&1
 
 echo
 echo "--------------------------------------------------------"