OLD | NEW |
1 #!/usr/bin/env python | |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
5 | 4 |
6 """Common utilities for all buildbot scripts that specifically don't rely | 5 """Common utilities for all buildbot scripts that specifically don't rely |
7 on having a full chromium checkout. | 6 on having a full chromium checkout. |
8 """ | 7 """ |
9 | 8 |
10 import os | 9 import os |
11 import subprocess | 10 import subprocess |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 full_dst = 'gs://%s/%s' % (bucket_path, filename) | 101 full_dst = 'gs://%s/%s' % (bucket_path, filename) |
103 | 102 |
104 subprocess.check_call( | 103 subprocess.check_call( |
105 '%s cp -a public-read %s %s' % (GetGsutil(), filename, full_dst), | 104 '%s cp -a public-read %s %s' % (GetGsutil(), filename, full_dst), |
106 shell=True, | 105 shell=True, |
107 cwd=cwd) | 106 cwd=cwd) |
108 url = 'https://commondatastorage.googleapis.com/'\ | 107 url = 'https://commondatastorage.googleapis.com/'\ |
109 '%s/%s' % (bucket_path, filename) | 108 '%s/%s' % (bucket_path, filename) |
110 print '@@@STEP_LINK@download@%s@@@' % url | 109 print '@@@STEP_LINK@download@%s@@@' % url |
111 sys.stdout.flush() | 110 sys.stdout.flush() |
OLD | NEW |