Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: tools/dartium/upload_steps.py

Issue 1353373002: Fix obsolete gsutil command in scripts. Delete editor signing script. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comment. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/bots/cross-vm.py ('k') | tools/signing_script.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2014 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Steps to archive dartium, content_shell, and chromedriver from buildbots. 7 """Steps to archive dartium, content_shell, and chromedriver from buildbots.
8 8
9 Imported by buildbot_annotated_steps.py and multivm_archive.py 9 Imported by buildbot_annotated_steps.py and multivm_archive.py
10 """ 10 """
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 # Upload file. 186 # Upload file.
187 cmd = [GSUTIL, 'cp', source, target] 187 cmd = [GSUTIL, 'cp', source, target]
188 (status, output) = ExecuteCommand(cmd) 188 (status, output) = ExecuteCommand(cmd)
189 if status != 0: 189 if status != 0:
190 return status 190 return status
191 print 'Uploaded: ' + output 191 print 'Uploaded: ' + output
192 192
193 # Set ACL. 193 # Set ACL.
194 if ACL is not None: 194 if ACL is not None:
195 cmd = [GSUTIL, 'setacl', ACL, target] 195 cmd = [GSUTIL, 'acl', 'set', ACL, target]
196 (status, output) = ExecuteCommand(cmd) 196 (status, output) = ExecuteCommand(cmd)
197 return status 197 return status
198 198
199 199
200 def UploadFile(local_path, remote_path, checksum_files=False): 200 def UploadFile(local_path, remote_path, checksum_files=False):
201 # Copy it to the new unified gs://dart-archive bucket 201 # Copy it to the new unified gs://dart-archive bucket
202 gsutil = bot_utils.GSUtil() 202 gsutil = bot_utils.GSUtil()
203 gsutil.upload(local_path, remote_path, public=True) 203 gsutil.upload(local_path, remote_path, public=True)
204 if checksum_files: 204 if checksum_files:
205 # 'local_path' may have a different filename than 'remote_path'. So we need 205 # 'local_path' may have a different filename than 'remote_path'. So we need
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 def RemoveArchives(archives): 267 def RemoveArchives(archives):
268 """Remove the list of archives in Google storage. 268 """Remove the list of archives in Google storage.
269 """ 269 """
270 for archive in archives: 270 for archive in archives:
271 if archive.find(GS_SITE) == 0: 271 if archive.find(GS_SITE) == 0:
272 cmd = [GSUTIL, 'rm', archive.rstrip()] 272 cmd = [GSUTIL, 'rm', archive.rstrip()]
273 (status, _) = ExecuteCommand(cmd) 273 (status, _) = ExecuteCommand(cmd)
274 if status != 0: 274 if status != 0:
275 return status 275 return status
276 return 0 276 return 0
OLDNEW
« no previous file with comments | « tools/bots/cross-vm.py ('k') | tools/signing_script.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698