Fix Yamllint violations for jjb/compass4nfv
[releng.git] / jjb / compass4nfv / compass-verify-jobs.yml
1 ---
2 - project:
3     name: 'compass-verify-jobs'
4
5     project: 'compass4nfv'
6
7     installer: 'compass'
8     #####################################
9     # branch definitions
10     #####################################
11     stream:
12       - master:
13           branch: '{stream}'
14           gs-pathname: ''
15           ppa-pathname: '/{stream}'
16           disabled: false
17           openstack-version: 'ocata'
18           branch-type: 'master'
19       - danube:
20           branch: 'stable/{stream}'
21           gs-pathname: '/{stream}'
22           ppa-pathname: '/{stream}'
23           disabled: false
24           openstack-version: 'newton'
25           branch-type: 'branch'
26
27     distro:
28       - 'xenial':
29           disabled: false
30           os-version: 'xenial'
31           openstack-os-version: ''
32       - 'centos7':
33           disabled: true
34           os-version: 'centos7'
35           openstack-os-version: ''
36     #####################################
37     # patch verification phases
38     #####################################
39     phase:
40       - 'basic'
41       - 'deploy-virtual'
42     #####################################
43     # jobs
44     #####################################
45     jobs:
46       - 'compass-verify-{distro}-{stream}'
47       - 'compass-verify-k8-{distro}-{stream}'
48       - 'compass-verify-{phase}-{distro}-{stream}'
49 #####################################
50 # job templates
51 #####################################
52 - job-template:
53     name: 'compass-verify-{distro}-{stream}'
54
55     project-type: multijob
56
57     disabled: '{obj:disabled}'
58
59     concurrent: true
60
61     properties:
62       - logrotate-default
63       - throttle:
64           enabled: true
65           max-total: 4
66           max-per-node: 1
67           option: 'project'
68       - build-blocker:
69           use-build-blocker: true
70           blocking-jobs:
71             - 'compass-verify-[^-]*-[^-]*'
72             - 'compass-os-.*?-virtual-daily-.*?'
73           block-level: 'NODE'
74
75     wrappers:
76       - ssh-agent-wrapper
77       - timeout:
78           timeout: 240
79           fail: true
80       - fix-workspace-permissions
81
82     scm:
83       - git-scm-gerrit
84
85     triggers:
86       - gerrit:
87           server-name: 'gerrit.opnfv.org'
88           trigger-on:
89             - patchset-created-event:
90                 exclude-drafts: 'false'
91                 exclude-trivial-rebase: 'false'
92                 exclude-no-code-change: 'false'
93             - draft-published-event
94             - comment-added-contains-event:
95                 comment-contains-value: 'recheck'
96             - comment-added-contains-event:
97                 comment-contains-value: 'reverify'
98           projects:
99             - project-compare-type: 'ANT'
100               project-pattern: '{project}'
101               branches:
102                 - branch-compare-type: 'ANT'
103                   branch-pattern: '**/{branch}'
104               file-paths:
105                 - compare-type: ANT
106                   pattern: '**/*'
107               disable-strict-forbidden-file-verification: 'true'
108               forbidden-file-paths:
109                 - compare-type: ANT
110                   pattern: 'docs/**'
111           readable-message: true
112
113     parameters:
114       - project-parameter:
115           project: '{project}'
116           branch: '{branch}'
117       - 'compass-virtual-{branch-type}-defaults'
118       - '{installer}-defaults'
119       - 'compass-verify-defaults':
120           installer: '{installer}'
121           gs-pathname: '{gs-pathname}'
122           ppa-pathname: '{ppa-pathname}'
123       - string:
124           name: DEPLOY_SCENARIO
125           default: 'os-nosdn-nofeature-ha'
126
127     builders:
128       - description-setter:
129           description: "Built on $NODE_NAME"
130       - multijob:
131           name: basic
132           condition: SUCCESSFUL
133           projects:
134             - name: 'opnfv-lint-verify-{stream}'
135               current-parameters: true
136               node-parameters: true
137               kill-phase-on: FAILURE
138               abort-all-job: true
139             - name: 'opnfv-yamllint-verify-{stream}'
140               current-parameters: true
141               node-parameters: true
142               kill-phase-on: FAILURE
143               abort-all-job: true
144       - multijob:
145           name: deploy-virtual
146           condition: SUCCESSFUL
147           projects:
148             - name: 'compass-verify-deploy-virtual-{distro}-{stream}'
149               current-parameters: true
150               predefined-parameters: |
151                 COMPASS_OS_VERSION={os-version}
152                 COMPASS_OPENSTACK_VERSION={openstack-version}
153               node-parameters: true
154               kill-phase-on: FAILURE
155               abort-all-job: true
156       - multijob:
157           name: smoke-test
158           condition: SUCCESSFUL
159           projects:
160             - name: 'functest-compass-virtual-suite-{stream}'
161               current-parameters: false
162               predefined-parameters: |
163                 FUNCTEST_MODE=tier
164                 FUNCTEST_TIER=healthcheck
165                 DEPLOY_SCENARIO=os-nosdn-nofeature-ha
166               node-parameters: true
167               kill-phase-on: NEVER
168               abort-all-job: true
169             - name: 'functest-compass-virtual-suite-{stream}'
170               current-parameters: false
171               predefined-parameters: |
172                 FUNCTEST_MODE=testcase
173                 FUNCTEST_SUITE_NAME=vping_ssh
174                 DEPLOY_SCENARIO=os-nosdn-nofeature-ha
175               node-parameters: true
176               kill-phase-on: NEVER
177               abort-all-job: true
178
179 - job-template:
180     name: 'compass-verify-k8-{distro}-{stream}'
181
182     project-type: multijob
183
184     disabled: '{obj:disabled}'
185
186     concurrent: true
187
188     properties:
189       - logrotate-default
190       - throttle:
191           enabled: true
192           max-total: 4
193           max-per-node: 1
194           option: 'project'
195       - build-blocker:
196           use-build-blocker: true
197           blocking-jobs:
198             - 'compass-verify-[^-]*-[^-]*'
199             - 'compass-os-.*?-virtual-daily-.*?'
200           block-level: 'NODE'
201
202     wrappers:
203       - ssh-agent-wrapper
204       - timeout:
205           timeout: 240
206           fail: true
207       - fix-workspace-permissions
208
209     scm:
210       - git-scm-gerrit
211
212     triggers:
213       - gerrit:
214           server-name: 'gerrit.opnfv.org'
215           trigger-on:
216             - comment-added-contains-event:
217                 comment-contains-value: 'check k8'
218             - comment-added-contains-event:
219                 comment-contains-value: 'verify k8'
220             - comment-added-contains-event:
221                 comment-contains-value: 'check kubernetes'
222             - comment-added-contains-event:
223                 comment-contains-value: 'verify kubernetes'
224           projects:
225             - project-compare-type: 'ANT'
226               project-pattern: '{project}'
227               branches:
228                 - branch-compare-type: 'ANT'
229                   branch-pattern: '**/{branch}'
230               file-paths:
231                 - compare-type: ANT
232                   pattern: '**/*'
233               forbidden-file-paths:
234                 - compare-type: ANT
235                   pattern: 'docs/**'
236           readable-message: true
237
238     parameters:
239       - project-parameter:
240           project: '{project}'
241           branch: '{branch}'
242       - 'compass-virtual-{branch-type}-defaults'
243       - '{installer}-defaults'
244       - 'compass-verify-defaults':
245           installer: '{installer}'
246           gs-pathname: '{gs-pathname}'
247           ppa-pathname: '{ppa-pathname}'
248       - string:
249           name: DEPLOY_SCENARIO
250           default: 'k8-nosdn-nofeature-ha'
251
252     builders:
253       - description-setter:
254           description: "Built on $NODE_NAME"
255       - multijob:
256           name: basic
257           condition: SUCCESSFUL
258           projects:
259             - name: 'opnfv-lint-verify-{stream}'
260               current-parameters: true
261               node-parameters: true
262               kill-phase-on: FAILURE
263               abort-all-job: true
264             - name: 'opnfv-yamllint-verify-{stream}'
265               current-parameters: true
266               node-parameters: true
267               kill-phase-on: FAILURE
268               abort-all-job: true
269       - multijob:
270           name: deploy-virtual
271           condition: SUCCESSFUL
272           projects:
273             - name: 'compass-verify-deploy-virtual-{distro}-{stream}'
274               current-parameters: true
275               predefined-parameters: |
276                 COMPASS_OS_VERSION={os-version}
277               node-parameters: true
278               kill-phase-on: FAILURE
279               abort-all-job: true
280
281 - job-template:
282     name: 'compass-verify-{phase}-{distro}-{stream}'
283
284     disabled: '{obj:disabled}'
285
286     concurrent: true
287
288     properties:
289       - logrotate-default
290       - throttle:
291           enabled: true
292           max-per-node: 1
293           option: 'project'
294       - build-blocker:
295           use-build-blocker: true
296           blocking-jobs:
297             - 'compass-os-.*?-virtual-daily-.*?'
298             - 'compass-verify-deploy-.*'
299             - 'functest-compass-virtual.*'
300           block-level: 'NODE'
301
302     wrappers:
303       - ssh-agent-wrapper
304       - timeout:
305           timeout: 240
306           fail: true
307       - fix-workspace-permissions
308
309     scm:
310       - git-scm-gerrit
311
312     builders:
313       - description-setter:
314           description: "Built on $NODE_NAME"
315       - '{project}-verify-{phase}-macro'
316
317 #####################################
318 # builder macros
319 #####################################
320 - builder:
321     name: 'compass4nfv-verify-basic-macro'
322     builders:
323       - shell: |
324           #!/bin/bash
325
326           echo "Not activated!"
327
328 - builder:
329     name: 'compass4nfv-verify-deploy-virtual-macro'
330     builders:
331       - shell:
332           !include-raw: ./compass-build.sh
333       - shell:
334           !include-raw: ./compass-deploy.sh
335 #####################################
336 # parameter macros
337 #####################################
338 - parameter:
339     name: 'compass-verify-defaults'
340     parameters:
341       - string:
342           name: BUILD_DIRECTORY
343           default: $WORKSPACE/build_output
344           description: "Directory where the build artifact will be located upon the completion of the build."
345       - string:
346           name: CACHE_DIRECTORY
347           default: "$HOME/opnfv/cache/$PROJECT{gs-pathname}"
348           description: "Directory where the cache to be used during the build is located."
349       - string:
350           name: GS_URL
351           default: '$GS_BASE{gs-pathname}'
352           description: "URL to Google Storage."
353       - string:
354           name: PPA_REPO
355           default: "http://artifacts.opnfv.org/compass4nfv/package{ppa-pathname}"
356       - string:
357           name: PPA_CACHE
358           default: "$WORKSPACE/work/repo/"
359       - choice:
360           name: COMPASS_OS_VERSION
361           choices:
362             - 'xenial'
363             - 'centos7'