From 2ac17e982075bba16a14cd5cdb154650a5ba9a58 Mon Sep 17 00:00:00 2001 From: Will Holland Date: Wed, 16 Sep 2015 11:32:38 +0100 Subject: Pass SHAs of state when build starts forwards The SHAs of definitions, buildslave-scripts and ciat-testing are passed along the pipeline for consistency --- triggers/deploy_trigger.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'triggers/deploy_trigger.sh') 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 -- cgit v1.2.1