2013-06-05 20:31:51 +00:00
|
|
|
# simply copy the contents of the repository to the server, no building needed
|
|
|
|
- job:
|
|
|
|
name: infra-publications-publish
|
2014-06-19 12:46:08 -07:00
|
|
|
node: 'bare-precise || bare-trusty'
|
2013-06-05 20:31:51 +00:00
|
|
|
|
|
|
|
builders:
|
2014-03-21 12:00:06 -07:00
|
|
|
- revoke-sudo
|
2013-06-05 20:31:51 +00:00
|
|
|
- gerrit-git-prep
|
2013-10-17 09:40:16 -07:00
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -x
|
|
|
|
# NAME will either be the branch name or the tag name
|
|
|
|
NAME=`echo $ZUUL_REFNAME | sed 's/refs.tags.//'`
|
|
|
|
mkdir -p _out/$NAME
|
2013-12-27 19:33:46 +00:00
|
|
|
for FN in * ; do
|
|
|
|
if [ "_out" != "$FN" ] ; then
|
|
|
|
mv $FN _out/$NAME/
|
|
|
|
fi
|
|
|
|
done
|
2013-06-05 20:31:51 +00:00
|
|
|
|
|
|
|
publishers:
|
|
|
|
- ftp:
|
|
|
|
site: docs.openstack.org
|
2013-10-17 09:40:16 -07:00
|
|
|
source: '_out/**'
|
|
|
|
target: 'infra/publications/'
|
|
|
|
remove-prefix: '_out/'
|
2013-06-05 20:31:51 +00:00
|
|
|
excludes: ''
|
2013-07-09 10:53:27 -07:00
|
|
|
- console-log
|
2013-06-18 16:14:15 -07:00
|
|
|
|
|
|
|
- job:
|
|
|
|
name: infra-publications-publish-index
|
2014-06-19 12:46:08 -07:00
|
|
|
node: 'bare-precise || bare-trusty'
|
2013-06-18 16:14:15 -07:00
|
|
|
|
|
|
|
builders:
|
2014-03-21 12:00:06 -07:00
|
|
|
- revoke-sudo
|
2013-06-18 16:14:15 -07:00
|
|
|
- gerrit-git-prep
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
git reset --hard remotes/origin/master
|
2013-11-27 01:05:17 +00:00
|
|
|
if ! git clean -x -f -d -q ; then
|
|
|
|
sleep 1
|
|
|
|
git clean -x -f -d -q
|
|
|
|
fi
|
2013-06-18 16:14:15 -07:00
|
|
|
./make-index
|
|
|
|
|
|
|
|
publishers:
|
|
|
|
- ftp:
|
|
|
|
site: docs.openstack.org
|
|
|
|
source: 'output/**'
|
2013-06-20 20:01:34 +00:00
|
|
|
target: 'infra/publications/'
|
2013-06-18 16:14:15 -07:00
|
|
|
remove-prefix: 'output/'
|
|
|
|
excludes: ''
|
2013-07-09 10:53:27 -07:00
|
|
|
- console-log
|