X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Ffuel%2Ffuel-upload-artifact.sh;h=fc350235e5eacfb47b54adce5a193e07c8ead365;hb=106ffc63482d1c739435e79cbaf352d9cd6e16c3;hp=5d3fed60b948d8182120808e04dbe7ce521eee8f;hpb=f5366718fd0847cbaa6bcd1bede2886d9fdb3468;p=releng.git 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 "--------------------------------------------------------"