Correct variables in the POST job image_name -> image_type

Change-Id: Ica3ccbda25633d450a0e22111829cdc0115cf0f8
This commit is contained in:
Dmitry Tantsur
2019-09-18 15:48:29 +02:00
parent 46d5727990
commit a7a8ff69f5

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