The only tricky piece here is that the resulting toolchain archive is private, and uses a newly allocated Task Cluster scope (queue:get-artifact:project/gecko/android-sdk/*) to restrict access to the archive. All SCM levels (1, 2, 3) have been given the new scope: see https://tools.taskcluster.net/auth/roles/moz-tree:level:1 and friends. MozReview-Commit-ID: CcDqDOHODpe
19 lines
552 B
Bash
Executable File
19 lines
552 B
Bash
Executable File
#!/bin/bash
|
|
set -x -e -v
|
|
|
|
# This script is for fetching and repacking the Android SDK (for
|
|
# Linux), the tools required to produce Android packages.
|
|
|
|
WORKSPACE=$HOME/workspace
|
|
UPLOAD_DIR=$HOME/project/gecko/android-sdk
|
|
|
|
mkdir -p $HOME/artifacts $UPLOAD_DIR
|
|
|
|
# Populate /builds/worker/.mozbuild/android-sdk-linux.
|
|
cd /builds/worker/workspace/build/src
|
|
./mach python python/mozboot/mozboot/android.py --artifact-mode --no-interactive
|
|
|
|
tar cf - -C /builds/worker/.mozbuild android-sdk-linux | xz > $UPLOAD_DIR/android-sdk-linux.tar.xz
|
|
|
|
ls -al $UPLOAD_DIR
|