From 4591eb5ecfdfca4655057fba85892fb50e900108 Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Mon, 11 Mar 2019 17:50:53 +0200 Subject: [PATCH] Support patches in reproducer runs Add support for patches checking for reproducer role and quickstart. Pass patches as refspecs: ./reproducer-zuul-based-quickstart.sh .... \ -e ooo_quickstart_refspec="refs/changes/08/641708/2" \ -e reproducer_role_refspec="refs/changes/59/19259/1" It will apply patches above to code before running reproducer. Change-Id: I470213f4745464b652be5ff7a3b2aa320ac78cda --- .../launcher-env-setup-playbook.yaml.j2 | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/roles/create-zuul-based-reproducer/templates/launcher-env-setup-playbook.yaml.j2 b/roles/create-zuul-based-reproducer/templates/launcher-env-setup-playbook.yaml.j2 index b34f4bad0..bcad1f44a 100644 --- a/roles/create-zuul-based-reproducer/templates/launcher-env-setup-playbook.yaml.j2 +++ b/roles/create-zuul-based-reproducer/templates/launcher-env-setup-playbook.yaml.j2 @@ -18,12 +18,21 @@ - name: Clone repos needed for reproducer git: - repo: "{{ item }}" - dest: "git/{{ item.replace('.git', '').split('/')[-1:]|join('/') }}" + repo: https://git.openstack.org/openstack/tripleo-quickstart.git + dest: "git/tripleo-quickstart" + version: 'FETCH_HEAD' + accept_hostkey: true update: no - with_items: - - https://git.openstack.org/openstack/tripleo-quickstart.git - - https://github.com/rdo-infra/ansible-role-tripleo-ci-reproducer.git + refspec: "{{ ooo_quickstart_refspec | default('HEAD') }}" + + - name: Clone ansible role for reproducer + git: + repo: https://github.com/rdo-infra/ansible-role-tripleo-ci-reproducer.git + dest: "git/ansible-role-tripleo-ci-reproducer" + version: 'FETCH_HEAD' + accept_hostkey: true + update: no + refspec: "{{ reproducer_role_refspec | default('HEAD') }}" - name: Copy roles and libraries for tripleo-quickstart synchronize: