system-config/modules/openstack_project/files/jenkins_job_builder/config/api-jobs.yaml
annegentle dbee13315e Starting patch to get api-quick-start building with zuul/yaml.
Task list is at https://etherpad.openstack.org/api-site-structure.

Patchset updates the ftp copy in the publishing portion of the
api-quick-start build.

Patchset addresses comments, also indicates
doc-publisher-site: api.openstack.org

Patchset adds build for the api reference page.

Rebase against master.

Fixes the list of jobs and changes the name of the old api-site job
to ensure no duplication and clarity of which job is which.

Fixes errant tab.

Change-Id: Ifbefa75ba9bf63ca36e53dfda668fa9831203c06
Reviewed-on: https://review.openstack.org/15111
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2012-11-05 16:42:54 +00:00

227 lines
5.4 KiB
YAML

- job-group:
name: api-jobs
jobs:
- gate-{name}-merge
# 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: precise
triggers:
- zuul-post
builders:
- gerrit-git-prep
publishers:
- ftp:
site: api.openstack.org
source: 'www/**'
target: ''
remove-prefix: 'www/'
excludes: ''
- console-log-post
# this replaces the old openstack-api-site job in Jenkins
- job:
name: openstack-api-ref
project-type: maven
concurrent: false
node: precise
triggers:
- zuul-post
prebuilders:
- gerrit-git-prep
maven:
root-module:
group-id: org.openstack.docs
artifact-id: openstack-guide
root-pom: api-ref/pom.xml
goals: 'clean generate-sources'
publishers:
- console-log-post
- ftp:
site: api.openstack.org
source: 'api-ref/target/docbkx/html/api-ref/**'
target: ''
remove-prefix: 'api-ref/target/docbkx/html/api-ref/'
excludes: '**/*.xml,**/null*'
remote-directory: ''
# this replaces the old openstack-api-quick-start job
- job:
name: openstack-api-quick-start
project-type: maven
concurrent: false
node: precise
triggers:
- zuul-post
prebuilders:
- gerrit-git-prep
maven:
root-module:
group-id: org.openstack.docs
artifact-id: openstack-guide
root-pom: api-quick-start/pom.xml
goals: 'clean generate-sources'
publishers:
- console-log-post
- ftp:
site: api.openstack.org
source: 'doc/target/docbkx/webhelp/api-quick-start-onepager/**'
target: ''
remove-prefix: 'doc/target/docbkx/webhelp/api-quick-start-onepager/'
excludes: '**/*.xml,**/null*'
remote-directory: 'api/quick-start'
# this replaces the old openstack-netconn-api-doc job
- job:
name: network-api-v10
project-type: maven
concurrent: false
node: precise
triggers:
- zuul-post
prebuilders:
- gerrit-git-prep
maven:
root-module:
group-id: org.openstack.docs
artifact-id: openstack-guide
root-pom: doc/pom.xml
goals: 'clean generate-sources'
publishers:
- console-log-post
- ftp:
site: docs.openstack.org
source: 'doc/target/docbkx/webhelp/api/openstack-network/1.0/**'
target: ''
remove-prefix: 'doc/target/docbkx/webhelp'
excludes: '**/*.xml,**/null*'
- job:
name: openstack-object-api-doc
project-type: maven
concurrent: false
node: precise
triggers:
- zuul-post
prebuilders:
- gerrit-git-prep
maven:
root-module:
group-id: org.openstack.docs
artifact-id: openstack-object-api-guide
root-pom: openstack-object-storage-dev/pom.xml
goals: 'clean generate-sources'
publishers:
- console-log-post
- ftp:
site: docs.openstack.org
source: 'openstack-object-storage-dev/target/docbkx/webhelp/**'
target: ''
remove-prefix: 'openstack-object-storage-dev/target/docbkx/webhelp/'
excludes: '**/*.xml,**/null*'
- job:
name: openstack-compute-api-doc
project-type: maven
concurrent: false
node: precise
triggers:
- zuul-post
prebuilders:
- gerrit-git-prep
maven:
root-module:
group-id: org.openstack.docs
artifact-id: openstack-guide
root-pom: openstack-compute-api-2/pom.xml
goals: 'clean generate-sources'
publishers:
- console-log-post
- ftp:
site: docs.openstack.org
source: 'openstack-compute-api-2/target/docbkx/webhelp/api/openstack-compute/2/**'
target: ''
remove-prefix: 'openstack-compute-api-2/target/docbkx/webhelp'
excludes: '**/*.xml,**/null*'
# this replaces the old openstack-identity-api-doc job
- job:
name: identity-api-v20
project-type: maven
concurrent: false
node: precise
triggers:
- zuul-post
prebuilders:
- gerrit-git-prep
maven:
root-module:
group-id: org.openstack.identity
artifact-id: docs
root-pom: openstack-identity-api/pom.xml
goals: 'clean generate-sources'
publishers:
- console-log-post
- ftp:
site: docs.openstack.org
source: 'openstack-identity-api/target/docbkx/webhelp/api/openstack-identity-service/2.0/**'
target: ''
remove-prefix: 'openstack-identity-api/target/docbkx/webhelp/'
excludes: '**/*.xml,**/null*'
# this replaces the old openstack-image-api-doc job
- job:
name: image-api-v11
project-type: maven
concurrent: false
node: precise
triggers:
- zuul-post
maven:
root-module:
group-id: org.openstack.docs
artifact-id: openstack-guide
root-pom: openstack-image-service-api/pom.xml
goals: 'clean generate-sources'
publishers:
- console-log-post
- ftp:
site: docs.openstack.org
source: 'openstack-image-service-api/target/docbkx/webhelp/api/openstack-image-service/1.1/**'
target: ''
remove-prefix: 'openstack-image-service-api/target/docbkx/webhelp'
excludes: '**/*.xml,**/null*'