Adds swagger migrate and copy job for api-site repo

A tox build task should copy Swagger JSON files for
download on the developer.openstack.org website.

Depends-On: Ifb570e42b29ec8f01889c982b7cd700754a0e5f7

Change-Id: I4317a2029affbae1e9ab7699a470bac3c5b8de07
This commit is contained in:
Anne Gentle 2016-01-19 12:35:27 -06:00 committed by Anne Gentle
parent 1e2adfc132
commit d0d5e0b0dd
3 changed files with 33 additions and 0 deletions

View File

@ -39,6 +39,11 @@
source: 'publish-docs/api-ref/**'
target: '/'
remove-prefix: 'publish-docs/api-ref/'
- ftp:
site: developer.openstack.org
source: 'swagger/**'
target: 'draft/swagger/'
remove-prefix: 'swagger/'
- job:
name: openstack-api-ref-publish-lang
@ -59,6 +64,21 @@
target: '/'
remove-prefix: 'publish-docs/api-ref/'
- job:
name: gate-build-swagger
description: Build and publish draft Swagger files from WADL migration.
node: bare-trusty
builders:
- revoke-sudo
- gerrit-git-prep
- tox:
envlist: 'makeswagger'
publishers:
- console-log
- upload-swagger-draft
- job:
name: gate-compute-api-guide
description: Build and draft the Compute API Guide from nova source.

View File

@ -910,6 +910,17 @@
keep-hierarchy: true
copy-after-failure: true
- publisher:
name: upload-swagger-draft
publishers:
- scp:
site: 'static.openstack.org'
files:
- target: 'docs-draft/$LOG_PATH'
source: 'swagger/**'
keep-hierarchy: true
copy-after-failure: true
- publisher:
name: upload-releasenotes-draft
publishers:

View File

@ -3836,8 +3836,10 @@ projects:
- name: openstack-doc-translation
check:
- gate-api-site-tox-checklang
- gate-build-swagger
gate:
- gate-api-site-tox-checklang
- gate-build-swagger
post:
- api-site-upstream-translation-update
- openstack-api-ref