Meridio: update node to 2204
[infra/cicd.git] / jjb / nolabs / nolabs-verify-merge-deploy-jobs.yaml
1 ---
2 #
3 # ============LICENSE_START=======================================================
4 #  Copyright (C) 2019 Nordix Foundation.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
20
21 - project:
22     name: 'nolabs-verify-merge'
23
24     project: 'nolabs'
25
26     stream:
27       - 'master':
28           branch: '{stream}'
29
30     jobs:
31       - 'nolabs-verify-{stream}':
32           slave-label: nolabs-dev
33       - 'nolabs-merge-{stream}':
34           slave-label: nolabs-dev
35       - 'nolabs-deploy-{stream}':
36           slave-label: nolabs-prod
37
38 - job-template:
39     name: 'nolabs-verify-{stream}'
40
41     concurrent: false
42
43     parameters:
44       - project-parameters:
45           project: '{project}'
46           branch: '{branch}'
47       - nordix-gerrit-parameters
48       - label:
49           name: SLAVE_LABEL
50           default: '{slave-label}'
51           description: 'Slave label to schedule this job on.'
52
53     properties:
54       - logrotate
55       - build-blocker:
56           use-build-blocker: true
57           blocking-jobs:
58             - 'nolabs-.*'
59           block-level: 'NODE'
60       - throttle:
61           max-per-node: 1
62           max-total: 1
63           option: project
64
65     wrappers:
66       - build-timeout:
67           timeout: 10
68       - fix-workspace-permissions
69
70     scm:
71       - git-scm-gerrit:
72           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
73           branch: '{branch}'
74           refspec: $GERRIT_REFSPEC
75           wipe_workspace: true
76           clean_before: false
77
78     triggers:
79       - gerrit:
80           server-name: 'Nordix Gerrit'
81           trigger-on:
82             - patchset-created-event:
83                 exclude-drafts: 'false'
84                 exclude-trivial-rebase: 'false'
85                 exclude-no-code-change: 'false'
86             - draft-published-event
87             - comment-added-contains-event:
88                 comment-contains-value: 'recheck'
89             - comment-added-contains-event:
90                 comment-contains-value: 'reverify'
91           projects:
92             - project-compare-type: 'REG_EXP'
93               project-pattern: 'nolabs/website'
94               branches:
95                 - branch-compare-type: 'ANT'
96                   branch-pattern: '**/{branch}'
97               disable-strict-forbidden-file-verification: 'false'
98               forbidden-file-paths:
99                 - compare-type: ANT
100                   pattern: '.gitignore'
101                 - compare-type: ANT
102                   pattern: '.gitreview'
103
104     builders:
105       - shell: |
106           #!/bin/bash
107           echo "To be implemented"
108
109 - job-template:
110     name: 'nolabs-merge-{stream}'
111
112     concurrent: false
113
114     parameters:
115       - project-parameters:
116           project: '{project}'
117           branch: '{branch}'
118       - nordix-gerrit-parameters
119       - label:
120           name: SLAVE_LABEL
121           default: '{slave-label}'
122           description: 'Slave label to schedule this job on.'
123
124     properties:
125       - logrotate
126       - build-blocker:
127           use-build-blocker: true
128           blocking-jobs:
129             - 'nolabs-.*'
130           block-level: 'NODE'
131       - throttle:
132           max-per-node: 1
133           max-total: 1
134           option: project
135
136     wrappers:
137       - build-timeout:
138           timeout: 10
139       - fix-workspace-permissions
140
141     scm:
142       - git-scm:
143           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
144           branch: '{branch}'
145           refspec: ''
146           wipe_workspace: true
147           clean_before: false
148
149     triggers:
150       - gerrit:
151           server-name: 'Nordix Gerrit'
152           trigger-on:
153             - change-merged-event
154             - comment-added-contains-event:
155                 comment-contains-value: 'remerge'
156           projects:
157             - project-compare-type: 'ANT'
158               project-pattern: 'nolabs/website'
159               branches:
160                 - branch-compare-type: 'ANT'
161                   branch-pattern: '**/{branch}'
162               disable-strict-forbidden-file-verification: 'false'
163               forbidden-file-paths:
164                 - compare-type: ANT
165                   pattern: '.gitignore'
166                 - compare-type: ANT
167                   pattern: '.gitreview'
168
169     builders:
170       - shell: |
171           #!/bin/bash
172           echo "To be implemented"
173
174 - job-template:
175     name: 'nolabs-deploy-{stream}'
176
177     concurrent: false
178
179     parameters:
180       - project-parameters:
181           project: '{project}'
182           branch: '{branch}'
183       - nordix-gerrit-parameters
184       - label:
185           name: SLAVE_LABEL
186           default: '{slave-label}'
187           description: 'Slave label to schedule this job on.'
188
189     properties:
190       - logrotate
191       - build-blocker:
192           use-build-blocker: true
193           blocking-jobs:
194             - 'nolabs-.*'
195           block-level: 'NODE'
196       - throttle:
197           max-per-node: 1
198           max-total: 1
199           option: project
200
201     wrappers:
202       - build-timeout:
203           timeout: 10
204       - fix-workspace-permissions
205
206     scm:
207       - git-scm:
208           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
209           branch: '{branch}'
210           refspec: ''
211           wipe_workspace: true
212           clean_before: false
213
214     triggers:
215       - gerrit:
216           server-name: 'Nordix Gerrit'
217           trigger-on:
218             - comment-added-contains-event:
219                 comment-contains-value: 'website-deploy-to-production'
220           projects:
221             - project-compare-type: 'ANT'
222               project-pattern: 'nolabs/website'
223               branches:
224                 - branch-compare-type: 'ANT'
225                   branch-pattern: '**/{branch}'
226               disable-strict-forbidden-file-verification: 'false'
227               forbidden-file-paths:
228                 - compare-type: ANT
229                   pattern: '.gitignore'
230                 - compare-type: ANT
231                   pattern: '.gitreview'
232
233     builders:
234       - shell: |
235           #!/bin/bash
236           echo "To be implemented"
237
238 # vim: set ts=2 sw=2 expandtab: