Merge "Correct variables in the POST job image_name -> image_type"

This commit is contained in:
Zuul
2019-09-23 14:48:40 +00:00
committed by Gerrit Code Review

View File

@@ -8,14 +8,14 @@
- name: Ensure artifacts directory exists - name: Ensure artifacts directory exists
file: file:
path: '{{ zuul.executor.work_root }}/artifacts/{{ image_name }}/files' path: '{{ zuul.executor.work_root }}/artifacts/{{ image_type }}/files'
state: directory state: directory
delegate_to: localhost delegate_to: localhost
- name: Copy files from {{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent on node - name: Copy files from {{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent on node
synchronize: synchronize:
src: '{{ ipa_raw_dir }}' src: '{{ ipa_raw_dir }}'
dest: '{{ zuul.executor.work_root }}/artifacts/{{ image_name }}/files/' dest: '{{ zuul.executor.work_root }}/artifacts/{{ image_type }}/files/'
mode: pull mode: pull
copy_links: true copy_links: true
verify_host: true verify_host: true
@@ -26,7 +26,7 @@
- name: Copy files from {{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent on node - name: Copy files from {{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent on node
synchronize: synchronize:
src: '{{ ipa_tar_dir }}' src: '{{ ipa_tar_dir }}'
dest: '{{ zuul.executor.work_root }}/artifacts/{{ image_name }}/' dest: '{{ zuul.executor.work_root }}/artifacts/{{ image_type }}/'
mode: pull mode: pull
copy_links: true copy_links: true
verify_host: true verify_host: true