openafs-rpm-package-build: add publish job

Grab the artifacts from the gate jobs and publish them

Change-Id: I09e2a9ce3afac2713d4bb3f09c3029f1cc8d47b1
This commit is contained in:
Ian Wienand 2020-06-03 12:59:32 +10:00
parent 2faed0d4c2
commit 50fb0e4c11
3 changed files with 46 additions and 1 deletions

View File

@ -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'

View File

@ -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: |

View File

@ -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