![Khai Do](/assets/img/avatar_default.png)
* Add jobs for dev zuul-launcher which will run on zuul-dev.o.o * Update dev zuul layout with same pipelines defined in prod layout. * Setup zuul-dev layout to trigger on review-dev projects. Change-Id: Ief59c0b52b196b614f8a7da859c3ba024813f1a3
258 lines
6.6 KiB
YAML
258 lines
6.6 KiB
YAML
includes:
|
|
- python-file: openstack_functions.py
|
|
|
|
pipelines:
|
|
- name: check
|
|
description: Newly uploaded patchsets enter this pipeline to receive an initial +/-1 Verified vote from Jenkins.
|
|
success-message: Build succeeded (check pipeline).
|
|
failure-message: Build failed (check pipeline). For information on how to proceed, see http://docs.openstack.org/infra/manual/developers.html#automated-testing
|
|
manager: IndependentPipelineManager
|
|
source: gerrit
|
|
precedence: normal
|
|
require:
|
|
open: True
|
|
current-patchset: True
|
|
trigger:
|
|
gerrit:
|
|
- event: patchset-created
|
|
- event: change-restored
|
|
- event: comment-added
|
|
comment: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*(recheck|reverify)
|
|
- event: comment-added
|
|
require-approval:
|
|
- verified: [-1, -2]
|
|
username: jenkins
|
|
approval:
|
|
- workflow: 1
|
|
success:
|
|
gerrit:
|
|
verified: 1
|
|
failure:
|
|
gerrit:
|
|
verified: -1
|
|
|
|
- name: gate
|
|
description: Changes that have been approved by core developers are enqueued in order in this pipeline, and if they pass tests in Jenkins, will be merged.
|
|
success-message: Build succeeded (gate pipeline).
|
|
failure-message: Build failed (gate pipeline). For information on how to proceed, see http://docs.openstack.org/infra/manual/developers.html#automated-testing
|
|
manager: DependentPipelineManager
|
|
source: gerrit
|
|
precedence: high
|
|
require:
|
|
open: True
|
|
current-patchset: True
|
|
approval:
|
|
- verified: [1, 2]
|
|
username: jenkins
|
|
- workflow: 1
|
|
trigger:
|
|
gerrit:
|
|
- event: comment-added
|
|
approval:
|
|
- workflow: 1
|
|
- event: comment-added
|
|
approval:
|
|
- verified: 1
|
|
username: jenkins
|
|
start:
|
|
gerrit:
|
|
verified: 0
|
|
success:
|
|
gerrit:
|
|
verified: 2
|
|
submit: true
|
|
failure:
|
|
gerrit:
|
|
verified: -2
|
|
window-floor: 20
|
|
window-increase-factor: 2
|
|
|
|
- name: post
|
|
description: This pipeline runs jobs that operate after each change is merged.
|
|
manager: IndependentPipelineManager
|
|
source: gerrit
|
|
precedence: low
|
|
trigger:
|
|
gerrit:
|
|
- event: ref-updated
|
|
ref: ^(?!refs/).*$
|
|
|
|
- name: release-post
|
|
description: This pipeline runs release-process-critical jobs that operate after specific changes are merged.
|
|
manager: IndependentPipelineManager
|
|
source: gerrit
|
|
precedence: high
|
|
trigger:
|
|
gerrit:
|
|
- event: ref-updated
|
|
ref: ^(?!refs/).*$
|
|
|
|
- name: tag
|
|
description: This pipeline runs jobs in response to any tag event.
|
|
manager: IndependentPipelineManager
|
|
source: gerrit
|
|
precedence: high
|
|
trigger:
|
|
gerrit:
|
|
- event: ref-updated
|
|
ref: ^refs/tags/.*$
|
|
|
|
- name: pre-release
|
|
description: This pipeline runs jobs on projects in response to pre-release tags.
|
|
manager: IndependentPipelineManager
|
|
source: gerrit
|
|
precedence: high
|
|
trigger:
|
|
gerrit:
|
|
- event: ref-updated
|
|
ref: ^refs/tags/[0-9]+(\.[0-9]+)*(a|b|rc)[0-9]+$
|
|
|
|
- name: release
|
|
description: When a commit is tagged as a release, this pipeline runs jobs that publish archives and documentation.
|
|
manager: IndependentPipelineManager
|
|
source: gerrit
|
|
precedence: high
|
|
trigger:
|
|
gerrit:
|
|
- event: ref-updated
|
|
ref: ^refs/tags/[0-9]+(\.[0-9]+)*$
|
|
|
|
- name: silent
|
|
description: This pipeline is used for silently testing new jobs.
|
|
manager: IndependentPipelineManager
|
|
source: gerrit
|
|
precedence: low
|
|
trigger:
|
|
gerrit:
|
|
- event: patchset-created
|
|
- event: comment-added
|
|
comment: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*(recheck|reverify)
|
|
|
|
- name: experimental
|
|
description: On-demand pipeline for requesting a run against a set of jobs that are not yet gating. Leave review comment of "check experimental" to run jobs in this pipeline.
|
|
success-message: Build succeeded (experimental pipeline).
|
|
failure-message: Build failed (experimental pipeline).
|
|
manager: IndependentPipelineManager
|
|
source: gerrit
|
|
precedence: normal
|
|
trigger:
|
|
gerrit:
|
|
- event: comment-added
|
|
comment: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*check experimental\s*$
|
|
success:
|
|
gerrit: {}
|
|
failure:
|
|
gerrit: {}
|
|
|
|
- name: periodic
|
|
description: Jobs in this queue are triggered on a timer.
|
|
manager: IndependentPipelineManager
|
|
source: gerrit
|
|
precedence: low
|
|
trigger:
|
|
timer:
|
|
- time: '0 * * * *'
|
|
|
|
- name: merge-check
|
|
description: >
|
|
Each time a change merges, this pipeline verifies that all open changes
|
|
on the same project are still mergeable.
|
|
failure-message: Build failed (merge-check pipeline).
|
|
manager: IndependentPipelineManager
|
|
ignore-dependencies: true
|
|
source: gerrit
|
|
precedence: low
|
|
require:
|
|
approval:
|
|
- verified: [1, 2]
|
|
username: jenkins
|
|
trigger:
|
|
zuul:
|
|
- event: project-change-merged
|
|
merge-failure:
|
|
gerrit:
|
|
verified: -1
|
|
|
|
- name: periodic-stable
|
|
description: Periodic checks of the stable branches.
|
|
manager: IndependentPipelineManager
|
|
source: gerrit
|
|
precedence: low
|
|
trigger:
|
|
timer:
|
|
- time: '1 6 * * *'
|
|
|
|
|
|
project-templates:
|
|
- name: merge-check
|
|
merge-check:
|
|
- noop
|
|
|
|
- name: noop-jobs
|
|
check:
|
|
- noop
|
|
gate:
|
|
- noop
|
|
post:
|
|
- noop
|
|
tag:
|
|
- noop
|
|
pre-release:
|
|
- noop
|
|
release:
|
|
- noop
|
|
experimental:
|
|
- noop
|
|
silent:
|
|
- noop
|
|
|
|
- name: gate-noop-jobs
|
|
check:
|
|
- gate-noop
|
|
gate:
|
|
- gate-noop
|
|
post:
|
|
- gate-noop
|
|
tag:
|
|
- gate-noop
|
|
pre-release:
|
|
- gate-noop
|
|
release:
|
|
- gate-noop
|
|
experimental:
|
|
- gate-noop
|
|
silent:
|
|
- gate-noop
|
|
|
|
jobs:
|
|
- name: ^.*$
|
|
parameter-function: set_log_url
|
|
- name: completely-bogus-org/test
|
|
voting: false
|
|
- name: gtest-org/test2
|
|
voting: false
|
|
|
|
projects:
|
|
|
|
# This project is setup to run the internal zuul 'noop' job.
|
|
- name: gtest-org/gtest
|
|
template:
|
|
- name: merge-check
|
|
- name: noop-jobs
|
|
|
|
# This project is setup to run the 'gate-noop' job.
|
|
- name: gtest-org/gtest2
|
|
template:
|
|
- name: merge-check
|
|
- name: gate-noop-jobs
|
|
|
|
# This project is setup to run jobs in the periodic pipeline
|
|
- name: gtest-org/test2
|
|
periodic:
|
|
- noop
|
|
|
|
# This project is setup to run jobs in the periodic-stable pipeline
|
|
- name: gtest-org/test3
|
|
periodic-stable:
|
|
- noop
|