diff --git a/playbooks/openafs-rpm-package-build/publish.yaml b/playbooks/openafs-rpm-package-build/publish.yaml new file mode 100644 index 00000000..1fd63976 --- /dev/null +++ b/playbooks/openafs-rpm-package-build/publish.yaml @@ -0,0 +1,33 @@ +- hosts: localhost + tasks: + + # 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 + download_artifact_pipeline: gate + download_artifact_job: openafs-rpm-package-build-centos-7-x86 + download_artifact_directory: '{{ zuul.executor.work_root }}/artifacts/centos7' + + - 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 + download_artifact_pipeline: gate + download_artifact_job: openafs-rpm-package-build-centos-8-x86 + download_artifact_directory: '{{ zuul.executor.work_root }}/artifacts/centos8' + + - 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 + download_artifact_pipeline: gate + download_artifact_job: openafs-rpm-package-build-centos-8-arm64 + download_artifact_directory: '{{ zuul.executor.work_root }}/artifacts/centos8' diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 5dcd4643..61a8a0db 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -1047,6 +1047,13 @@ parent: openafs-rpm-package-build nodeset: centos-8-arm64 +- job: + name: openafs-rpm-package-build-promote + description: | + Publish the openafs RPM packages + parent: publish-openstack-artifacts + run: playbooks/openafs-rpm-package-build/publish.yaml + - job: name: project-config-build-openafs-centos description: | diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index 89ccb050..0bbb8d84 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -57,7 +57,12 @@ files: - playbooks/wheel-cache - roles/build-wheel-cache - gate: jobs: + - openafs-rpm-package-build-centos-7-x86 + - openafs-rpm-package-build-centos-8-x86 + - openafs-rpm-package-build-centos-8-arm64 - openstack-zuul-jobs-linters + promote: + jobs: + - openafs-rpm-package-build-promote