project-config/jenkins/jobs/infra-publications.yaml
Jeremy Stanley 0af9b2c178 Get rid of precise||trusty job node declarations
Between the Icehouse and Juno releases, OpenStack changed its
supported Ubuntu LTS platform from Precise to Trusty. In support of
continuing testing stable/icehouse and prior branches on Precise
while starting to test newer branches on Trusty, a branch-based
decision tree was introduced into our Zuul configuration by way of
complex parameter functions with an ever growing list of regular
expression matches on job names.

Now that Icehouse is EOL (in fact, Juno is too) this simply adds
unnecessary complexity and an attractive nuisance for cargo-cult
copying into new job and job-template definitions which don't even
need it. In preparation to remove the associated parameter
functions, get rid of multiple labels in all jobs and set them to
whatever label Zuul would ultimately select.

This change touches a vast number, possibly a majority, of our jobs
and so manual jenkins-jobs updates on all Jenkins masters will be
needed after this merges, before it's safe to approve the
corresponding Zuul configuration cleanup.

Change-Id: Ic952ee02da2c77fe2ace81c4e2fa87531be6119c
2015-12-21 20:52:17 +00: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-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-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