project-config/jenkins/jobs/openstack-publish-jobs.yaml
Andreas Jaeger ea85c42219 Add client-publish-job group
We defined with the openstack-publish-jobs group both doc and
doc-tags-only jobs, but each repos uses either of these, never both of
them.

Create a new openstack-client-publish-jobs group and use that as
appropriate. Remove the docs-tags-only job from
openstack-publish-jobs.

This removes 387 unused jobs.

Change-Id: I441c75debe9e9f744790a60cc51d93eef6460a9c
2016-07-04 20:48:04 +02:00

121 lines
3.1 KiB
YAML

- job-template:
name: '{name}-docs'
node: ubuntu-trusty
builders:
- print-template-name:
template-name: "{template-name}"
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- docs
publishers:
- ftp:
site: '{doc-publisher-site}'
source: 'doc/build/html/**'
target: 'developer/{name}'
remove-prefix: 'doc/build/html'
excludes: ''
- console-log
- job-template:
name: '{name}-docs-tags-only'
description: Publish infra documents, use when only publish on tag
node: ubuntu-trusty
builders:
- print-template-name:
template-name: "{template-name}"
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- docs-tags-only-env:
env: venv
publishers:
- ftp:
site: '{doc-publisher-site}'
source: 'doc/build/html/**'
target: 'developer/{name}'
remove-prefix: 'doc/build/html'
excludes: ''
- console-log
# Publish releasenotes to docs.openstack.org/releasenotes/. This is
# always published from master branch.
- job-template:
name: '{name}-releasenotes'
node: ubuntu-trusty
builders:
- print-template-name:
template-name: "{template-name}"
- branch-git-prep:
branch: master
- install-distro-packages
- revoke-sudo
- shell: |
#!/bin/bash -xe
#
# When building the release notes after a patch merges we
# always want to build from master. Reno will find release
# notes on other branches and insert them into the right
# places in the documentation build, but only master has all
# of the appropriate branch-specific input files for
# Sphinx. The branch-git-prep builder checks out the
# repository where the current patch just merged, but it
# honors zuul configuration variables that may cause it to
# check out a patch merged into a stable branch. So, reset
# what we've checked out to master.
#
git checkout origin/master
- tox:
envlist: 'releasenotes'
publishers:
- ftp:
site: '{doc-publisher-site}'
source: 'releasenotes/build/html/**'
target: 'releasenotes/{name}'
remove-prefix: 'releasenotes/build/html'
excludes: ''
- console-log
- job-template:
name: 'gate-{name}-releasenotes'
node: ubuntu-trusty
builders:
- print-template-name:
template-name: "{template-name}"
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- tox:
envlist: 'releasenotes'
publishers:
- upload-releasenotes-draft
- console-log
- job-group:
name: openstack-publish-jobs
jobs:
- '{name}-docs'
- job-group:
name: openstack-client-publish-jobs
jobs:
- '{name}-docs-tags-only'
- job-group:
name: openstack-releasenotes-jobs
jobs:
- 'gate-{name}-releasenotes'
- '{name}-releasenotes'