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