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:
parent
eaa45dd5c8
commit
1aec2939d0
@ -398,6 +398,21 @@
|
|||||||
echo "Network neighbors..."
|
echo "Network neighbors..."
|
||||||
ip neighbor show
|
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:
|
- builder:
|
||||||
name: install-buck
|
name: install-buck
|
||||||
builders:
|
builders:
|
||||||
|
@ -58,13 +58,15 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- generate-specs-site
|
- generate-specs-site
|
||||||
|
- static-publish-prep:
|
||||||
|
source: 'specs/output'
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- scp:
|
- scp:
|
||||||
site: 'static.openstack.org'
|
site: 'static.openstack.org'
|
||||||
files:
|
files:
|
||||||
- target: 'specs/'
|
- target: 'specs/'
|
||||||
source: 'specs/output/**'
|
source: '**'
|
||||||
keep-hierarchy: true
|
keep-hierarchy: true
|
||||||
copy-after-failure: false
|
copy-after-failure: false
|
||||||
- console-log
|
- console-log
|
||||||
|
@ -4,21 +4,13 @@
|
|||||||
name: static-{name}-publish
|
name: static-{name}-publish
|
||||||
node: 'bare-precise || bare-trusty'
|
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:
|
builders:
|
||||||
- revoke-sudo
|
- revoke-sudo
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- docs:
|
- docs:
|
||||||
project: '{name}'
|
project: '{name}'
|
||||||
- shell: |
|
- static-publish-prep:
|
||||||
#!/bin/bash -xe
|
source: 'doc/build/html'
|
||||||
rm -rf ,html
|
|
||||||
mv doc/build/html ,html
|
|
||||||
rm -rf .[^.]* [^,]*
|
|
||||||
mv ,html/.[^.]* ,html/* ./
|
|
||||||
rm -r ,html
|
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- scp:
|
- scp:
|
||||||
|
Loading…
Reference in New Issue
Block a user