summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Monteith <stuart.monteith@linaro.org>2016-10-05 06:47:24 -0700
committerStuart Monteith <stuart.monteith@linaro.org>2016-10-05 06:47:24 -0700
commit8f68db069dda9c2528fb1041740e296e1c272785 (patch)
tree5de1db603ce34162e5369a1c68e8b7a77df7079f
parent0b1763c2d18114b0fb37d1d4de474878ff742110 (diff)
Use envvar for publish host
We aren't able to configure ssh config, make publish-host an envvar that can be configured in jenkins.
-rw-r--r--common.sh3
-rwxr-xr-xspecjbb-publish6
2 files changed, 5 insertions, 4 deletions
diff --git a/common.sh b/common.sh
index 59fe912..b56d19a 100644
--- a/common.sh
+++ b/common.sh
@@ -1,4 +1,4 @@
-# Copyright (C) 2014, Linaro Limited.
+# Copyright (C) 2015, Linaro Limited.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -29,5 +29,6 @@ set -a
: ${RESULTS_DB:=$SPECJBB_RESULTS_DIR/results.db}
: ${SERVER_MAX_JOPS_BASELINE:=1}
: ${SERVER_CRITICAL_JOPS_BASELINE:=1}
+: ${PUBLISH_HOST:=stuart.monteith@people.linaro.org}
set +a
diff --git a/specjbb-publish b/specjbb-publish
index 3a17dca..d1ffc71 100755
--- a/specjbb-publish
+++ b/specjbb-publish
@@ -30,10 +30,10 @@ if [ $# -lt 1 ]; then
fi
d=$1/$(basename $(dirname $RESULTS_CSV))
-ssh publish-host mkdir -p $d
+ssh ${PUBLISH_HOST} mkdir -p $d
results_file=$(mktemp /tmp/${progname}-XXXXXX.$$.html)
trap "rm -f $results_file" EXIT
print-historic-results > $results_file
chmod 644 $results_file
-scp $results_file publish-host:$d/index.html
-scp $THISDIR/*.css publish-host:$d
+scp $results_file ${PUBLISH_HOST}:$d/index.html
+scp $THISDIR/*.css ${PUBLISH_HOST}:$d