Bug 1249166 - Part 2: Copy Gradle artifacts. r?dustin draft
authorNick Alexander <nalexander@mozilla.com>
Tue, 23 Feb 2016 23:53:15 -0800
changeset 334031 6087386a01ee3eb8a7a0644c5e7f86be14cfd264
parent 334030 1c5629be18b888d0b565578cb4fde70354be15e1
child 514805 2fc5862d9775c08a31e4f90416c8a391e529dd4f
push id11431
push usernalexander@mozilla.com
push dateWed, 24 Feb 2016 07:57:54 +0000
reviewersdustin
bugs1249166
milestone47.0a1
Bug 1249166 - Part 2: Copy Gradle artifacts. r?dustin I originally implemented this as a fairly generic extension to mozharness that allowed to copy additional files from the object directory. There are two problems with this approach. First, my tasks disable uploading files (since we're not really packaging -- this is only *like* a build), so we can't use the buildbot-compatible TaskCluster upload routines anyway. Second, in this case, one might just copy the files into the artifacts directory -- but buildbot really shouldn't know the path to TaskCluster directly. So here we are, an expedient way to bridge buildbot and TaskCluster. MozReview-Commit-ID: LxIsWGGSdOj
testing/taskcluster/tasks/builds/android_api_15_frontend.yml
--- a/testing/taskcluster/tasks/builds/android_api_15_frontend.yml
+++ b/testing/taskcluster/tasks/builds/android_api_15_frontend.yml
@@ -38,17 +38,25 @@ task:
           platform_supports_post_upload_to_latest.py
       MH_CUSTOM_BUILD_VARIANT_CFG: api-15-frontend
       MH_BRANCH: {{project}}
       MH_BUILD_POOL: taskcluster
       GRADLE_USER_HOME: '/home/worker/workspace/build/src/dotgradle'
 
     maxRunTime: 36000
 
-    command: ["/bin/bash", "bin/build.sh"]
+    command: 
+      - /bin/bash
+      - -c
+      - >
+        bin/build.sh &&
+        mkdir -p /home/worker/artifacts/gradle_lint &&
+        cp -R /home/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/app/outputs/lint* /home/worker/artifacts/gradle_lint &&
+        cp -R /home/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/app/reports/tests /home/worker/artifacts/gradle_tests &&
+        true
 
   extra:
     treeherderEnv:
       - production
       - staging
     treeherder:
       machine:
         # see https://github.com/mozilla/treeherder/blob/master/ui/js/values.js