Bug 1247170 - Part 2: Add "android-gradle-build-dependencies" Taskcluster job. r=dustin
MozReview-Commit-ID: I6rgyqci67J
new file mode 100644
--- /dev/null
+++ b/testing/taskcluster/tasks/android-gradle-build-dependencies.yml
@@ -0,0 +1,66 @@
+# A task to fetch Android Gradle dependencies from jcentral and package them
+# for consumption by tooltool users. Normally invoked manually.
+---
+taskId: {{build_slugid}}
+
+task:
+ created: '{{now}}'
+ deadline: '{{#from_now}}24 hours{{/from_now}}'
+ metadata:
+ name: '[TC] - Android Gradle build dependencies'
+ description: 'Fetch and package Android Gradle build dependencies'
+ owner: nalexander@mozilla.com
+ source: http://todo.com/soon
+
+ tags:
+ createdForUser: {{owner}}
+
+ workerType: b2gtest
+ provisionerId: aws-provisioner-v1
+ schedulerId: task-graph-scheduler
+
+ routes:
+ - 'index.gecko.v1.{{project}}.revision.linux.{{head_rev}}.{{build_name}}.{{build_type}}'
+ - 'index.gecko.v1.{{project}}.latest.linux.{{build_name}}.{{build_type}}'
+
+ scopes:
+ - 'docker-worker:cache:level-{{level}}-{{project}}-tc-vcs'
+
+ payload:
+ image:
+ type: 'task-image'
+ path: 'public/image.tar'
+ taskId: '{{#task_id_for_image}}android-gradle-build{{/task_id_for_image}}'
+
+ command:
+ - bash
+ - /build/build.sh
+
+ maxRunTime: 1800
+
+ cache:
+ level-{{level}}-{{project}}-tc-vcs: '/home/worker/.tc-vcs'
+
+ artifacts:
+ 'public/build':
+ type: directory
+ path: '/artifacts/'
+ expires: '{{#from_now}}1 year{{/from_now}}'
+
+ extra:
+ build_product: '{{build_product}}'
+ build_name: '{{build_name}}'
+ build_type: '{{build_type}}'
+ index:
+ rank: {{pushlog_id}}
+ locations:
+ build: null
+ tests: null
+ treeherder:
+ machine:
+ platform: lint
+ groupSymbol: tc
+ symbol: AG
+ treeherderEnv:
+ - production
+ - staging
--- a/testing/taskcluster/tasks/branches/base_job_flags.yml
+++ b/testing/taskcluster/tasks/branches/base_job_flags.yml
@@ -102,16 +102,17 @@ flags:
- android-partner-sample1
- android-b2gdroid
- linux
- linux64
- linux64-st-an
- macosx64
- macosx64-st-an
- eslint-gecko
+ - android-gradle-build-dependencies
tests:
- cppunit
- crashtest
- crashtest-e10s
- crashtest-ipc
- gaia-build
- gaia-build-unit
--- a/testing/taskcluster/tasks/branches/base_jobs.yml
+++ b/testing/taskcluster/tasks/branches/base_jobs.yml
@@ -169,16 +169,22 @@ builds:
opt:
task: tasks/builds/android_api_15_b2gdroid.yml
eslint-gecko:
platforms:
- lint
types:
opt:
task: tasks/tests/eslint-gecko.yml
+ android-gradle-build-dependencies:
+ platforms:
+ - lint
+ types:
+ opt:
+ task: tasks/android-gradle-build-dependencies.yml
tests:
cppunit:
allowed_build_tasks:
tasks/builds/b2g_emulator_x86_kk_opt.yml:
task: tasks/tests/b2g_emulator_cpp_unit.yml
tasks/builds/b2g_emulator_x86_kk_debug.yml:
task: tasks/tests/b2g_emulator_cpp_unit.yml