Properly publish specs pages to top-level

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
This commit is contained in:
Andreas Jaeger 2015-01-21 20:08:44 +01:00 committed by Jeremy Stanley
parent eaa45dd5c8
commit 1aec2939d0
3 changed files with 20 additions and 11 deletions

View File

@ -398,6 +398,21 @@
echo "Network neighbors..."
ip neighbor show
- builder:
name: static-publish-prep
# We want to publish to the docroot 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:
- shell: |
#!/bin/bash -xe
rm -rf ,content
mv $source ,content
rm -rf .[^.]* [^,]*
mv ,content/.[^.]* ,content/* ./
rm -r ,content
- builder:
name: install-buck
builders:

View File

@ -58,13 +58,15 @@
builders:
- generate-specs-site
- static-publish-prep:
source: 'specs/output'
publishers:
- scp:
site: 'static.openstack.org'
files:
- target: 'specs/'
source: 'specs/output/**'
source: '**'
keep-hierarchy: true
copy-after-failure: false
- console-log

View File

@ -4,21 +4,13 @@
name: static-{name}-publish
node: 'bare-precise || bare-trusty'
# We want to publish to the docroot 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: |
#!/bin/bash -xe
rm -rf ,html
mv doc/build/html ,html
rm -rf .[^.]* [^,]*
mv ,html/.[^.]* ,html/* ./
rm -r ,html
- static-publish-prep:
source: 'doc/build/html'
publishers:
- scp: