diff options
author | Matt Riedemann <mriedem.os@gmail.com> | 2019-07-10 17:27:10 -0400 |
---|---|---|
committer | Matt Riedemann <mriedem.os@gmail.com> | 2019-07-23 11:32:35 -0400 |
commit | cee072b962edd2412d579b4a87f191d098536ae7 (patch) | |
tree | f1182acf51db694ddc47883c1d906dc072dd5678 /roles | |
parent | 2722cab1af350b05a641b18b4054fd8d95b94cc1 (diff) | |
download | nova-cee072b962edd2412d579b4a87f191d098536ae7.tar.gz |
Convert nova-next to a zuul v3 job
For the most part this should be a pretty straight-forward
port of the run.yaml. The most complicated thing is executing
the post_test_hook.sh script. For that, a new post-run playbook
and role are added.
The relative path to devstack scripts in post_test_hook.sh itself
had to drop the 'new' directory since we are no longer executing
the script through devstack-gate anymore the 'new' path does not
exist.
Change-Id: Ie3dc90862c895a8bd9bff4511a16254945f45478
Diffstat (limited to 'roles')
-rw-r--r-- | roles/run-post-test-hook/README.rst | 8 | ||||
-rw-r--r-- | roles/run-post-test-hook/defaults/main.yaml | 1 | ||||
-rw-r--r-- | roles/run-post-test-hook/tasks/main.yaml | 3 |
3 files changed, 12 insertions, 0 deletions
diff --git a/roles/run-post-test-hook/README.rst b/roles/run-post-test-hook/README.rst new file mode 100644 index 0000000000..1f31bc8ec9 --- /dev/null +++ b/roles/run-post-test-hook/README.rst @@ -0,0 +1,8 @@ +Runs gate/post_test_hook.sh. + +**Role Variables** + +.. zuul:rolevar:: devstack_base_dir + :default: /opt/stack + + The devstack base directory. diff --git a/roles/run-post-test-hook/defaults/main.yaml b/roles/run-post-test-hook/defaults/main.yaml new file mode 100644 index 0000000000..fea05c8146 --- /dev/null +++ b/roles/run-post-test-hook/defaults/main.yaml @@ -0,0 +1 @@ +devstack_base_dir: /opt/stack diff --git a/roles/run-post-test-hook/tasks/main.yaml b/roles/run-post-test-hook/tasks/main.yaml new file mode 100644 index 0000000000..5c916aa267 --- /dev/null +++ b/roles/run-post-test-hook/tasks/main.yaml @@ -0,0 +1,3 @@ +- name: Run post_test_hook.sh + command: "{{ devstack_base_dir }}/nova/gate/post_test_hook.sh" + become: yes |