85bf2e8dde
- Import tripleo-buildimage playbooks and refactorize. Note: tripleo_image_type var was created to re-use the same playbooks. - Import toci_ci playbooks and refactorize. Note: some vars were created to re-use the same playbooks. - Import jobs, templates and projects layouts. Sort jobs by type so it's easily understable. - Create new templates and use these templates in tripleo-ci. It will make projects layouts easy. Change-Id: Ie8aa85fe7a8ee556cc1b46e215d329e95913290c Co-Authored-By: David Moreau-Simard <dms@redhat.com>
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
- hosts:
|
|
- primary
|
|
- tripleo-centos-7
|
|
- centos-7
|
|
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/images/'
|
|
mode: pull
|
|
copy_links: true
|
|
verify_host: true
|
|
rsync_opts:
|
|
- --include=/images/*
|
|
- --include=*/
|
|
- --exclude=*
|
|
- --prune-empty-dirs
|
|
|
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
|
synchronize:
|
|
src: '{{ ansible_user_dir }}/workspace/'
|
|
dest: '{{ zuul.executor.log_root }}'
|
|
mode: pull
|
|
copy_links: true
|
|
verify_host: true
|
|
rsync_opts:
|
|
- --include=/logs/**
|
|
- --include=*/
|
|
- --exclude=*
|
|
- --prune-empty-dirs
|