From 3577774bda7b068d4382ffa96741fac79552b6bc Mon Sep 17 00:00:00 2001 From: Faseela K Date: Fri, 14 Dec 2018 15:29:17 +0530 Subject: [PATCH 1/1] Broken COE patch test If we run COE patch test from netvirt, it is currently not working, as the refspec is getting used for building golang binaries from COE project. Change-Id: If90519fb035d01b4c18d3a1abcc5f06e92e8074a Signed-off-by: Faseela K --- csit/libraries/Coe.robot | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/csit/libraries/Coe.robot b/csit/libraries/Coe.robot index a9462b4314..5ec712dfad 100644 --- a/csit/libraries/Coe.robot +++ b/csit/libraries/Coe.robot @@ -73,7 +73,12 @@ Configuration Playbook OperatingSystem.Create File ${WATCHER_COE} ${watcher} SSHKeywords.Copy_File_To_Remote_System ${K8s_MASTER_IP} ${WATCHER_COE} ${USER_HOME} OperatingSystem.Copy File ${PLAYBOOK_FILE} ${USER_HOME} - ${play_output} = OperatingSystem.Run ansible-playbook -v ${USER_HOME}/coe_play.yaml -i ${USER_HOME}/hosts.yaml --extra-vars '{"gerrit_branch":"FETCH_HEAD","gerrit_refspec":"${GERRIT_REFSPEC}"}' + ${gerrit_ref_spec} = BuiltIn.Set Variable If '${GERRIT_PROJECT}' == 'coe' ${GERRIT_REFSPEC} HEAD + Run Coe Playbook ${gerrit_ref_spec} + +Run Coe Playbook + [Arguments] ${gerrit_ref_spec} + ${play_output} = OperatingSystem.Run ansible-playbook -v ${USER_HOME}/coe_play.yaml -i ${USER_HOME}/hosts.yaml --extra-vars '{"gerrit_branch":"FETCH_HEAD","gerrit_refspec":"${gerrit_ref_spec}"}' BuiltIn.Log ${play_output} Modifying templates in playbook -- 2.36.6