From 15160ea0417f8929add1273092033030c8c1a842 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Wed, 20 Dec 2017 11:38:39 +0000 Subject: xci: playbooks: Copy local changes to scenarios Make sure that any local changes to scenarios are being propagated to the checkouts. This should only happen when we are testing the 'master' branch of the scenario since it may be desirable to test a specific SHA in which case we shouldn't modify the checkout code. Change-Id: I4197f09a3e4d5a54c86905bc556b06e08948fbc2 Signed-off-by: Markos Chandras --- xci/playbooks/get-opnfv-scenario-requirements.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xci/playbooks/get-opnfv-scenario-requirements.yml b/xci/playbooks/get-opnfv-scenario-requirements.yml index 7f10a465..ec2f0d0e 100644 --- a/xci/playbooks/get-opnfv-scenario-requirements.yml +++ b/xci/playbooks/get-opnfv-scenario-requirements.yml @@ -74,6 +74,18 @@ loop_control: label: "{{ item.item.scenario }}" + - name: Synchronize local changes to scenarios' master branch + synchronize: + src: "{{ XCI_PATH }}/{{ item.item.role }}/" + dest: "{{ role_path_default }}/{{ item.item.scenario }}" + failed_when: false + when: + - item.stat.exists + - item.item.version == 'master' + with_items: "{{ scenarios_list_exists.results }}" + loop_control: + label: "{{ item.item.scenario }}" + - name: Plug in the scenario to XCI (fallback) shell: >- cp -a {{ XCI_PATH }}/{{ item.item.role }} -- cgit 1.2.3-korg