f95e7232ac
When a branch is deleted, gerrit emits a ref-updated event with a newrev value of all zeros. This adds a boolean field to optionally not trigger on these ref-updated events. Change-Id: Iea75d05ddcb49b0bf748b72b9d2d5472d077f0c6
68 lines
1.2 KiB
Plaintext
68 lines
1.2 KiB
Plaintext
pipelines:
|
|
- name: check
|
|
manager: IndependentPipelineManager
|
|
trigger:
|
|
gerrit:
|
|
- event: patchset-created
|
|
success:
|
|
gerrit:
|
|
verified: 1
|
|
failure:
|
|
gerrit:
|
|
verified: -1
|
|
|
|
- name: tests
|
|
manager: IndependentPipelineManager
|
|
trigger:
|
|
gerrit:
|
|
- event: patchset-created
|
|
email_filter: ^.*@example.org$
|
|
success:
|
|
gerrit:
|
|
verified: 1
|
|
failure:
|
|
gerrit:
|
|
verified: -1
|
|
|
|
- name: post
|
|
manager: IndependentPipelineManager
|
|
trigger:
|
|
gerrit:
|
|
- event: ref-updated
|
|
ref: ^(?!refs/).*$
|
|
ignore-deletes: False
|
|
|
|
- name: gate
|
|
manager: DependentPipelineManager
|
|
trigger:
|
|
gerrit:
|
|
- event: comment-added
|
|
approval:
|
|
- approved: 1
|
|
start:
|
|
gerrit:
|
|
verified: 0
|
|
success:
|
|
gerrit:
|
|
verified: 1
|
|
failure:
|
|
gerrit:
|
|
verified: -1
|
|
|
|
jobs:
|
|
- name: ^.*-merge$
|
|
failure-message: Unable to merge change, please rebase and try again.
|
|
|
|
projects:
|
|
- name: example/project
|
|
check:
|
|
- project-merge
|
|
tests:
|
|
- project-merge:
|
|
- project-test
|
|
gate:
|
|
- project-merge:
|
|
- project-test
|
|
post:
|
|
- project-publish
|