summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-07-30 17:17:53 (GMT)
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-07-30 17:20:18 (GMT)
commitd239aeed53a52e5dbc10aad6131334e51776ef95 (patch)
treeb3628b8f1660d7ef7f514a21f24e487107a4b7d1 /scripts
parentf31353b4eb6fcb191a402b645bc3233d26e6527f (diff)
downloaddefinitions-d239aeed53a52e5dbc10aad6131334e51776ef95.tar.gz
Add --upload-build-artifacts setting
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release-upload14
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/release-upload b/scripts/release-upload
index 6711e72..0ab6b95 100755
--- a/scripts/release-upload
+++ b/scripts/release-upload
@@ -143,6 +143,11 @@ class ReleaseUploader(cliapp.Application):
group=group)
self.settings.boolean(
+ ['upload-build-artifacts'],
+ 'upload build artifacts?',
+ default=True)
+
+ self.settings.boolean(
['upload-release-artifacts'],
'upload release artifacts (disk images etc)?',
default=True)
@@ -153,7 +158,14 @@ class ReleaseUploader(cliapp.Application):
def process_args(self, args):
self.status(msg='Uploading and publishing Baserock release')
- self.publish_build_artifacts()
+
+ if self.settings['upload-build-artifacts']:
+ self.publish_build_artifacts()
+ else:
+ self.status(
+ msg='Not uploading build artifacts '
+ '(upload-build-artifacts set to false')
+
if self.settings['upload-release-artifacts']:
self.publish_release_artifacts()
else: