Skip to content

Commit 6e73024

Browse files
committed
Revert "Update pipelines as per zuul docs"
This reverts commit e616914.
1 parent 40a3f90 commit 6e73024

File tree

1 file changed

+52
-41
lines changed

1 file changed

+52
-41
lines changed

zuul.d/pipelines.yaml

Lines changed: 52 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
name: check
33
description: |
44
Newly uploaded patchsets enter this pipeline to receive an
5-
initial check status.
5+
initial +/-1 Verified vote.
66
manager: independent
7+
precedence: normal
78
trigger:
89
github:
910
# Run this pipeline on new/changed pull requests
@@ -12,62 +13,41 @@
1213
- opened
1314
- changed
1415
- reopened
15-
# Run in response to a pull request comment "recheck"
16-
- event: pull_request
17-
action: comment
18-
comment: (?i)^\s*recheck\s*$
1916
# When using the checks API to report results, failed runs
2017
# will have a "re-run" button which emits this event.
2118
- event: check_run
2219
action: rerequested
23-
check: .*/check:.*
20+
check: '.*/check:.*'
2421
start:
2522
github:
2623
check: 'in_progress'
2724
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
4125
success:
4226
github:
4327
check: 'success'
4428
comment: false
45-
#status: 'success'
4629
failure:
4730
github:
4831
check: 'failure'
4932
comment: false
50-
#status: 'failure'
5133
dequeue:
5234
github:
53-
check: cancelled
35+
check: 'cancelled'
5436
comment: false
5537

5638
- pipeline:
5739
name: gate
5840
description: |
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.
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
6245
manager: dependent
6346
precedence: high
6447
supercedes: check
48+
post-review: True
6549
require:
6650
github:
67-
review:
68-
# Require an approval from user with write access (e.g. core-reviewer)
69-
- permission: write
70-
type: approved
7151
# Require label
7252
label: gate
7353
open: True
@@ -76,19 +56,13 @@
7656
github:
7757
- event: pull_request_review
7858
action: submitted
79-
state: approved
80-
- event: pull_request
81-
action: comment
82-
comment: (?i)^\s*regate\s*$
59+
#state: approved
8360
- event: pull_request_review
8461
action: dismissed
85-
state: request_changes
86-
- event: pull_request
87-
action: status
88-
status: ".*:success"
62+
#state: request_changes
8963
- event: check_run
9064
action: rerequested
91-
check: .*/gate:.*
65+
check: '.*/gate:.*'
9266
- event: pull_request
9367
action: labeled
9468
label:
@@ -97,17 +71,14 @@
9771
github:
9872
check: 'in_progress'
9973
comment: false
100-
#status: 'pending'
10174
success:
10275
github:
10376
check: 'success'
10477
comment: false
105-
#status: 'success'
10678
merge: true
10779
failure:
10880
github:
10981
check: 'failure'
110-
#status: 'failure'
11182
comment: false
11283
dequeue:
11384
github:
@@ -127,6 +98,46 @@
12798
- event: push
12899
ref: ^refs/heads/.*$
129100

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+
130141
- pipeline:
131142
name: tag
132143
description: This pipeline runs jobs in response to any tag event.

0 commit comments

Comments
 (0)