project-config/jenkins/jobs/infra-publish-jobs.yaml
Khai Do d679cf6e01 rename 'tox' macro to 'run-tox'
JJB already has a tox module[1].  Defining a macro with the same name is
confusing and may cause problems when attempting to use this macro
elsewhere. Renaming it to something else should clear things up.

This is the warning from JJB:

$ jenkins-jobs test -o out ../project-config/jenkins/jobs
WARNING:jenkins_jobs.registry:You have a macro ('tox') defined for
'builder' component type that is masking an inbuilt definition

[1] http://docs.openstack.org/infra/jenkins-job-builder/builders.html#builders.tox

Change-Id: I6946229f6e94a5f4c10d6a5fc3b7049adeacacb1
2016-11-15 11:54:16 +01:00

100 lines
2.5 KiB
YAML

- job-template:
name: '{name}-infra-docs'
node: 'ubuntu-trusty'
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-trusty
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-trusty
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-trusty
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'