diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-12-22 01:43:40 +0100 |
---|---|---|
committer | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-12-22 01:43:40 +0100 |
commit | 106ffc63482d1c739435e79cbaf352d9cd6e16c3 (patch) | |
tree | db8fed1392dd57564fbf77582c612f222f92f107 /jjb/fuel/fuel-upload-artifact.sh | |
parent | f5366718fd0847cbaa6bcd1bede2886d9fdb3468 (diff) |
Skip artifact upload if nothing new is built
Change-Id: I966229199d07c44073247ae25e9423fda516f73d
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb/fuel/fuel-upload-artifact.sh')
-rwxr-xr-x | jjb/fuel/fuel-upload-artifact.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 "--------------------------------------------------------" |