summaryrefslogtreecommitdiff
path: root/triggers/deploy_trigger.sh
diff options
context:
space:
mode:
authorWill Holland <william.holland@codethink.co.uk>2015-09-16 11:32:38 +0100
committerWill Holland <william.holland@codethink.co.uk>2015-09-16 12:07:56 +0100
commit2ac17e982075bba16a14cd5cdb154650a5ba9a58 (patch)
treefd81ffbbf68e2af41598e92549d79ea60a2cf0b5 /triggers/deploy_trigger.sh
parent6aa25893eef26ed3dc4101374f5d8112ab406eb9 (diff)
downloadbuildslave-scripts-2ac17e982075bba16a14cd5cdb154650a5ba9a58.tar.gz
Pass SHAs of state when build starts forwards
The SHAs of definitions, buildslave-scripts and ciat-testing are passed along the pipeline for consistency
Diffstat (limited to 'triggers/deploy_trigger.sh')
-rw-r--r--triggers/deploy_trigger.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/triggers/deploy_trigger.sh b/triggers/deploy_trigger.sh
index b4d5ebd..20c72e8 100644
--- a/triggers/deploy_trigger.sh
+++ b/triggers/deploy_trigger.sh
@@ -1,7 +1,14 @@
set -ex
SYSTEM=$1
BUILDNUMBER=$2
+BUILDSLAVE_SCRIPTS_SHA=$3
+DEFINITIONS_SHA=$4
+TESTING_SHA=$5
ARTEFACT="tlsa-ciat-test-x86_64_$BUILDNUMBER"
echo "[$(date "+%F %R")] Deploy triggered with system $SYSTEM." >> ../../../../trigger_log
sed "s/ARTEFACT/$ARTEFACT/" tlsa.morph > definitions/clusters/tlsa.morph
-python deploy_logic.py $SYSTEM $ARTEFACT
+git checkout $BUILDSLAVE_SCRIPTS_SHA
+cd definitions
+git checkout $DEFINITIONS_SHA
+cd ..
+python deploy_logic.py $SYSTEM $ARTEFACT $TESING_SHA