Change-Id: I966229199d07c44073247ae25e9423fda516f73d
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
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."
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 "--------------------------------------------------------"