project-config/jenkins/jobs/infra-publications.yaml
Andreas Jaeger c7167cf9b6 Convert infra* jobs to ubuntu-trusty
Convert infra* jobs that explicitely set bare-trusty to use
ubuntu-trusty.

Change-Id: Iad060e88d81fc1f73a65f38e5dbf251426c07fa7
2016-03-04 17:38:30 +01:00

55 lines
1.4 KiB
YAML

# simply copy the contents of the repository to the server, no building needed
- job:
name: infra-publications-publish
node: ubuntu-trusty
builders:
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- 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: ubuntu-trusty
builders:
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- 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