author Carsten "Tomcat" Book <cbook@mozilla.com>
Fri, 30 Jun 2017 09:41:23 +0200
changeset 405983 c7c5ffd2eb39f102d001e27606b4660e8e40ffa5
parent 405980 feedcde68c2a54da210f03eb287ab5c862fc982b
child 406014 f8a62747c51c862b6e2f5c0af543ef21d34abf3b
permissions -rw-r--r--
Backed out changeset feedcde68c2a (bug 1338651) for bustage

#!/bin/bash -vex

set -x -e

: WORKSPACE ${WORKSPACE:=/workspace}

set -v

# Package everything up.
pushd ${WORKSPACE}
# Not yet.  See notes on tooltool below.
# cp -R /root/.android-sdk android-sdk-linux
# tar cJf android-sdk-linux.tar.xz android-sdk-linux

cp -R /workspace/nexus/storage/central jcentral
tar cJf jcentral.tar.xz jcentral

# 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 /home/worker/artifacts
# We can't redistribute the Android SDK publicly just yet.  We'll
# upload to (internal) tooltool eventually.  mv
# android-sdk-linux.tar.xz /home/worker/artifacts
mv jcentral.tar.xz /home/worker/artifacts
mv gradle-dist.tar.xz /home/worker/artifacts

# Bug 1245170: at some point in the future, we'll be able to upload
# things directly to tooltool.
# pushd /home/worker/artifacts
# /build/tooltool.py add --visibility=public jcentral.tar.xz
# /build/tooltool.py add --visibility=public gradle-dist.tar.xz
# /build/tooltool.py add --visibility=internal android-sdk-linux.tar.xz
# /build/tooltool.py upload -v --url=http://relengapi/tooltool/ \
#   --message="No message - Gradle and jcentral archives uploaded from taskcluster."
# popd