Bug 1247170 - Part 2: Add "android-gradle-build-dependencies" Taskcluster job. r=dustin draft
authorNick Alexander <nalexander@mozilla.com>
Tue, 09 Feb 2016 22:04:32 -0800
changeset 330450 af2fba643a41fcd9f4241fe83537bf06c95a803c
parent 330449 57ac23ec9e33d60b02639822f6d08254da5a4a98
child 330451 1603ba6231cab0b90bdabe3df693b1a0c60015c2
push id10756
push usernalexander@mozilla.com
push dateThu, 11 Feb 2016 19:04:56 +0000
reviewersdustin
bugs1247170
milestone47.0a1
Bug 1247170 - Part 2: Add "android-gradle-build-dependencies" Taskcluster job. r=dustin MozReview-Commit-ID: I6rgyqci67J
testing/taskcluster/tasks/android-gradle-build-dependencies.yml
testing/taskcluster/tasks/branches/base_job_flags.yml
testing/taskcluster/tasks/branches/base_jobs.yml
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