Publish *-specs better

Do not include doc/build/html in the URL.

Thus, instead of publishing keystone-specs to:
http://specs.openstack.org/openstack/keystone-specs/doc/build/html/
publish instead to:
http://specs.openstack.org/openstack/keystone-specs/

Since the scp plugin does not allow removal of the path, we have to
copy the content up and publish from there.

Change-Id: I09f4654648f9da74f2e485d1c90082cfc835ab89
This commit is contained in:
Andreas Jaeger 2014-07-30 17:33:43 +02:00
parent 552542d884
commit bc1063578f

View File

@ -4,20 +4,27 @@
name: '{name}-publish-specs' name: '{name}-publish-specs'
node: 'bare-precise || bare-trusty' node: 'bare-precise || bare-trusty'
# We want to publish to {github-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: builders:
- revoke-sudo - revoke-sudo
- gerrit-git-prep - gerrit-git-prep
- docs: - docs:
github-org: '{github-org}' github-org: '{github-org}'
project: '{name}' project: '{name}'
- shell: |
mkdir {github-org}
mv doc/build/html {github-org}/{name}
publishers: publishers:
- scp: - scp:
site: 'static.openstack.org' site: 'static.openstack.org'
files: files:
- target: 'specs/{github-org}/{name}' - target: 'specs/'
source: 'doc/build/html/**' source: '{github-org}/{name}/**'
keep-hierarchy: true keep-hierarchy: true
copy-after-failure: false
- console-log - console-log
- job-group: - job-group: