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
--- 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