project-config/jenkins/jobs/api-jobs.yaml
Dong Ma cc6c8b6f73 nodejs-install macro can install different versions of node
This patch modifies the nodejs-install macro to install based on the
{version} parameter. All current uses of nodejs-install have been set to use
version '4'.

Change-Id: I73a0c5b801137d8700b16acb8375eaabfb668d5f
2016-07-20 06:54:06 -07:00

183 lines
4.5 KiB
YAML

- job:
name: openstack-api-ref
node: ubuntu-trusty
builders:
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- tox:
envlist: 'publishdocs-api'
publishers:
- upload-doc-build-results
- ftp:
site: developer.openstack.org
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/'
- console-log
- job:
name: openstack-api-ref-publish-lang
node: ubuntu-trusty
builders:
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- tox:
envlist: 'publishlang-api'
publishers:
- upload-doc-build-results
- ftp:
site: developer.openstack.org
source: 'publish-docs/api-ref/**'
target: '/'
remove-prefix: 'publish-docs/api-ref/'
- console-log
- job:
name: gate-build-swagger
description: Build and publish draft Swagger files from WADL migration.
node: ubuntu-trusty
builders:
- gerrit-git-prep
- nodejs-install:
version: 4
- install-distro-packages
- revoke-sudo
- tox:
envlist: 'makeswagger'
publishers:
- upload-swagger-draft
- console-log
- job-template:
name: gate-{name}-api-guide
description: Build and draft the API Guide from source.
node: ubuntu-trusty
builders:
- zuul-git-prep-upper-constraints
- install-distro-packages
- revoke-sudo
- tox:
envlist: 'api-guide'
publishers:
- upload-api-guide-draft
- console-log
- job-template:
name: '{name}-api-guide'
description: Build and publish the API Guide from source.
node: ubuntu-trusty
builders:
- zuul-git-prep-upper-constraints
- install-distro-packages
- revoke-sudo
- tox:
envlist: 'api-guide'
publishers:
- ftp:
site: developer.openstack.org
source: 'api-guide/build/html/**'
target: 'api-guide/{service}'
remove-prefix: 'api-guide/build/html/'
- console-log
# Be aware that the variable "service" needs to be set when this job
# group is used.
# The "service" variable comes from the service catalog, which is
# based on the openstack/service-types-authority project as a
# canonical reference for names. When your project has spaces in the
# service entry, use dashes for the spaces, such as "object-storage"
# (the service is not swift).
- job-group:
name: api-guide-jobs
jobs:
- gate-{name}-api-guide
- '{name}-api-guide'
- job-template:
name: gate-{name}-api-ref
description: Build and draft the API Reference from source.
node: ubuntu-trusty
builders:
- zuul-git-prep-upper-constraints
- install-distro-packages
- revoke-sudo
- tox:
envlist: 'api-ref'
publishers:
- upload-api-ref-draft
- console-log
- job-template:
name: '{name}-api-ref'
description: Build and publish the API Reference from source.
node: ubuntu-trusty
builders:
- zuul-git-prep-upper-constraints
- install-distro-packages
- revoke-sudo
- tox:
envlist: 'api-ref'
publishers:
- ftp:
site: developer.openstack.org
source: 'api-ref/build/html/**'
target: 'api-ref/{service}'
remove-prefix: 'api-ref/build/html/'
- console-log
# Be aware that the variable "service" needs to be
# set when this job group is used.
# The "service" variable comes from the service catalog, which is
# based on the openstack/service-types-authority project as a
# canonical reference for names. When your project has spaces in the
# service entry, use dashes for the spaces, such as "object-storage"
# (the service is not swift).
- job-group:
name: api-ref-jobs
jobs:
- gate-{name}-api-ref
- '{name}-api-ref'
- job:
name: python-openstacksdk-docs
description: Build and publish the Python SDK docs from source.
node: ubuntu-trusty
builders:
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- docs
publishers:
- ftp:
site: developer.openstack.org
source: 'doc/build/html/**'
target: 'sdks/python/openstacksdk'
remove-prefix: 'doc/build/html/'
excludes: ''
- console-log