| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 """Set of utilities to add commands to a buildbot factory. | 5 """Set of utilities to add commands to a buildbot factory. |
| 6 | 6 |
| 7 This is based on commands.py and adds Syzygy-specific commands.""" | 7 This is based on commands.py and adds Syzygy-specific commands.""" |
| 8 | 8 |
| 9 from buildbot.process.properties import WithProperties | 9 from buildbot.process.properties import WithProperties |
| 10 from buildbot.steps import shell | 10 from buildbot.steps import shell |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 command=command, | 94 command=command, |
| 95 extra_text=('Coverage Report', url), | 95 extra_text=('Coverage Report', url), |
| 96 name='archive', | 96 name='archive', |
| 97 description='Archive Coverage Report') | 97 description='Archive Coverage Report') |
| 98 | 98 |
| 99 def AddArchival(self): | 99 def AddArchival(self): |
| 100 '''Adds steps to archive the build output for official builds.''' | 100 '''Adds steps to archive the build output for official builds.''' |
| 101 # Store the coverage results by the checkout revision. | 101 # Store the coverage results by the checkout revision. |
| 102 src_archive = self.PathJoin(self._build_dir, self._target, 'benchmark.zip') | 102 src_archive = self.PathJoin(self._build_dir, self._target, 'benchmark.zip') |
| 103 dst_gs_url = WithProperties( | 103 dst_gs_url = WithProperties( |
| 104 'gs://syzygy-archive/builds/official/%(got_revision)s') | 104 'gs://syzygy-archive/builds/official/%(got_revision)s/benchmark.zip') |
| 105 url = WithProperties( | 105 url = WithProperties( |
| 106 'http://syzygy-archive.commondatastorage.googleapis.com/builds/' | 106 'http://syzygy-archive.commondatastorage.googleapis.com/builds/' |
| 107 'official/%(got_revision)s/benchmark.zip') | 107 'official/%(got_revision)s/benchmark.zip') |
| 108 | 108 |
| 109 command = [self._python, | 109 command = [self._python, |
| 110 self.PathJoin(self._script_dir, 'syzygy/gsutil_cp_dir.py'), | 110 self.PathJoin(self._script_dir, 'syzygy/gsutil_cp_dir.py'), |
| 111 src_archive, | 111 src_archive, |
| 112 dst_gs_url,] | 112 dst_gs_url,] |
| 113 | 113 |
| 114 self._factory.addStep(_UrlStatusCommand, | 114 self._factory.addStep(_UrlStatusCommand, |
| 115 command=command, | 115 command=command, |
| 116 extra_text=('Build archive', url), | 116 extra_text=('Build archive', url), |
| 117 name='archive', | 117 name='archive', |
| 118 description='Build archive') | 118 description='Build archive') |
| 119 | 119 |
| 120 | 120 |
| OLD | NEW |