mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
MozReview-Commit-ID: 6OOD4mhICG1 --HG-- rename : taskcluster/scripts/builder/build-android-dependencies.sh => taskcluster/scripts/misc/android-gradle-dependencies.sh rename : taskcluster/scripts/builder/build-android-dependencies/after.sh => taskcluster/scripts/misc/android-gradle-dependencies/after.sh rename : taskcluster/scripts/builder/build-android-dependencies/before.sh => taskcluster/scripts/misc/android-gradle-dependencies/before.sh rename : taskcluster/scripts/builder/build-android-dependencies/nexus.xml => taskcluster/scripts/misc/android-gradle-dependencies/nexus.xml extra : rebase_source : 8c476377ded6b7177b3ba45f648431a08468948d
28 lines
967 B
Bash
Executable file
28 lines
967 B
Bash
Executable file
#!/bin/bash -vex
|
|
|
|
set -x -e
|
|
|
|
echo "running as" $(id)
|
|
|
|
: WORKSPACE ${WORKSPACE:=/builds/worker/workspace}
|
|
|
|
set -v
|
|
|
|
mkdir -p ${NEXUS_WORK}/conf
|
|
cp /builds/worker/workspace/build/src/taskcluster/scripts/misc/android-gradle-dependencies/nexus.xml ${NEXUS_WORK}/conf/nexus.xml
|
|
|
|
RUN_AS_USER=worker /opt/sonatype/nexus/bin/nexus restart
|
|
|
|
# Wait "a while" for Nexus to actually start. Don't fail if this fails.
|
|
wget --quiet --retry-connrefused --waitretry=2 --tries=100 \
|
|
http://localhost:8081/nexus/service/local/status || true
|
|
rm -rf status
|
|
|
|
# It's helpful when debugging to see the "latest state".
|
|
curl http://localhost:8081/nexus/service/local/status || true
|
|
|
|
# Verify Nexus has actually started. Fail if this fails.
|
|
curl --fail --silent --location http://localhost:8081/nexus/service/local/status | grep '<state>STARTED</state>'
|
|
|
|
# It's helpful when debugging to see the repository configurations.
|
|
curl http://localhost:8081/nexus/service/local/repositories || true
|