Skip to content

Commit 0d390ba

Browse files
committed
Revert "Revert "Update pipelines as per zuul docs""
This reverts commit 6e73024.
1 parent ff20eea commit 0d390ba

File tree

1 file changed

+41
-52
lines changed

1 file changed

+41
-52
lines changed

zuul.d/pipelines.yaml

Lines changed: 41 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
name: check
33
description: |
44
Newly uploaded patchsets enter this pipeline to receive an
5-
initial +/-1 Verified vote.
5+
initial check status.
66
manager: independent
7-
precedence: normal
87
trigger:
98
github:
109
# Run this pipeline on new/changed pull requests
@@ -13,41 +12,62 @@
1312
- opened
1413
- changed
1514
- reopened
15+
# Run in response to a pull request comment "recheck"
16+
- event: pull_request
17+
action: comment
18+
comment: (?i)^\s*recheck\s*$
1619
# When using the checks API to report results, failed runs
1720
# will have a "re-run" button which emits this event.
1821
- event: check_run
1922
action: rerequested
20-
check: '.*/check:.*'
23+
check: .*/check:.*
2124
start:
2225
github:
2326
check: 'in_progress'
2427
comment: false
28+
# It is recommended to use the checks API for consistency with
29+
# other common CI tools that integrate with Github. Results
30+
# will appear on the "checks" tab of PR and changes. There is
31+
# generally no need to have Zuul leave comments when using the
32+
# checks API.
33+
#
34+
# The older status API appears inline with the PR and can be
35+
# enabled by uncommenting the "status:" in the various
36+
# sections below. You should choose one or the other
37+
# depending on project preferences.
38+
#
39+
#status: 'pending'
40+
#comment: false
2541
success:
2642
github:
2743
check: 'success'
2844
comment: false
45+
#status: 'success'
2946
failure:
3047
github:
3148
check: 'failure'
3249
comment: false
50+
#status: 'failure'
3351
dequeue:
3452
github:
35-
check: 'cancelled'
53+
check: cancelled
3654
comment: false
3755

3856
- pipeline:
3957
name: gate
4058
description: |
41-
Changes that have been approved are enqueued in order in this
42-
pipeline, and if they pass tests, will be merged. For
43-
documentation on how gating with Zuul works, please see
44-
https://zuul-ci.org/docs/zuul/latest/gating.html
59+
Changes that have been approved by core developers are enqueued
60+
in order in this pipeline, and if they pass tests, will be
61+
merged.
4562
manager: dependent
4663
precedence: high
4764
supercedes: check
48-
post-review: True
4965
require:
5066
github:
67+
review:
68+
# Require an approval from user with write access (e.g. core-reviewer)
69+
- permission: write
70+
type: approved
5171
# Require label
5272
label: gate
5373
open: True
@@ -56,13 +76,19 @@
5676
github:
5777
- event: pull_request_review
5878
action: submitted
59-
#state: approved
79+
state: approved
80+
- event: pull_request
81+
action: comment
82+
comment: (?i)^\s*regate\s*$
6083
- event: pull_request_review
6184
action: dismissed
62-
#state: request_changes
85+
state: request_changes
86+
- event: pull_request
87+
action: status
88+
status: ".*:success"
6389
- event: check_run
6490
action: rerequested
65-
check: '.*/gate:.*'
91+
check: .*/gate:.*
6692
- event: pull_request
6793
action: labeled
6894
label:
@@ -71,14 +97,17 @@
7197
github:
7298
check: 'in_progress'
7399
comment: false
100+
#status: 'pending'
74101
success:
75102
github:
76103
check: 'success'
77104
comment: false
105+
#status: 'success'
78106
merge: true
79107
failure:
80108
github:
81109
check: 'failure'
110+
#status: 'failure'
82111
comment: false
83112
dequeue:
84113
github:
@@ -98,46 +127,6 @@
98127
- event: push
99128
ref: ^refs/heads/.*$
100129

101-
- pipeline:
102-
name: promote
103-
description: |
104-
This pipeline runs jobs that operate after each change is merged
105-
in order to promote artifacts generated in the gate
106-
pipeline.
107-
manager: supercedent
108-
precedence: high
109-
post-review: True
110-
require:
111-
github:
112-
merged: True
113-
trigger:
114-
github:
115-
- event: pull_request
116-
action: closed
117-
118-
- pipeline:
119-
name: release
120-
description: |
121-
When a commit is tagged as a release, this pipeline runs jobs
122-
that publish archives and documentation.
123-
manager: independent
124-
precedence: high
125-
post-review: True
126-
trigger:
127-
github:
128-
- event: push
129-
ref: ^refs/tags/[0-9]+(\.[0-9]+)*$
130-
131-
- pipeline:
132-
name: daily
133-
post-review: true
134-
description: Jobs in this queue are triggered on a timer.
135-
manager: independent
136-
precedence: low
137-
trigger:
138-
timer:
139-
- time: '0 6 * * *'
140-
141130
- pipeline:
142131
name: tag
143132
description: This pipeline runs jobs in response to any tag event.

0 commit comments

Comments
 (0)