system-config/modules/openstack_project/files/jenkins_job_builder/config/infra-publications.yaml
Clark Boylan b1774fded0 Prep JJB jobs for running on bare-trusty
We need to make sure that jenkins will run jobs on bare-trusty before we
can migrate and projects to bare-trusty. So do the initial JJB prep now,
then we can do a project at a time.

Change-Id: I6e80567730bff8d387d8a5b87d7368ea3be6d3ab
2014-06-24 16:37:40 -07: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