OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # 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 |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 DEPS = [ | 5 DEPS = [ |
6 'bot_update', | 6 'bot_update', |
7 'chromium', | 7 'chromium', |
| 8 'file', |
8 'gclient', | 9 'gclient', |
9 'gsutil', | 10 'gsutil', |
10 'path', | 11 'path', |
11 'properties', | 12 'properties', |
12 'step', | 13 'step', |
13 ] | 14 ] |
14 | 15 |
15 | 16 |
16 def GenSteps(api): | 17 def GenSteps(api): |
17 kwargs = {} | 18 kwargs = {} |
(...skipping 15 matching lines...) Expand all Loading... |
33 harness_path.join(harness_file), | 34 harness_path.join(harness_file), |
34 ] | 35 ] |
35 ) | 36 ) |
36 | 37 |
37 bucket = 'chromium-telemetry' | 38 bucket = 'chromium-telemetry' |
38 cloud_file = 'snapshots/%s' % harness_file | 39 cloud_file = 'snapshots/%s' % harness_file |
39 api.gsutil.upload(harness_path.join(harness_file), bucket, cloud_file, | 40 api.gsutil.upload(harness_path.join(harness_file), bucket, cloud_file, |
40 link_name='Telemetry r%s' % got_revision) | 41 link_name='Telemetry r%s' % got_revision) |
41 api.gsutil.copy(bucket, cloud_file, bucket, 'snapshots/telemetry.zip', | 42 api.gsutil.copy(bucket, cloud_file, bucket, 'snapshots/telemetry.zip', |
42 link_name='Telemetry latest') | 43 link_name='Telemetry latest') |
43 api.path.rmtree('remove harness temp directory', harness_path) | 44 api.file.rmtree('remove harness temp directory', harness_path) |
44 | 45 |
45 | 46 |
46 def GenTests(api): | 47 def GenTests(api): |
47 yield ( | 48 yield ( |
48 api.test('basic') + | 49 api.test('basic') + |
49 api.properties.generic( | 50 api.properties.generic( |
50 mastername='chromium.lkgr', | 51 mastername='chromium.lkgr', |
51 buildername='Telemetry Harness Upload') | 52 buildername='Telemetry Harness Upload') |
52 ) | 53 ) |
OLD | NEW |