project-config/jenkins/jobs/infra-publications.yaml
Anita Kuno 1d21cd635f Reorganizes project-config
This repo was created from filter branching the openstack-infra/
config repo. This process brought a lot of cruft with it in the
form of directories that we no longer need. This patch removes
that cruft so we begin with a tidier repo.

Change-Id: Ibffad1b11c0c5f84eedfb0365369f60c4961a0f3
2014-09-25 11:41:04 -04:00

53 lines
1.3 KiB
YAML

# simply copy the contents of the repository to the server, no building needed
- job:
name: infra-publications-publish
node: 'bare-precise || bare-trusty'
builders:
- revoke-sudo
- gerrit-git-prep
- 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
for FN in * ; do
if [ "_out" != "$FN" ] ; then
mv $FN _out/$NAME/
fi
done
publishers:
- ftp:
site: docs.openstack.org
source: '_out/**'
target: 'infra/publications/'
remove-prefix: '_out/'
excludes: ''
- console-log
- job:
name: infra-publications-publish-index
node: 'bare-precise || bare-trusty'
builders:
- revoke-sudo
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
git reset --hard remotes/origin/master
if ! git clean -x -f -d -q ; then
sleep 1
git clean -x -f -d -q
fi
./make-index
publishers:
- ftp:
site: docs.openstack.org
source: 'output/**'
target: 'infra/publications/'
remove-prefix: 'output/'
excludes: ''
- console-log