Stephen Finucane 2694dd2bb2 zuul: Move legacy jobs to project
These jobs need to be rewritten for zuulv3, but for now get them out of
the openstack-zuul-jobs repo.

Change-Id: I3381b146c9e5ea3fe66883508a854617b4578286
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-09-24 14:22:45 +01:00

22 lines
646 B
YAML

- hosts: primary
tasks:
- name: Ensure artifacts directory exists
file:
path: '{{ zuul.executor.work_root }}/artifacts'
state: directory
delegate_to: localhost
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
synchronize:
src: '{{ ansible_user_dir }}/workspace/'
dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME'
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- --include=/target/$ZUUL_SHORT_PROJECT_NAME-*.jar
- --include=*/
- --exclude=*
- --prune-empty-dirs