project-config/jenkins/jobs/infra-publish-jobs.yaml
Andreas Jaeger b573086e6e Fix publishing of docs.o.o/infra/index
We need to copy over not only the index.html file but also the
.root-marker. Copy over the whole directory, it contains only these two
files.

Without the root-marker, the file will get deleted later again.

Change-Id: I8cf8c29e319a4826023cd948bda259c0f73049aa
2017-01-13 15:47:45 +01:00

102 lines
2.6 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: docs.openstack.org
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: docs.openstack.org
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
- add-docs-root-marker:
docsrootdir: docs-site/output/
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/**'
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'