Build CentOS 9 RPM packages
This builds and publishes openafs packages for CentOS 9 Change-Id: I26c727caba12e544dd483dc3e8f04fd7d6bf7daa
This commit is contained in:
parent
60a63f1bb1
commit
6a6f4ecf70
|
@ -7,6 +7,11 @@
|
||||||
loop:
|
loop:
|
||||||
- 'artifacts/openafs/centos7'
|
- 'artifacts/openafs/centos7'
|
||||||
- 'artifacts/openafs/centos8'
|
- 'artifacts/openafs/centos8'
|
||||||
|
- 'artifacts/openafs/centos9'
|
||||||
|
|
||||||
|
#
|
||||||
|
# CentOS 7
|
||||||
|
#
|
||||||
|
|
||||||
# Download everything to the artifacts/ directory for publish
|
# Download everything to the artifacts/ directory for publish
|
||||||
- name: Download centos 7 x86 artifact
|
- name: Download centos 7 x86 artifact
|
||||||
|
@ -29,6 +34,10 @@
|
||||||
state: absent
|
state: absent
|
||||||
path: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
path: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
||||||
|
|
||||||
|
#
|
||||||
|
# CentOS 8
|
||||||
|
#
|
||||||
|
|
||||||
- name: Download centos 8 x86 artifact
|
- name: Download centos 8 x86 artifact
|
||||||
include_role:
|
include_role:
|
||||||
name: download-artifact
|
name: download-artifact
|
||||||
|
@ -80,3 +89,53 @@
|
||||||
file:
|
file:
|
||||||
state: absent
|
state: absent
|
||||||
path: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
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
|
||||||
|
unarchive:
|
||||||
|
src: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
||||||
|
# Keep this old path for backward compat
|
||||||
|
dest: '{{ zuul.executor.work_root }}/artifacts/openafs/centos9'
|
||||||
|
|
||||||
|
- 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'
|
||||||
|
|
|
@ -6,12 +6,19 @@
|
||||||
- createrepo
|
- createrepo
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
- name: Install centos8 packages
|
- name: Install centos 8/9 common packages
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- elfutils-devel
|
- elfutils-devel
|
||||||
become: yes
|
become: yes
|
||||||
when: ansible_distribution_major_version == '8'
|
when: ansible_distribution_major_version is version('8', '>=')
|
||||||
|
|
||||||
|
- name: Install centos9 packages
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- perl-File-Copy
|
||||||
|
become: yes
|
||||||
|
when: ansible_distribution_major_version is version('9', '>=')
|
||||||
|
|
||||||
# https://wiki.openafs.org/devel/HowToBuildOpenAfsRpmPackages/
|
# https://wiki.openafs.org/devel/HowToBuildOpenAfsRpmPackages/
|
||||||
- name: Build and install srpm
|
- name: Build and install srpm
|
||||||
|
|
|
@ -1359,6 +1359,11 @@
|
||||||
parent: openafs-rpm-package-build
|
parent: openafs-rpm-package-build
|
||||||
nodeset: centos-8-stream-arm64
|
nodeset: centos-8-stream-arm64
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: openafs-rpm-package-build-centos-9-stream-x86
|
||||||
|
parent: openafs-rpm-package-build
|
||||||
|
nodeset: centos-9-stream
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: openafs-rpm-package-build-promote
|
name: openafs-rpm-package-build-promote
|
||||||
description: |
|
description: |
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
- openafs-rpm-package-build-centos-7-x86
|
- openafs-rpm-package-build-centos-7-x86
|
||||||
- openafs-rpm-package-build-centos-8-stream-x86
|
- openafs-rpm-package-build-centos-8-stream-x86
|
||||||
- openafs-rpm-package-build-centos-8-stream-arm64
|
- openafs-rpm-package-build-centos-8-stream-arm64
|
||||||
|
- openafs-rpm-package-build-centos-9-stream-x86
|
||||||
- openstack-infra-extra-integration-xenial
|
- openstack-infra-extra-integration-xenial
|
||||||
- openstack-infra-extra-integration-bionic
|
- openstack-infra-extra-integration-bionic
|
||||||
- openstack-zuul-jobs-linters
|
- openstack-zuul-jobs-linters
|
||||||
|
@ -74,6 +75,7 @@
|
||||||
- openafs-rpm-package-build-centos-7-x86
|
- openafs-rpm-package-build-centos-7-x86
|
||||||
- openafs-rpm-package-build-centos-8-stream-x86
|
- openafs-rpm-package-build-centos-8-stream-x86
|
||||||
- openafs-rpm-package-build-centos-8-stream-arm64
|
- openafs-rpm-package-build-centos-8-stream-arm64
|
||||||
|
- openafs-rpm-package-build-centos-9-stream-x86
|
||||||
- openstack-zuul-jobs-linters
|
- openstack-zuul-jobs-linters
|
||||||
promote:
|
promote:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
Loading…
Reference in New Issue