From a657781d3d9a6acff445ba9e9e04c73e3d6c32c1 Mon Sep 17 00:00:00 2001 From: Ronelle Landy Date: Mon, 5 Nov 2018 14:49:25 -0500 Subject: [PATCH] Create a reproducer-quickstart dir The reproducer should use toci_quickstart, toci_gate_test and related functions with the same variables as the CI job. This review creates a directory to copy those ready templates for use when running the reproducer. Change-Id: I1480a42bd78577fe2d2fb34981a2b02889b37ead Story: https://tree.taiga.io/project/tripleo-ci-board/task/271 --- roles/create-reproducer-script/tasks/main.yml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/roles/create-reproducer-script/tasks/main.yml b/roles/create-reproducer-script/tasks/main.yml index 811c5d466..9aae4eb26 100644 --- a/roles/create-reproducer-script/tasks/main.yml +++ b/roles/create-reproducer-script/tasks/main.yml @@ -10,6 +10,39 @@ state: directory when: not collect_dir.stat.exists +- name: Create the reproducer-quickstart directory + file: + path: "{{ artcl_collect_dir }}/reproducer-quickstart" + state: directory + +- name: Create the reproducer-quickstart/scripts directory + file: + path: "{{ artcl_collect_dir }}/reproducer-quickstart/scripts" + state: directory + +- name: Copy the generate toci templates and files + copy: + src: "/home/{{ undercloud_user }}/src/git.openstack.org/openstack/tripleo-ci/{{ item }}" + dest: "{{ artcl_collect_dir }}/reproducer-quickstart/{{ item }}" + mode: 0755 + with_items: + - "toci_gate_test.sh" + - "toci_quickstart.sh" + - "scripts/common_vars.bash" + - "scripts/oooq_common_functions.sh" + +- name: Check if featureset-override exists + stat: + path: "/home/{{ undercloud_user }}/src/git.openstack.org/openstack/tripleo-ci/featureset-override.yaml" + register: featureset_override_file + +- name: Add the featureset-override if it exists + copy: + src: "/home/{{ undercloud_user }}/src/git.openstack.org/openstack/tripleo-ci/featureset-override.yaml" + dest: "{{ artcl_collect_dir }}/reproducer-quickstart/featureset-override.yaml" + mode: 0755 + when: featureset_override_file.stat.exists + - name: Create the reproducer file from template template: src: "{{ reproducer_quickstart_script }}"