Andreas Jaeger 96d7ee6b2e Remove maven usage from api-jobs.yaml
Change all jobs to openstack-doc-tools setup.

Introduce new job template '{name}-tox-doc-{envlist}' that is
used for all api jobs that publish to docs.openstack.org.

Introduce new publishers 'upload-to-docs-site' and 'upload-to-api-site'.

The job names are changed as follows:

* openstack-api-quick-start -> api-site-tox-doc-publishdocs
* openstack-api-ref: Converted from maven to freestyle.
* block-api-v2.0 -> volume-api-tox-doc-publishdocs
* compute-api-v2.0 -> compute-api-tox-doc-publishdocs
* identity-api-v2.0, identity-api-v3 -> identity-api-tox-doc-publishdocs
  (handles also api v3)
* image-api-v1.1, image-api-v2.0 -> both handled by
  image-api-tox-doc-publishdocs
* network-api-v1, network-api-v2 -> netconn-api-tox-doc-publishdocs
* object-api-v1.0 -> object-api-tox-doc-publishdocs

ATTENTION root team:
This changes openstack-api-ref from maven to freestyle. Please delete
openstack-api-ref after approval so that it gets recreated correctly.

Change-Id: I8b91bfa462224f0e6114ce2b8cb80942810b0a0e
2014-02-18 19:45:43 +01:00

82 lines
1.7 KiB
YAML

- job-template:
name: '{name}-tox-doc-{envlist}'
wrappers:
- timeout:
timeout: 40
fail: true
- timestamps
builders:
- gerrit-git-prep
- tox:
envlist: '{envlist}'
github-org: '{github-org}'
project: '{name}'
publishers:
- console-log
- upload-to-docs-site
- upload-doc-build-results
node: '{node}'
# this replaces the old openstack-api-site job in Jenkins
- job:
name: openstack-api-ref
concurrent: false
node: bare-precise
builders:
- gerrit-git-prep
- tox:
envlist: 'publishdocs-api'
github-org: 'openstack'
project: 'api-site'
publishers:
- console-log
- upload-to-api-site
- upload-doc-build-results
# in zuul/layout.yaml specified to only run against master branch.
# this copies static files from www
- job:
name: openstack-api-site
concurrent: false
node: bare-precise
builders:
- gerrit-git-prep
publishers:
- ftp:
site: api.openstack.org
source: 'www/**'
target: ''
remove-prefix: 'www/'
excludes: ''
- console-log
- job:
name: compute-api-v2.0-wadl
concurrent: false
node: bare-precise
builders:
- gerrit-git-prep
- shell: /usr/local/jenkins/slave_scripts/run-xmllint.sh openstack-compute-api-2/src/os-compute-2.wadl
publishers:
- ftp:
site: docs.openstack.org
source: 'target/**'
target: 'api/openstack-compute/2/wadl/'
remove-prefix: 'target/'
excludes: '**/*.xml,**/null*'
- console-log