Skip artifact upload if nothing new is built
[releng.git] / jjb / fuel / fuel-upload-artifact.sh
index 5d3fed6..fc35023 100755 (executable)
@@ -3,6 +3,13 @@ set -o errexit
 set -o nounset
 set -o pipefail
 
+# check if we built something
+if [ -f $WORKSPSACE/.noupload ]; then
+    echo "Nothing new to upload. Exiting."
+    /bin/rm -f $WORKSPSACE/.noupload
+    exit 0
+fi
+
 # log info to console
 echo "Uploading the $INSTALLER_TYPE artifact. This could take some time..."
 echo "--------------------------------------------------------"