diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2014-08-28 10:02:57 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-08-28 10:02:57 +0000 |
commit | 529cf76e1a276e6324ffa38eef71dcf7d700ad12 (patch) | |
tree | 466be2587f655aea12ae426fa2345f928e401464 /scripts/release-build | |
parent | 864cb7fe28e99f9bfec955e929e29dbd4d1045dd (diff) | |
parent | e3097bdcc35588f4a7dcc99e399b0b492d9e12f4 (diff) | |
download | definitions-529cf76e1a276e6324ffa38eef71dcf7d700ad12.tar.gz |
Merge branch 'baserock/richardmaw/mason-loop-time'
Reviewed-by: Sam Thursfield
Reviewed-by: Michael Drake
Diffstat (limited to 'scripts/release-build')
-rwxr-xr-x | scripts/release-build | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/release-build b/scripts/release-build index a3e25ebb..5525e9e9 100755 --- a/scripts/release-build +++ b/scripts/release-build @@ -53,6 +53,9 @@ class ReleaseApp(cliapp.Application): self.settings.string(['trove-host'], 'hostname of Trove instance') + self.settings.string(['artifact-cache-server'], + 'server to fetch artifacts from', default=None) + self.settings.string(['release-number'], 'Baserock version of the systems being built', default='yy.ww') @@ -157,10 +160,14 @@ class ReleaseApp(cliapp.Application): def deploy_single_image(self, cluster_path, name, location, version_label): deploy_command = [ 'morph', 'deploy', cluster_path, name, - '--trove-host=%s' % self.settings['trove-host'], + '--trove-host=%s' % self.settings['trove-host']] + artifact_server = self.settings['artifact-cache-server'] + if artifact_server is not None: + deploy_command.append('--artifact-cache-server=%s' % artifact_server) + deploy_command.extend(( '%s.location=%s' % (name, location), '%s.VERSION_LABEL=%s' % (name, version_label) - ] + )) cliapp.runcmd(deploy_command, stdout=sys.stdout) |