164b4e29a4
I copied this wrong, we are just having a "9-stream" directory to be clear about what it is. Change-Id: Ic21488249b004329bee149c03bae550118b97188
137 lines
4.6 KiB
YAML
137 lines
4.6 KiB
YAML
- hosts: localhost
|
|
tasks:
|
|
- name: Ensure artifacts directories exist
|
|
file:
|
|
state: directory
|
|
path: '{{ zuul.executor.work_root }}/{{ item }}'
|
|
loop:
|
|
- 'artifacts/openafs/centos7'
|
|
- 'artifacts/openafs/centos8'
|
|
- 'artifacts/openafs/centos8-stream'
|
|
- 'artifacts/openafs/centos9-stream'
|
|
|
|
#
|
|
# CentOS 7
|
|
#
|
|
|
|
# Download everything to the artifacts/ directory for publish
|
|
- name: Download centos 7 x86 artifact
|
|
include_role:
|
|
name: download-artifact
|
|
vars:
|
|
download_artifact_api: "https://zuul.opendev.org/api/tenant/{{ zuul.tenant }}"
|
|
download_artifact_type: rpm.tar.gz
|
|
download_artifact_pipeline: gate
|
|
download_artifact_job: openafs-rpm-package-build-centos-7-x86
|
|
download_artifact_directory: '{{ zuul.executor.work_root }}'
|
|
|
|
- name: Extract centos 7 x86
|
|
unarchive:
|
|
src: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
dest: '{{ zuul.executor.work_root }}/artifacts/openafs/centos7'
|
|
|
|
- name: Remove artifact
|
|
file:
|
|
state: absent
|
|
path: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
|
|
#
|
|
# CentOS 8
|
|
#
|
|
|
|
- name: Download centos 8 x86 artifact
|
|
include_role:
|
|
name: download-artifact
|
|
vars:
|
|
download_artifact_api: "https://zuul.opendev.org/api/tenant/{{ zuul.tenant }}"
|
|
download_artifact_type: rpm.tar.gz
|
|
download_artifact_pipeline: gate
|
|
download_artifact_job: openafs-rpm-package-build-centos-8-stream-x86
|
|
download_artifact_directory: '{{ zuul.executor.work_root }}'
|
|
|
|
- name: Extract centos 8 x86
|
|
unarchive:
|
|
src: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
# Keep this old path for backward compat
|
|
dest: '{{ zuul.executor.work_root }}/artifacts/openafs/centos8'
|
|
|
|
- name: Extract centos 8 x86 stream
|
|
unarchive:
|
|
src: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
dest: '{{ zuul.executor.work_root }}/artifacts/openafs/centos8-stream'
|
|
|
|
- name: Remove artifact
|
|
file:
|
|
state: absent
|
|
path: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
|
|
- name: Download centos 8 arm64 artifact
|
|
include_role:
|
|
name: download-artifact
|
|
vars:
|
|
download_artifact_api: "https://zuul.opendev.org/api/tenant/{{ zuul.tenant }}"
|
|
download_artifact_type: rpm.tar.gz
|
|
download_artifact_pipeline: gate
|
|
download_artifact_job: openafs-rpm-package-build-centos-8-stream-arm64
|
|
download_artifact_directory: '{{ zuul.executor.work_root }}'
|
|
|
|
- name: Extract centos 8 arm64
|
|
unarchive:
|
|
src: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
# Keep this old path for backward compat
|
|
dest: '{{ zuul.executor.work_root }}/artifacts/openafs/centos8'
|
|
|
|
- name: Extract centos 8 arm64 stream
|
|
unarchive:
|
|
src: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
dest: '{{ zuul.executor.work_root }}/artifacts/openafs/centos8-stream'
|
|
|
|
- name: Remove artifact
|
|
file:
|
|
state: absent
|
|
path: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
|
|
#
|
|
# CentOS 9
|
|
#
|
|
|
|
- name: Download centos 9 x86 artifact
|
|
include_role:
|
|
name: download-artifact
|
|
vars:
|
|
download_artifact_api: "https://zuul.opendev.org/api/tenant/{{ zuul.tenant }}"
|
|
download_artifact_type: rpm.tar.gz
|
|
download_artifact_pipeline: gate
|
|
download_artifact_job: openafs-rpm-package-build-centos-9-stream-x86
|
|
download_artifact_directory: '{{ zuul.executor.work_root }}'
|
|
|
|
- name: Extract centos 9 x86 stream
|
|
unarchive:
|
|
src: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
dest: '{{ zuul.executor.work_root }}/artifacts/openafs/centos9-stream'
|
|
|
|
- name: Remove artifact
|
|
file:
|
|
state: absent
|
|
path: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
|
|
- name: Download centos 9 arm64 artifact
|
|
include_role:
|
|
name: download-artifact
|
|
vars:
|
|
download_artifact_api: "https://zuul.opendev.org/api/tenant/{{ zuul.tenant }}"
|
|
download_artifact_type: rpm.tar.gz
|
|
download_artifact_pipeline: gate
|
|
download_artifact_job: openafs-rpm-package-build-centos-9-stream-arm64
|
|
download_artifact_directory: '{{ zuul.executor.work_root }}'
|
|
|
|
- name: Extract centos 9 arm64 stream
|
|
unarchive:
|
|
src: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
dest: '{{ zuul.executor.work_root }}/artifacts/openafs/centos9-stream'
|
|
|
|
- name: Remove artifact
|
|
file:
|
|
state: absent
|
|
path: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|