xci: playbooks: Simplify scenario overrides mechanism 43/56643/10
authorMarkos Chandras <mchandras@suse.de>
Thu, 26 Apr 2018 08:38:54 +0000 (09:38 +0100)
committerMarkos Chandras <mchandras@suse.de>
Mon, 30 Apr 2018 15:09:20 +0000 (16:09 +0100)
commitc10fb5f0aceee722f34f5963c4bdbea3e32a7a7f
tree94a5a0fc6f9997d0ec9e8d1d52a77ca6ad51aa6d
parent15be5eb8da9881428ea1635a3184c39f63dfaf80
xci: playbooks: Simplify scenario overrides mechanism

Now that releng-xci does not have any internal scenarios anymore, we can
simplify the way we plug scenarios to XCI. We keep cloning scenarios in
the cache directory but we also allow users to pass a special
'xci_scenarios_overrides' variable similar to the
'opnfv_scenario_requirements.yml' file to allow them to override
specific keys of the dictionaries. This can be used by Jenkins to test
incoming changes by altering the defaults values. For example, when
we want to test a Gerrit change we can create a file called foobar.yml
with the following contents

xci_scenarios_overrides:
  - scenario: os-odl-sfc
      version: 9fa5400012e02408b416eb7bd26307e7d179abce
      refspec: refs/changes/79/55879/7

and load it using

XCI_ANSIBLE_PARAMS="-e @foobar.yml"

This will make XCI checkout the refspec that we want instead of the
default version.

Change-Id: Ida49910b4c79b843582ddd70c00063fe9bc90dd4
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/playbooks/get-opnfv-scenario-requirements.yml