project-config/jenkins/jobs/infra-publish-jobs.yaml
Clark Boylan e4b321340b Run infra doc build/publish jobs on Xenial
Move these jobs onto Xenial so that they have a newer home to live in.
These aren't associated with a true running service, instaed they build
files and possibly copy them elsewhere for hosting. Should be fine to
xenial as a result.

Change-Id: If9bd101513bd6a1300de846cc4bb4938af371736
2016-12-06 14:47:08 -08:00

100 lines
2.5 KiB
YAML

- job-template:
name: '{name}-infra-docs'
node: 'ubuntu-xenial'
builders:
- print-template-name:
template-name: "{template-name}"
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- docs
publishers:
- ftp:
site: '{doc-publisher-site}'
source: 'doc/build/html/**'
target: 'infra/{doc-publisher-folder}'
remove-prefix: 'doc/build/html'
excludes: ''
- afs:
site: 'afs-docs'
source: 'doc/build/html/**'
target: 'infra/{doc-publisher-folder}'
remove-prefix: 'doc/build/html'
- console-log
- job-template:
name: '{name}-infra-docs-tags-only'
description: Publish infra documents, use when only publish on tag
node: ubuntu-xenial
builders:
- print-template-name:
template-name: "{template-name}"
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- docs-tags-only-env:
env: venv
publishers:
- ftp:
site: '{doc-publisher-site}'
source: 'doc/build/html/**'
target: 'infra/{doc-publisher-folder}'
remove-prefix: 'doc/build/html'
excludes: ''
- afs:
site: 'afs-docs'
source: 'doc/build/html/**'
target: 'infra/{doc-publisher-folder}'
remove-prefix: 'doc/build/html'
- console-log
- job:
name: publish-infra-docs-index
description: Render and publish the infra docs index.
node: ubuntu-xenial
builders:
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- run-tox:
envlist: infra-docs
publishers:
- ftp:
site: docs.openstack.org
source: 'docs-site/output/index.html'
target: 'infra/'
remove-prefix: 'docs-site/output/'
- afs:
site: 'afs-docs'
source: 'docs-site/output/index.html'
target: 'infra/'
remove-prefix: 'docs-site/output/'
- console-log
- job:
name: gate-infra-docs-index
description: Render the infra docs index without publishing it.
node: ubuntu-xenial
builders:
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- run-tox:
envlist: infra-docs
publishers:
- console-log
- job-group:
name: infra-publish-jobs
jobs:
- '{name}-infra-docs'
- '{name}-infra-docs-tags-only'