Create a parent job to publish to the zuul website

This is in project-config so that it can run on the executor and
use the local AFS installation.

Change-Id: I2a29ea4639c830f03f1f7776c6b194b57c28e937
This commit is contained in:
James E. Blair 2018-01-26 13:37:36 -08:00
parent 1145ab1293
commit 191b7082a8
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,9 @@
- hosts: localhost
roles:
- role: create-afs-token
when: zuul_success | bool
- role: upload-afs
afs_target: "/afs/.openstack.org/project/zuul-ci.org/www"
when: zuul_success | bool
- role: destroy-afs-token
when: zuul_success | bool

13
zuul.d/zuul-jobs.yaml Normal file
View File

@ -0,0 +1,13 @@
- job:
name: publish-zuul-website
description: |
Publishes content in artifacts/ to the Zuul website.
allowed-projects:
- openstack-infra/zuul-website
post-run:
- playbooks/publish/zuul-afs.yaml
roles:
- zuul: openstack-infra/zuul-jobs
secrets:
- secret: afsdocs_secret
name: afs