
This change configures all jobs to use the new build-timeout macro. This macro enables the following: 1. exports a 'BUILD_TIMEOUT' environment variable which is set to the timeout value. 2. sets the build to a failed state when a timeout occurs. Change-Id: Iebda7cccc2f808805a9b2d744c11892d1bf3bdef
269 lines
4.9 KiB
YAML
269 lines
4.9 KiB
YAML
- job-template:
|
|
name: '{name}-coverage'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 40
|
|
- timestamps
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- coverage:
|
|
github-org: '{github-org}'
|
|
project: '{name}'
|
|
|
|
publishers:
|
|
- coverage-log
|
|
- console-log
|
|
|
|
node: '{node}'
|
|
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-pep8'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- pep8:
|
|
github-org: '{github-org}'
|
|
project: '{name}'
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
node: '{node}'
|
|
|
|
- job-template:
|
|
name: 'experimental-swift-logs-{name}-pep8'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- pep8:
|
|
github-org: '{github-org}'
|
|
project: '{name}'
|
|
- zuul_swift_upload_console_log
|
|
|
|
node: '{node}'
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-pylint'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- pylint:
|
|
github-org: '{github-org}'
|
|
project: '{name}'
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
node: '{node}'
|
|
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-python26'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 70
|
|
- timestamps
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- python26:
|
|
github-org: '{github-org}'
|
|
project: '{name}'
|
|
- assert-no-extra-files
|
|
|
|
publishers:
|
|
- test-results
|
|
- console-log
|
|
|
|
node: bare-centos6
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-python27'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 50
|
|
- timestamps
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- python27:
|
|
github-org: '{github-org}'
|
|
project: '{name}'
|
|
- assert-no-extra-files
|
|
|
|
publishers:
|
|
- test-results
|
|
- console-log
|
|
|
|
node: '{node}'
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-python33'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 40
|
|
- timestamps
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- python33:
|
|
github-org: '{github-org}'
|
|
project: '{name}'
|
|
- assert-no-extra-files
|
|
|
|
publishers:
|
|
- test-results
|
|
- console-log
|
|
|
|
node: py3k-precise
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-pypy'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 40
|
|
- timestamps
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- pypy:
|
|
github-org: '{github-org}'
|
|
project: '{name}'
|
|
- assert-no-extra-files
|
|
|
|
publishers:
|
|
- test-results
|
|
- console-log
|
|
|
|
node: py3k-precise
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-docs'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- docs:
|
|
github-org: '{github-org}'
|
|
project: '{name}'
|
|
|
|
publishers:
|
|
- console-log
|
|
- upload-sphinx-draft
|
|
|
|
node: '{node}'
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-tox-{envlist}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 40
|
|
- timestamps
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- tox:
|
|
envlist: '{envlist}'
|
|
github-org: '{github-org}'
|
|
project: '{name}'
|
|
- assert-no-extra-files
|
|
|
|
publishers:
|
|
- test-results
|
|
- console-log
|
|
|
|
node: '{node}'
|
|
|
|
- job-template:
|
|
name: '{name}-tarball'
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- tarball:
|
|
github-org: '{github-org}'
|
|
project: '{name}'
|
|
|
|
publishers:
|
|
- tarball:
|
|
project: '{name}'
|
|
site: '{tarball-site}'
|
|
- wheel:
|
|
project: '{name}'
|
|
site: '{tarball-site}'
|
|
- console-log
|
|
|
|
|
|
- job-template:
|
|
name: '{name}-branch-tarball'
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- tarball:
|
|
github-org: '{github-org}'
|
|
project: '{name}'
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
BRANCH=$ZUUL_REFNAME
|
|
BRANCH_PATH=`echo $BRANCH | tr / -`
|
|
mv dist/*.tar.gz dist/{name}-$BRANCH_PATH.tar.gz
|
|
|
|
publishers:
|
|
- tarball:
|
|
project: '{name}'
|
|
site: '{tarball-site}'
|
|
- console-log
|
|
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-requirements'
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
/usr/local/jenkins/slave_scripts/project-requirements-change.py $ZUUL_BRANCH
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
|
|
- job-group:
|
|
name: python-jobs
|
|
jobs:
|
|
- '{name}-coverage'
|
|
- 'gate-{name}-pep8'
|
|
- 'gate-{name}-python26'
|
|
- 'gate-{name}-python27'
|
|
- 'gate-{name}-python33'
|
|
- 'gate-{name}-pypy'
|
|
- 'gate-{name}-docs'
|
|
- 'gate-{name}-requirements'
|
|
- '{name}-tarball'
|
|
- '{name}-branch-tarball'
|
|
# pylint isn't standard
|
|
# gate-{name}-tox-{envlist} also isn't standard, but is reserved for
|
|
# projects that want to run specific jobs via tox
|