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

Unified Diff: scripts/slave/recipes/webrtc/standalone.py

Issue 2344173002: Archiving of AppRTC APK in client.webrtc waterfall (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipes/webrtc/standalone.py
diff --git a/scripts/slave/recipes/webrtc/standalone.py b/scripts/slave/recipes/webrtc/standalone.py
index 857dd2271c18b183bb53705b32662a178a00d545..3f4e09de03e4d6e41e51eec90deb4eb5fd76235b 100644
--- a/scripts/slave/recipes/webrtc/standalone.py
+++ b/scripts/slave/recipes/webrtc/standalone.py
@@ -9,7 +9,9 @@ DEPS = [
'depot_tools/bot_update',
'chromium',
'chromium_android',
+ 'commit_position',
'depot_tools/gclient',
+ 'gsutil',
'ios',
'recipe_engine/path',
'recipe_engine/platform',
@@ -17,6 +19,7 @@ DEPS = [
'recipe_engine/step',
'depot_tools/tryserver',
'webrtc',
+ 'zip',
]
@@ -44,6 +47,23 @@ def RunSteps(api):
if webrtc.should_download_build:
webrtc.extract_build()
+ if api.properties['buildername'] in ('Android32 Builder',
kjellander_chromium 2016/09/18 17:33:23 I'd like to keep builder-details like this closer
ehmaldonado_chromium 2016/09/19 06:50:37 Done.
+ 'Android32 Builder (dbg)'
+ 'Android64 Builder',
+ 'Android64 Builder (dbg)'):
+ apk_root = api.chromium.c.build_dir.join(api.chromium.c.build_config_fs,
+ 'apks')
+ zip_path = api.path['slave_build'].join('AppRTCDemo_apk.zip')
+ pkg = api.zip.make_package(apk_root, zip_path)
+ pkg.add_file(apk_root.join('AppRTCDemo.apk'))
+ pkg.zip('AppRTCDemo zip archive')
+
+ destination = '%s/AppRTCDemo_apk_%s.zip' % (
+ api.properties['buildername'].replace(' ', '_'),
+ api.commit_position.parse_revision(webrtc.revision_cp))
kjellander_chromium 2016/09/18 17:33:24 Instead of this, you can use self.revision_cp if y
ehmaldonado_chromium 2016/09/19 06:50:37 Done.
+ api.gsutil.upload(zip_path, 'chromium-webrtc', destination,
kjellander_chromium 2016/09/18 17:33:24 Then we could re-use the existing package_build me
ehmaldonado_chromium 2016/09/19 06:50:37 Moved to the package_build method. I didn't re-us
kjellander_chromium 2016/09/19 12:14:24 I see. Looks much better now!
+ args=['-a', 'public-read'], unauthenticated_url=True)
+
if webrtc.should_test:
webrtc.runtests()

Powered by Google App Engine
This is Rietveld 408576698