1aec2939d0
The content is generated in specs/output and we need to publish it directly in the specs directory. Move files around so that we can publish to it since the scp publisher does not allow removal of paths. Change-Id: Icd8af32b47c04ae207471007435c1dac45471a18
79 lines
1.8 KiB
YAML
79 lines
1.8 KiB
YAML
# Jobs for the various *-specs repositories
|
|
|
|
- job-template:
|
|
name: '{name}-publish-specs'
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
# We want to publish to org/name but the scp publisher cannot remove paths,
|
|
# so use a shell builder to move the content in the right place and publish
|
|
# from there.
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- docs:
|
|
project: '{name}'
|
|
- shell: |
|
|
mkdir `dirname $ZUUL_PROJECT`
|
|
mv doc/build/html $ZUUL_PROJECT
|
|
|
|
publishers:
|
|
- scp:
|
|
site: 'static.openstack.org'
|
|
files:
|
|
- target: 'specs/'
|
|
source: '$ZUUL_PROJECT/**'
|
|
keep-hierarchy: true
|
|
copy-after-failure: false
|
|
- console-log
|
|
|
|
- job-group:
|
|
name: specs-jobs
|
|
jobs:
|
|
- gate-{name}-docs
|
|
- gate-{name}-python27
|
|
- '{name}-publish-specs'
|
|
|
|
|
|
- builder:
|
|
name: generate-specs-site
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- tox:
|
|
envlist: specs
|
|
|
|
- job:
|
|
name: check-generate-specs-site
|
|
description: Render the specs sites templates without publishing them.
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
builders:
|
|
- generate-specs-site
|
|
|
|
- job:
|
|
name: publish-specs-site
|
|
description: Render the specs sites templates and publish them.
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
builders:
|
|
- generate-specs-site
|
|
- static-publish-prep:
|
|
source: 'specs/output'
|
|
|
|
publishers:
|
|
- scp:
|
|
site: 'static.openstack.org'
|
|
files:
|
|
- target: 'specs/'
|
|
source: '**'
|
|
keep-hierarchy: true
|
|
copy-after-failure: false
|
|
- console-log
|
|
|
|
- job-group:
|
|
name: generate-specs-site-jobs
|
|
jobs:
|
|
- check-generate-specs-site
|
|
- publish-specs-site
|