Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Upload Fenix Nightly to Nimbledroid #4222
Browse files Browse the repository at this point in the history
  • Loading branch information
kglazko committed Jul 23, 2019
1 parent 28eb5c5 commit d94400f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
8 changes: 7 additions & 1 deletion automation/taskcluster/decision_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def nightly_to_production_app(is_staging, version_name):
build_tasks = {}
signing_tasks = {}
push_tasks = {}
other_tasks = {}

build_task_id = taskcluster.slugId()
build_tasks[build_task_id] = BUILDER.craft_assemble_release_task(architectures, build_type, is_staging, version_name)
Expand All @@ -172,7 +173,12 @@ def nightly_to_production_app(is_staging, version_name):
is_staging=is_staging,
)

return (build_tasks, signing_tasks, push_tasks)
nimbledroid_task_id = taskcluster.slugId()
other_tasks[nimbledroid_task_id] = BUILDER.craft_upload_apk_nimbledroid_task(
build_task_id
)

return (build_tasks, signing_tasks, push_tasks, other_tasks)


if __name__ == "__main__":
Expand Down
22 changes: 22 additions & 0 deletions automation/taskcluster/lib/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,28 @@ def craft_test_task(self, variant):
},
)


def craft_upload_apk_nimbledroid_task(self, assemble_task_id):
# For GeckoView, upload nightly (it has release config) by default, all Release builds have WV
return self._craft_build_ish_task(
name="Upload Release APK to Nimbledroid",
description='Upload APKs to Nimbledroid for performance measurement and tracking.',
command=' && '.join([
'curl --location "{}/{}/artifacts/public/target.apk" > target.apk'.format(_DEFAULT_TASK_URL, assemble_task_id),
'python automation/taskcluster/upload_apk_nimbledroid.py',
]),
treeherder={
'jobKind': 'test',
'machine': {
'platform': 'android-all',
},
'symbol': 'compare-locale',
'tier': 2,
},
scopes=["secrets:get:project/mobile/fenix/nimbledroid"],
dependencies=[assemble_task_id],
)

def craft_detekt_task(self):
return self._craft_clean_gradle_task(
name='detekt',
Expand Down

0 comments on commit d94400f

Please sign in to comment.