Andreas Jaeger 3b7a40d7c1 Fix publishing of API Reference
We are publishing at api.openstack.org top-level but the job
is copying to an api-ref subdirectory. Changing the Jenkins setup is the
better solution here than copying directly into publish-docs - it would
create a more complex script.

Remove macro upload-to-api-site and add the publisher directly to the
openstack-api-ref job since this is an exception from the other rules -
and this is the only job publishing to api.o.o.

Change-Id: Ib5511ed7cbf8dfc90cb42e295fe68f39aa1e0a8f
2014-02-22 19:53:22 +01:00

85 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}'
- 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-doc-build-results
- ftp:
site: api.openstack.org
source: 'publish-docs/api-ref/**'
target: '/'
remove-prefix: 'publish-docs/api-ref/'
# 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