Add docs publish docs for grenade

This commit adds docs jobs to grenade. Previously grenade didn't have
support for building docs and just relied on having rst files in the
repo. Now that doc building mechanism from devstack was ported over
to grenade this adds the necessary jobs to publish the resulting
rendered documentation.

Change-Id: I17d62fba8a8cd49f2e4bb777df02e3313119b16b
Depends-On: I505c1d5e250d103b6e0f9da008f44d3ce28df94f
This commit is contained in:
Matthew Treinish 2015-08-28 19:23:22 -04:00
parent b2b5cc365e
commit d106eee750
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
2 changed files with 45 additions and 0 deletions

37
jenkins/jobs/grenade.yaml Normal file
View File

@ -0,0 +1,37 @@
# Grenade does not support "python setup.py publish_sphinx", thus
# we cannot use the normal docs jobs.
- job:
name: grenade-publish-docs
node: 'bare-precise || bare-trusty'
builders:
- revoke-sudo
- gerrit-git-prep
- tox:
envlist: 'docs'
publishers:
- ftp:
site: 'docs.openstack.org'
source: 'doc/build/html/**'
target: 'developer/grenade'
remove-prefix: 'doc/build/html'
excludes: ''
- console-log
- zuul-swift-upload-console-log
- job:
name: gate-grenade-publish-docs
node: 'bare-precise || bare-trusty'
builders:
- revoke-sudo
- gerrit-git-prep
- tox:
envlist: 'docs'
publishers:
- console-log
- upload-sphinx-draft
- zuul-swift-upload-console-log
# TODO(jhesketh): Add job for uploading built docs

View File

@ -646,6 +646,10 @@ jobs:
all-files-match-any:
- ^.*\.rst$
- ^doc/.*$
- project: ^openstack-dev/grenade$
all-files-match-any:
- ^.*\.rst$
- ^doc/.*$
- project: ^openstack/networking-midonet$
all-files-match-any:
- ^.*\.rst$
@ -5175,12 +5179,16 @@ projects:
- gate-grenade-dsvm-partial-ncpu
- gate-grenade-dsvm-ironic-sideways
- gate-grenade-dsvm-heat-nv
- gate-grenade-publish-docs
gate:
- gate-grenade-dsvm
- gate-grenade-dsvm-forward
- gate-grenade-dsvm-neutron
- gate-grenade-dsvm-partial-ncpu
- gate-grenade-dsvm-ironic-sideways
- gate-grenade-publish-docs
post:
- grenade-publish-docs
experimental:
- gate-grenade-dsvm-multinode
- gate-grenade-dsvm-neutron-forward