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

Unified Diff: tools/bots/bot_utils.py

Issue 185583003: Archive dartium on android builds (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/bots/dartium_android.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/bot_utils.py
===================================================================
--- tools/bots/bot_utils.py (revision 33364)
+++ tools/bots/bot_utils.py (working copy)
@@ -82,13 +82,16 @@
/{index.html,features/,plugins/,artifacts.jar,content.jar}
"""
def __init__(self, channel=Channel.BLEEDING_EDGE,
- release_type=ReleaseType.RAW):
+ release_type=ReleaseType.RAW, internal=False):
assert channel in Channel.ALL_CHANNELS
assert release_type in ReleaseType.ALL_TYPES
self.channel = channel
self.release_type = release_type
- self.bucket = 'gs://dart-archive'
+ if internal:
+ self.bucket = 'gs://dart-archive-internal'
+ else:
+ self.bucket = 'gs://dart-archive'
# Functions for quering complete gs:// filepaths
@@ -116,11 +119,18 @@
return '/'.join([self.apidocs_directory(revision),
self.apidocs_zipfilename()])
+ def dartium_android_apk_filepath(self, revision, name, arch, mode):
+ return '/'.join([self.dartium_android_directory(revision),
+ self.dartium_android_apk_filename(name, arch, mode)])
+
# Functions for querying gs:// directories
def dartium_directory(self, revision):
return self._variant_directory('dartium', revision)
+ def dartium_android_directory(self, revision):
+ return self._variant_directory('dartium_android', revision)
+
def sdk_directory(self, revision):
return self._variant_directory('sdk', revision)
@@ -142,6 +152,9 @@
# Functions for quering filenames
+ def dartium_android_apk_filename(self, name, arch, mode):
+ return '%s-%s-%s.apk' % (name, arch, mode)
+
def apidocs_zipfilename(self):
return 'dart-api-docs.zip'
@@ -249,6 +262,14 @@
args += [local_path, remote_path]
self.execute(args)
+ def setGroupReadACL(self, remote_path, group):
+ args = ['acl', 'ch', '-g', '%s:R' % group, remote_path]
+ self.execute(args)
+
+ def setContentType(self, remote_path, content_type):
+ args = ['setmeta', '-h', 'Content-Type:%s' % content_type, remote_path]
+ self.execute(args)
+
def remove(self, remote_path, recursive=False):
assert remote_path.startswith('gs://')
« no previous file with comments | « no previous file | tools/bots/dartium_android.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698