Switch project-config to promote jobs [4]: Add promote jobs

Create new promote jobs for infra-index and docs-site.
Also, add promote-openstack-specs job that we can use for publishing
all specs site later.

Add the same file list (copied from openstack-zuul-jobs) for the two
project-config promote jobs.

Remove the now obsolete publish jobs.

Remove now obsolete playbooks.

Needed-By: https://review.opendev.org/682215
Change-Id: I3c227f4229a0572a532009f270d44059698f53e8
This commit is contained in:
Andreas Jaeger 2019-09-14 17:24:13 +02:00
parent 800ea0aa05
commit 9de5bbc224
5 changed files with 122 additions and 69 deletions

View File

@ -1,10 +0,0 @@
- hosts: all
roles:
- fetch-tox-output
- role: write-root-marker
root_marker_dir: "src/{{ zuul.project.canonical_name }}/docs-site/output"
when: zuul_success | bool
- role: fetch-sphinx-output
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/docs-site/output/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool

View File

@ -1,22 +0,0 @@
- hosts: all
roles:
- fetch-tox-output
- role: fetch-sphinx-output
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/specs/output/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool
- hosts: localhost
roles:
- role: add-fileserver
fileserver: "{{ site_specs }}"
- hosts: "{{ site_specs.fqdn }}"
gather_facts: False
tasks:
- name: Upload specs site to fileserver
synchronize:
src: "{{ zuul.executor.work_root }}/artifacts/"
dest: "/srv/static/specs/"
no_log: true
when: zuul_success | bool

View File

@ -479,22 +479,52 @@
- site_specs
- job:
name: publish-openstack-specs-site
name: promote-openstack-specs-base
parent: opendev-promote-docs-base
abstract: true
protected: true
description: |
Publish OpenStack specs site to static.openstack.org specs/
final: true
pre-run: playbooks/project-config/pre-tox.yaml
run: playbooks/project-config/run-tox.yaml
post-run: playbooks/publish/openstack-specs-site.yaml
allowed-projects:
- openstack/project-config
Base job to promote content to specs.openstack.org.
Jobs need to set the variable ``static_target`` for site to
publish to.
run: playbooks/static-docs/promote.yaml
vars:
download_artifact_job: build-openstack-specs-site
static_target: ""
roles:
- zuul: zuul/zuul-jobs
- zuul: openstack/openstack-zuul-jobs
vars:
tox_envlist: specs
secrets:
- site_specs
- name: fileserver
secret: site_specs_promote
- job:
name: promote-openstack-specs-site
parent: promote-openstack-specs-base
final: true
description: |
Publish OpenStack specs site to static.openstack.org specs/
This is a promote job for ``build-openstack-specs-site``.
allowed-projects:
- openstack/project-config
vars:
download_artifact_job: build-openstack-specs-site
static_target: ""
- job:
name: promote-openstack-specs
parent: promote-openstack-specs-base
final: true
description: |
Publish OpenStack specs project to static.openstack.org
specs/{{ zuul.project.name }}.
This is a promote job for ``openstack-tox-docs``.
vars:
download_artifact_job: openstack-tox-docs
static_target: "{{ zuul.project.name }}"
- job:
name: publish-tox-docs-infra
@ -578,26 +608,18 @@
- site_specs
- job:
name: publish-infra-index
name: promote-infra-index
parent: promote-tox-docs-special-base
description: |
Publish the infrastructure documentation index
final: true
pre-run: playbooks/project-config/pre-tox.yaml
run: playbooks/project-config/run-tox.yaml
post-run:
- playbooks/publish/infra-index.yaml
- playbooks/publish/openstack-afs.yaml
Promote infra index.html to
https://docs.openstack.org/infra/
allowed-projects:
- openstack/project-config
roles:
- zuul: zuul/zuul-jobs
- zuul: openstack/openstack-zuul-jobs
final: true
branches: master
vars:
tox_envlist: infra-docs
afs_subpath: "/infra"
secrets:
- secret: afsdocs_secret
name: afs
download_artifact_job: project-config-infra-docs-index
special_publish_directory: "infra"
- job:
name: publish-infra-publications-index

View File

@ -3743,12 +3743,22 @@
check:
queue: project-config
jobs:
- build-openstack-specs-site
- build-openstack-specs-site:
files: &specs-site
- bindep.txt
- specs/.*
- other-requirements.txt
- tox.ini
- openstack-zuul-jobs-linters
- project-config-dib
- project-config-gerrit
- project-config-grafyaml
- project-config-infra-docs-index
- project-config-infra-docs-index:
files: &infra-docs-index
- bindep.txt
- docs-site/.*
- other-requirements.txt
- tox.ini
- project-config-irc-access
- project-config-nodepool
- project-config-bindep-fallback-centos-7
@ -3758,24 +3768,26 @@
gate:
queue: project-config
jobs:
- build-openstack-specs-site
- build-openstack-specs-site:
files: *specs-site
- openstack-zuul-jobs-linters
- project-config-dib
- project-config-gerrit
- project-config-grafyaml
- project-config-infra-docs-index
- project-config-infra-docs-index:
files: *infra-docs-index
- project-config-irc-access
- project-config-nodepool
- project-config-bindep-fallback-centos-7
- project-config-bindep-fallback-opensuse-15
- project-config-bindep-fallback-ubuntu-trusty
- project-config-bindep-fallback-ubuntu-xenial
# Temporarily disabled to allow us to update them.
# TODO(jaegerandi): Enable in promote pipeline.
# post:
# jobs:
# - publish-infra-index
# - publish-openstack-specs-site
promote:
jobs:
- promote-infra-index:
files: *infra-docs-index
- promote-openstack-specs-site:
files: *specs-site
periodic:
jobs:
- propose-project-config-update

View File

@ -357,6 +357,57 @@
CDih/PpK9ofisCqVyvl0E+4l75l4P4TCdi7d96/9qTQSIP0b8uraGnw1QvGj46j4Cus1o
4tjgrxleCEIUTCykp5IWhjbfYUIMK1dqaaEoGE27qBC8FY5rrq9cEVtFvGCUOM=
- secret:
name: site_specs_promote
# This is the same as site_specs, just path is different
data:
fqdn: logs.openstack.org
path: /srv/static/specs
ssh_known_hosts: |
logs.openstack.org,23.253.108.137,2001:4800:7817:104:be76:4eff:fe05:dbee ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDcvLuGLagUAZfc0BThLus8ufSPCrIhDtG0BdXvhblJjvIbkuELD3dRWRZVSYZAdzGZRY3t6vTAcguTrkbQg5ngXfdfF+OKPkaH8DiZwAX/1g/iRXhInkZTGBVqHo9pLAMeNNwviSy2JjpTqdD6fLEkHwW+uw4E2YZhYivctTSbOepMkzAtFV0w5cpyBzjAT/Hax2x5un6es8R0Iw3AAnUmtapn5e5NCrg2rPNpd0nve84wUavvbC2DeGDOZQdnIahwo60Sder5ZE/x6cG39bkSDdgFQArAzrNrH6BHmNGjfFPpnGmfc7P8gQwDPtMf02HvKapqATXpIxdbSGimWLL
ssh_username: jenkins
ssh_private_key: !encrypted/pkc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