4
from os.path import join
7
from tempfile import NamedTemporaryFile
11
revision_build = os.environ['revision_build']
12
job_name = os.environ['JOB_NAME']
13
build_number = os.environ['BUILD_NUMBER']
14
prefix = 'juju-ci/products/version-{}/{}/build-{}'.format(
15
revision_build, job_name, build_number)
16
s3_config = join(os.environ['HOME'], 'cloud-city/juju-qa.s3cfg')
18
'$HOME/juju-ci-tools/run-deploy-job-remote.bash',
22
command.extend(sys.argv[2:])
23
with NamedTemporaryFile() as config_file:
25
'command': command, 'install': {},
26
'artifacts': {'artifacts': [
27
'artifacts/machine*/*log*',
29
'artifacts/cache.yaml',
32
'bucket': 'juju-qa-data',
35
subprocess.check_call([
36
'workspace-run', config_file.name, sys.argv[1], prefix,
37
'--s3-config', s3_config, '-v',
40
if __name__ == '__main__':