summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValerie R Young <spectranaut@riseup.net>2016-06-06 13:28:49 -0400
committerHolger Levsen <holger@layer-acht.org>2016-06-07 12:34:34 +0200
commit35df7893c19e451de920ac3274aad812b00064ff (patch)
tree5aaafd2f57fa0e736d9e874c2ec3d23dd708b49b
parent8bcbe2dbe30be64b995d920144dd28493fb1a163 (diff)
downloadjenkins.debian.net-35df7893c19e451de920ac3274aad812b00064ff.tar.xz
reproducible debian: ignore hostname spectrum for test setup
-rwxr-xr-xbin/common-functions.sh23
1 files changed, 17 insertions, 6 deletions
diff --git a/bin/common-functions.sh b/bin/common-functions.sh
index ad4a613e..4bc4f477 100755
--- a/bin/common-functions.sh
+++ b/bin/common-functions.sh
@@ -53,18 +53,29 @@ else
if [ -z "$LC_ALL" ]; then
export LC_ALL=C.UTF-8
fi
+
if [ -z "$MIRROR" ]; then
case $HOSTNAME in
- jenkins|jenkins-test-vm|profitbricks-build*) export MIRROR=http://ftp.de.debian.org/debian ;;
- bbx15|bpi0|cb3*|cbxi4*|hb0|wbq0|odxu4*|odu3*|wbd0|rpi2*|ff2*|ff4*|opi2*) export MIRROR=http://ftp.us.debian.org/debian ;;
- *) echo "unsupported host, exiting." ; exit 1 ;;
+ jenkins|jenkins-test-vm|profitbricks-build*)
+ export MIRROR=http://ftp.de.debian.org/debian ;;
+ bbx15|bpi0|cb3*|cbxi4*|hb0|wbq0|odxu4*|odu3*|wbd0|rpi2*|ff2*|ff4*|opi2*)
+ export MIRROR=http://ftp.us.debian.org/debian ;;
+ spectrum)
+ export MIRROR=none ;;
+ *)
+ echo "unsupported host, exiting." ; exit 1 ;;
esac
fi
if [ -z "$http_proxy" ]; then
case $HOSTNAME in
- jenkins|jenkins-test-vm|profitbricks-build*) export http_proxy="http://localhost:3128" ;;
- bbx15|bpi0|cb3*|cbxi4*|hb0|wbq0|odxu4*|odu3*|wbd0|rpi2*|ff2*|ff4*|opi2*) export http_proxy="http://10.0.0.15:8000/" ;;
- *) echo "unsupported host, exiting." ; exit 1 ;;
+ jenkins|jenkins-test-vm|profitbricks-build*)
+ export http_proxy="http://localhost:3128" ;;
+ bbx15|bpi0|cb3*|cbxi4*|hb0|wbq0|odxu4*|odu3*|wbd0|rpi2*|ff2*|ff4*|opi2*)
+ export http_proxy="http://10.0.0.15:8000/" ;;
+ spectrum)
+ export MIRROR=none ;;
+ *)
+ echo "unsupported host, exiting." ; exit 1 ;;
esac
fi
if [ -z "$CHROOT_BASE" ]; then