mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 09:16:58 -10:00
CentOS 6 is pinned to glibc 2.12, but newer Android build-tools (like aapt) require glibc 2.14. It's not possible to safely upgrade CentOS 6 distributions to glibc 2.14. CentOS 7 is pinned to glibc 2.17, which is new enough for newer Android build-tools. However, I had great difficulty bringing forward our existing centos:6 Docker image to centos:7. In particular, installing recent enough Mercurial, git, Python, and pip versions was difficult enough that I elected to not pursue this approach. Instead, I've elected to follow glandium's suggestion from https://bugzilla.mozilla.org/show_bug.cgi?id=1370119#c5: base on Debian with snapshots.debian.org for reproducibility. The most significant changes here: - using Debian's snapshots repository - using Python and related tools provided by Debian and baked into the build image - using the JDK and JRE provided by Debian and baked into the build image, rather than versions from tooltool (or eventually a toolchain build) Moving the builds over to use this image will follow in the patches ahead.
43 lines
1.3 KiB
Bash
Executable File
43 lines
1.3 KiB
Bash
Executable File
#!/bin/bash -vex
|
|
|
|
set -x -e
|
|
|
|
echo "running as" $(id)
|
|
|
|
: WORKSPACE ${WORKSPACE:=/builds/worker/workspace}
|
|
: GRADLE_VERSION ${GRADLE_VERSION:=2.14.1}
|
|
|
|
set -v
|
|
|
|
# Package everything up.
|
|
pushd $WORKSPACE
|
|
|
|
cp -R /builds/worker/.mozbuild/android-sdk-linux android-sdk-linux
|
|
tar cJf android-sdk-linux.tar.xz android-sdk-linux
|
|
|
|
# We can't redistribute the Android SDK publicly.
|
|
mkdir -p /builds/worker/private/android-sdk
|
|
mv android-sdk-linux.tar.xz /builds/worker/private/android-sdk
|
|
|
|
cp -R ${NEXUS_WORK}/storage/jcenter jcenter
|
|
tar cJf jcenter.tar.xz jcenter
|
|
|
|
cp -R ${NEXUS_WORK}/storage/google google
|
|
tar cJf google.tar.xz google
|
|
|
|
# The Gradle wrapper will have downloaded and verified the hash of exactly one
|
|
# Gradle distribution. It will be located in $GRADLE_USER_HOME, like
|
|
# ~/.gradle/wrapper/dists/gradle-2.7-all/$PROJECT_HASH/gradle-2.7-all.zip. We
|
|
# want to remove the version from the internal directory for use via tooltool in
|
|
# a mozconfig.
|
|
cp $GRADLE_USER_HOME/wrapper/dists/gradle-${GRADLE_VERSION}-all/*/gradle-${GRADLE_VERSION}-all.zip gradle-${GRADLE_VERSION}-all.zip
|
|
unzip -q gradle-${GRADLE_VERSION}-all.zip
|
|
mv gradle-${GRADLE_VERSION} gradle-dist
|
|
tar cJf gradle-dist.tar.xz gradle-dist
|
|
|
|
mkdir -p /builds/worker/artifacts
|
|
mv jcenter.tar.xz /builds/worker/artifacts
|
|
mv google.tar.xz /builds/worker/artifacts
|
|
mv gradle-dist.tar.xz /builds/worker/artifacts
|
|
popd
|