system-config/modules/openstack_project/files/jenkins_job_builder/config/manuals-jobs.yaml
Andreas Jaeger f0e6194fea Publish draft docs on draft-docs
Take care that built books are published on docs-draft.

The checkbuild tox gates copy the files to the git top-level
directory publish-docs and those can then be copied over to
docs-draft.

The patch consists of:
* A new publisher 'upload-docs-draft' for publishing the jobs
* A new publisher 'upload-doc-build-results' for publishing the log
  files of built manuals
* A new job-template 'gate-{name}-tox-doc-publish-{envlist}' that includes
  the new publishers
* Using the job-template in the docs job-group
* Update for Zuul for the above changes

blueprint draft-docs-on-docs-draft

Change-Id: Id3e9543fc67ca28e2882fb73f169d82aaec1aeb7
2014-02-11 19:16:48 +01:00

227 lines
6.9 KiB
YAML

- job-template:
name: 'openstack-{manual}'
project-type: maven
node: precise
concurrent: false
prebuilders:
- gerrit-git-prep
properties:
- inject:
script-file: /usr/local/jenkins/slave_scripts/docbook-properties.sh
properties-file: gerrit-doc.properties
maven:
maven-name: Maven3
root-module:
group-id: org.openstack.docs
artifact-id: openstack-guide
root-pom: doc/{manual}/pom.xml
goals: '-Drelease.path.name=${{DOC_RELEASE_PATH}} -Dcomments.enabled=${{DOC_COMMENTS_ENABLED}} clean generate-sources -B'
publishers:
- console-log
- ftp:
site: docs.openstack.org
source: 'doc/{manual}/target/docbkx/webhelp/**'
target: ''
remove-prefix: 'doc/{manual}/target/docbkx/webhelp/'
excludes: '**/*.xml,**/null*'
- ftp:
site: docs.openstack.org
source: 'doc/{manual}/target/docbkx/webhelp/**/atom.xml'
target: ''
remove-prefix: 'doc/{manual}/target/docbkx/webhelp/'
- job-template:
name: 'openstack-install-deploy-guide-{distribution}'
project-type: maven
concurrent: false
node: precise
properties:
- inject:
script-file: /usr/local/jenkins/slave_scripts/docbook-properties.sh
properties-file: gerrit-doc.properties
prebuilders:
- gerrit-git-prep
maven:
maven-name: Maven3
root-module:
group-id: org.openstack.docs
artifact-id: openstack-guide
root-pom: doc/install-guide/pom.xml
goals: '-Doperating.system={system} -Dprofile.os={profileos} -Drelease.path.name=${{DOC_RELEASE_PATH}} -Dcomments.enabled=${{DOC_COMMENTS_ENABLED}} clean generate-sources -B'
publishers:
- console-log
- ftp:
site: docs.openstack.org
source: 'doc/install-guide/target/docbkx/webhelp/**'
target: '/'
remove-prefix: 'doc/install-guide/target/docbkx/webhelp/'
excludes: '**/*.xml,**/null*'
- ftp:
site: docs.openstack.org
source: 'doc/install-guide/target/docbkx/webhelp/**/atom.xml'
target: '/'
remove-prefix: 'doc/install-guide/target/docbkx/webhelp/'
- job-template:
name: 'openstack-install-deploy-guide-{distribution}-{lang}'
project-type: maven
concurrent: false
node: precise
properties:
- inject:
script-file: /usr/local/jenkins/slave_scripts/docbook-properties.sh
properties-file: gerrit-doc.properties
prebuilders:
- gerrit-git-prep
- shell: |
./tools/generatedocbook -l {lang} -b common
./tools/generatedocbook -l {lang} -b glossary
./tools/generatedocbook -l {lang} -b user-guide
./tools/generatedocbook -l {lang} -b install-guide
cp doc/pom.xml generated/{lang}/pom.xml
maven:
maven-name: Maven3
root-module:
group-id: org.openstack.docs
artifact-id: openstack-guide
root-pom: generated/{lang}/install-guide/pom.xml
goals: '-Doperating.system={system} -Dprofile.os={profileos} -Drelease.path.name=${{DOC_RELEASE_PATH}} -Dcomments.enabled=${{DOC_COMMENTS_ENABLED}} clean generate-sources -B'
publishers:
- console-log
- ftp:
site: docs.openstack.org
source: 'generated/{lang}/install-guide/target/docbkx/webhelp/**'
target: '/{lang}/'
remove-prefix: 'generated/{lang}/install-guide/target/docbkx/webhelp/'
excludes: '**/*.xml,**/null*'
- ftp:
site: docs.openstack.org
source: 'generated/{lang}/install-guide/target/docbkx/webhelp/**/atom.xml'
target: '/'
remove-prefix: 'generated/{lang}/install-guide/target/docbkx/webhelp/'
- job-template:
name: openstack-{oldmanual}-old
project-type: maven
node: precise
concurrent: false
prebuilders:
- gerrit-git-prep
properties:
- inject:
script-file: /usr/local/jenkins/slave_scripts/docbook-properties.sh
properties-file: gerrit-doc.properties
maven:
maven-name: Maven3
root-module:
group-id: org.openstack.docs
artifact-id: openstack-guide
root-pom: doc/src/docbkx/openstack-{oldmanual}/pom.xml
goals: '-Drelease.path.name=${{DOC_RELEASE_PATH}} -Dcomments.enabled=${{DOC_COMMENTS_ENABLED}} clean generate-sources -B'
publishers:
- console-log
- ftp:
site: docs.openstack.org
source: 'doc/src/docbkx/openstack-{oldmanual}/target/docbkx/webhelp/**'
target: '/'
remove-prefix: 'doc/src/docbkx/openstack-{oldmanual}/target/docbkx/webhelp/'
excludes: '**/*.xml,**/null*'
- ftp:
site: docs.openstack.org
source: 'doc/src/docbkx/openstack-{oldmanual}/target/docbkx/webhelp/**/atom.xml'
target: '/'
remove-prefix: 'doc/src/docbkx/openstack-{oldmanual}/target/docbkx/webhelp/'
- job-template:
name: openstack-{install}-{distribution}-old
project-type: maven
node: precise
concurrent: false
prebuilders:
- gerrit-git-prep
properties:
- inject:
script-file: /usr/local/jenkins/slave_scripts/docbook-properties.sh
properties-file: gerrit-doc.properties
prebuilders:
- gerrit-git-prep
maven:
maven-name: Maven3
root-module:
group-id: org.openstack.docs
artifact-id: openstack-guide
root-pom: doc/src/docbkx/{install}/pom.xml
goals: '-Doperating.system={system} -Dprofile.os={profileos} -Drelease.path.name=${{DOC_RELEASE_PATH}} -Dcomments.enabled=${{DOC_COMMENTS_ENABLED}} clean generate-sources -B'
publishers:
- console-log
- ftp:
site: docs.openstack.org
source: 'doc/src/docbkx/{install}/target/docbkx/webhelp/**'
target: ''
remove-prefix: 'doc/src/docbkx/{install}/target/docbkx/webhelp/'
excludes: '**/*.xml,**/null*'
- ftp:
site: docs.openstack.org
source: 'doc/src/docbkx/{install}/target/docbkx/webhelp/**/atom.xml'
target: ''
remove-prefix: 'doc/src/docbkx/{install}/target/docbkx/webhelp/'
- job-template:
name: 'gate-{name}-tox-doc-publish-{envlist}'
wrappers:
- timeout:
timeout: 40
fail: true
- timestamps
builders:
- gerrit-git-prep
- tox:
envlist: '{envlist}'
github-org: '{github-org}'
project: '{name}'
- assert-no-extra-files
publishers:
- console-log
- upload-docs-draft
- upload-doc-build-results
node: '{node}'
- job-group:
name: openstack-doc-jobs
jobs:
- gate-{name}-tox-{envlist}:
envlist: checkniceness
- gate-{name}-tox-{envlist}:
envlist: checksyntax
- gate-{name}-tox-{envlist}:
envlist: checkdeletions
- gate-{name}-tox-doc-publish-{envlist}:
envlist: checkbuild