0af9b2c178
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
81 lines
1.8 KiB
YAML
81 lines
1.8 KiB
YAML
# Jobs for the various *-specs repositories
|
|
|
|
- job-template:
|
|
name: '{name}-publish-specs'
|
|
node: bare-trusty
|
|
|
|
# We want to publish to org/name but the scp publisher cannot remove paths,
|
|
# so use a shell builder to move the content in the right place and publish
|
|
# from there.
|
|
builders:
|
|
- print-template-name:
|
|
template-name: "{template-name}"
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- docs:
|
|
project: '{name}'
|
|
- shell: |
|
|
mkdir `dirname $ZUUL_PROJECT`
|
|
mv doc/build/html $ZUUL_PROJECT
|
|
|
|
publishers:
|
|
- scp:
|
|
site: 'static.openstack.org'
|
|
files:
|
|
- target: 'specs/'
|
|
source: '$ZUUL_PROJECT/**'
|
|
keep-hierarchy: true
|
|
copy-after-failure: false
|
|
- console-log
|
|
|
|
- job-group:
|
|
name: specs-jobs
|
|
jobs:
|
|
- gate-{name}-docs
|
|
- gate-{name}-python27
|
|
- '{name}-publish-specs'
|
|
|
|
|
|
- builder:
|
|
name: generate-specs-site
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- tox:
|
|
envlist: specs
|
|
|
|
- job:
|
|
name: gate-generate-specs-site
|
|
description: Render the specs sites templates without publishing them.
|
|
node: bare-trusty
|
|
|
|
builders:
|
|
- generate-specs-site
|
|
|
|
- job:
|
|
name: publish-specs-site
|
|
description: Render the specs sites templates and publish them.
|
|
node: bare-trusty
|
|
|
|
builders:
|
|
- generate-specs-site
|
|
- static-publish-prep:
|
|
source: 'specs/output'
|
|
|
|
publishers:
|
|
- scp:
|
|
site: 'static.openstack.org'
|
|
files:
|
|
- target: 'specs/'
|
|
source: '**'
|
|
keep-hierarchy: true
|
|
copy-after-failure: false
|
|
- console-log
|
|
|
|
- job-group:
|
|
name: generate-specs-site-jobs
|
|
jobs:
|
|
- gate-generate-specs-site
|
|
- publish-specs-site
|