summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xjjb/fuel/fuel-build.sh1
-rwxr-xr-xjjb/fuel/fuel-upload-artifact.sh7
2 files changed, 8 insertions, 0 deletions
diff --git a/jjb/fuel/fuel-build.sh b/jjb/fuel/fuel-build.sh
index be188b87a..6ccfb6f0e 100755
--- a/jjb/fuel/fuel-build.sh
+++ b/jjb/fuel/fuel-build.sh
@@ -23,6 +23,7 @@ if [[ "$CURRENT_SHA1" == "$LATEST_ISO_SHA1" ]]; then
echo "An ISO has already been built for this commit"
echo " $LATEST_ISO_URL"
echo "Nothing new to build. Exiting."
+ touch $WORKSPACE/.noupload
exit 0
else
echo "This commit has not been built yet. Proceeding with the build."
diff --git a/jjb/fuel/fuel-upload-artifact.sh b/jjb/fuel/fuel-upload-artifact.sh
index 5d3fed60b..fc350235e 100755
--- a/jjb/fuel/fuel-upload-artifact.sh
+++ b/jjb/fuel/fuel-upload-artifact.sh
@@ -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 "--------------------------------------------------------"