From 5ce903b099b47ffca3b50323e2396517a098bef7 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Wed, 9 May 2018 11:41:42 +0100 Subject: [PATCH] jjb: xci: xci-start-new-vm: Fix gerrit variable for git SHA The gerrit variable for the git SHA is GERRIT_PATCHSET_REVISION instead of GERRIT_CHANGE_ID. We also need to export the XCI_ANSIBLE_PARAMS variable. Change-Id: I206820f1155a4876fb7d87cc0b5ae1b8afb06bd6 Signed-off-by: Markos Chandras --- jjb/xci/xci-start-new-vm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jjb/xci/xci-start-new-vm.sh b/jjb/xci/xci-start-new-vm.sh index f1585b9f0..e68b931db 100755 --- a/jjb/xci/xci-start-new-vm.sh +++ b/jjb/xci/xci-start-new-vm.sh @@ -68,7 +68,7 @@ export BUILD_TAG=$BUILD_TAG export NODE_NAME=$NODE_NAME if [[ ! -z ${WORKSPACE+x} && $GERRIT_PROJECT != "releng-xci" ]]; then - XCI_ANSIBLE_PARAMS="-e /home/devuser/releng-xci/scenario_overrides.yml" + export XCI_ANSIBLE_PARAMS="-e /home/devuser/releng-xci/scenario_overrides.yml" fi cd xci @@ -80,7 +80,7 @@ if [[ ! -z ${WORKSPACE+x} && $GERRIT_PROJECT != "releng-xci" ]]; then --- xci_scenarios_overrides: - scenario: $DEPLOY_SCENARIO - version: $GERRIT_CHANGE_ID + version: $GERRIT_PATCHSET_REVISION refspec: $GERRIT_REFSPEC EOF fi -- 2.16.6