|
2 | 2 | name: check
|
3 | 3 | description: |
|
4 | 4 | Newly uploaded patchsets enter this pipeline to receive an
|
5 |
| - initial +/-1 Verified vote. |
| 5 | + initial check status. |
6 | 6 | manager: independent
|
7 |
| - precedence: normal |
8 | 7 | trigger:
|
9 | 8 | github:
|
10 | 9 | # Run this pipeline on new/changed pull requests
|
|
13 | 12 | - opened
|
14 | 13 | - changed
|
15 | 14 | - reopened
|
| 15 | + # Run in response to a pull request comment "recheck" |
| 16 | + - event: pull_request |
| 17 | + action: comment |
| 18 | + comment: (?i)^\s*recheck\s*$ |
16 | 19 | # When using the checks API to report results, failed runs
|
17 | 20 | # will have a "re-run" button which emits this event.
|
18 | 21 | - event: check_run
|
19 | 22 | action: rerequested
|
20 |
| - check: '.*/check:.*' |
| 23 | + check: .*/check:.* |
21 | 24 | start:
|
22 | 25 | github:
|
23 | 26 | check: 'in_progress'
|
24 | 27 | 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 |
25 | 41 | success:
|
26 | 42 | github:
|
27 | 43 | check: 'success'
|
28 | 44 | comment: false
|
| 45 | + #status: 'success' |
29 | 46 | failure:
|
30 | 47 | github:
|
31 | 48 | check: 'failure'
|
32 | 49 | comment: false
|
| 50 | + #status: 'failure' |
33 | 51 | dequeue:
|
34 | 52 | github:
|
35 |
| - check: 'cancelled' |
| 53 | + check: cancelled |
36 | 54 | comment: false
|
37 | 55 |
|
38 | 56 | - pipeline:
|
39 | 57 | name: gate
|
40 | 58 | 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. |
45 | 62 | manager: dependent
|
46 | 63 | precedence: high
|
47 | 64 | supercedes: check
|
48 |
| - post-review: True |
49 | 65 | require:
|
50 | 66 | github:
|
| 67 | + review: |
| 68 | + # Require an approval from user with write access (e.g. core-reviewer) |
| 69 | + - permission: write |
| 70 | + type: approved |
51 | 71 | # Require label
|
52 | 72 | label: gate
|
53 | 73 | open: True
|
|
56 | 76 | github:
|
57 | 77 | - event: pull_request_review
|
58 | 78 | action: submitted
|
59 |
| - #state: approved |
| 79 | + state: approved |
| 80 | + - event: pull_request |
| 81 | + action: comment |
| 82 | + comment: (?i)^\s*regate\s*$ |
60 | 83 | - event: pull_request_review
|
61 | 84 | action: dismissed
|
62 |
| - #state: request_changes |
| 85 | + state: request_changes |
| 86 | + - event: pull_request |
| 87 | + action: status |
| 88 | + status: ".*:success" |
63 | 89 | - event: check_run
|
64 | 90 | action: rerequested
|
65 |
| - check: '.*/gate:.*' |
| 91 | + check: .*/gate:.* |
66 | 92 | - event: pull_request
|
67 | 93 | action: labeled
|
68 | 94 | label:
|
|
71 | 97 | github:
|
72 | 98 | check: 'in_progress'
|
73 | 99 | comment: false
|
| 100 | + #status: 'pending' |
74 | 101 | success:
|
75 | 102 | github:
|
76 | 103 | check: 'success'
|
77 | 104 | comment: false
|
| 105 | + #status: 'success' |
78 | 106 | merge: true
|
79 | 107 | failure:
|
80 | 108 | github:
|
81 | 109 | check: 'failure'
|
| 110 | + #status: 'failure' |
82 | 111 | comment: false
|
83 | 112 | dequeue:
|
84 | 113 | github:
|
|
98 | 127 | - event: push
|
99 | 128 | ref: ^refs/heads/.*$
|
100 | 129 |
|
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 |
| - |
141 | 130 | - pipeline:
|
142 | 131 | name: tag
|
143 | 132 | description: This pipeline runs jobs in response to any tag event.
|
|
0 commit comments