project-config/jenkins/jobs/manuals-jobs.yaml
James E. Blair 20576bded0 Clean up proposal slave in a builder
So we can avoid using the jenkins-specific postbuildscript plugin,
move the proposal slave cleanup to a builder.  Run it first so that
it always runs.  Since we're running it first, we can't use it to
clean up our current workspace, so instead, ask it to clean up all
workspaces.

Change-Id: I54a187d643fb76f10cc11411d546c41348b5592e
2016-06-09 09:44:13 -07:00

134 lines
3.3 KiB
YAML

- job:
name: propose-openstack-manuals-updates
node: proposal
builders:
- proposal-slave-cleanup
- revoke-sudo
- link-logs
- net-info
- gerrit-git-prep
- shell: /usr/local/jenkins/slave_scripts/propose_update.sh openstack-manuals
publishers:
- console-log
- job-template:
name: 'gate-{name}-tox-doc-publish-{envlist}'
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 40
- timestamps
builders:
- print-template-name:
template-name: "{template-name}"
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- tox:
envlist: '{envlist}'
- assert-no-extra-files
publishers:
- console-log
- upload-docs-draft
- upload-doc-build-results
- job-template:
name: '{name}-tox-doc-{envlist}'
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 40
- timestamps
builders:
- print-template-name:
template-name: "{template-name}"
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- tox:
envlist: '{envlist}'
publishers:
- console-log
- upload-to-docs-site
- upload-doc-build-results
- job-group:
name: openstack-doc-jobs
jobs:
- gate-{name}-tox-{envlist}:
envlist: checklinks
- gate-{name}-tox-{envlist}:
envlist: checkniceness
- gate-{name}-tox-{envlist}:
envlist: checksyntax
- gate-{name}-tox-{envlist}:
envlist: checkdeletions
- gate-{name}-tox-doc-publish-{envlist}:
envlist: checkbuild
- '{name}-tox-doc-{envlist}':
envlist: publishdocs
- job-template:
name: gate-{name}-install-guide
description: Build and draft the Install Guide from source.
node: ubuntu-trusty
builders:
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- shell: "/usr/local/jenkins/slave_scripts/run-install-guide.sh"
publishers:
- console-log
- scp:
site: 'static.openstack.org'
files:
- target: 'docs-draft/$LOG_PATH'
source: 'install-guide/build/html/**'
keep-hierarchy: true
copy-after-failure: true
- job-template:
name: '{name}-install-guide'
description: Build and publish the Install Guide from source.
node: ubuntu-trusty
builders:
- gerrit-git-prep
- install-distro-packages
- revoke-sudo
- shell: "/usr/local/jenkins/slave_scripts/run-install-guide.sh"
publishers:
- ftp:
site: docs.openstack.org
source: 'install-guide/build/html/**'
target: 'project-install-guide/{service}'
remove-prefix: 'install-guide/build/html/'
- console-log
# Be aware that the variable "service" needs to be set when this job
# group is used.
# The "service" variable comes from the service catalog, which is
# based on the openstack/service-types-authority project as a
# canonical reference for names. When your project has spaces in the
# service entry, use dashes for the spaces, such as "object-storage"
# (the service is not swift).
- job-group:
name: install-guide-jobs
jobs:
- gate-{name}-install-guide
- '{name}-install-guide'