7dd938d2861a88e69621454623ae7978012fcb00
[releng.git] / jjb / functest / functest-kubernetes.yaml
1 ---
2 - functest-kubernetes-jobs: &functest-kubernetes-jobs
3     name: 'functest-kubernetes-jobs'
4     current-parameters: true
5
6 - functest-kubernetes-params: &functest-kubernetes-params
7     name: 'functest-kubernetes-params'
8     repo: 'opnfv'
9     port:
10     tag:
11       - latest:
12           branch: master
13           slave: lf-virtual1-5
14       - kali:
15           branch: stable/kali
16           slave: lf-virtual1-4
17       - jerma:
18           branch: stable/jerma
19           slave: lf-virtual1-3
20       - iruya:
21           branch: stable/iruya
22           slave: lf-virtual1-2
23       - hunter:
24           branch: stable/hunter
25           slave: lf-virtual1-1
26
27 - parameter:
28     name: functest-kubernetes-slave
29     parameters:
30       - label:
31           name: slave
32           default: '{slave}'
33
34 - parameter:
35     name: functest-kubernetes-build_tag
36     parameters:
37       - random-string:
38           name: build_tag
39
40 - parameter:
41     name: functest-kubernetes-branch
42     parameters:
43       - string:
44           name: branch
45           default: '{branch}'
46
47 - parameter:
48     name: functest-kubernetes-DEPLOY_SCENARIO
49     parameters:
50       - string:
51           name: DEPLOY_SCENARIO
52           default: k8-nosdn-nofeature-noha
53 - parameter:
54     name: functest-kubernetes-DEBUG
55     parameters:
56       - string:
57           name: DEBUG
58           default: 'true'
59
60 - functest-kubernetes-containers: &functest-kubernetes-containers
61     name: 'functest-kubernetes-containers'
62     repo: '{repo}'
63     port: '{port}'
64     container: '{container}'
65     tag: '{tag}'
66
67 - functest-kubernetes-run-containers: &functest-kubernetes-run-containers
68     name: 'functest-kubernetes-run-containers'
69     <<: *functest-kubernetes-containers
70     test: '{test}'
71
72 - builder:
73     name: functest-kubernetes-pull-containers
74     builders:
75       - shell: |
76           set +x
77           if [ "{repo}" = "_" ]; then
78             image={container}:{tag}
79           elif [ "{port}" = "None" ]; then
80             image={repo}/{container}:{tag}
81           else
82             image={repo}:{port}/{container}:{tag}
83           fi
84           docker pull $image
85
86 - builder:
87     name: functest-kubernetes-run-containers
88     builders:
89       - shell: |
90           set +x
91           [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
92           if [ "{repo}" = "_" ]; then
93             image={container}:{tag}
94           elif [ "{port}" = "None" ]; then
95             image={repo}/{container}:{tag}
96           else
97             image={repo}:{port}/{container}:{tag}
98           fi
99           docker run --rm \
100             -e S3_ENDPOINT_URL=https://storage.googleapis.com \
101             -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
102             -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
103             -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
104             -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
105             -e NODE_NAME=$slave \
106             -e BUILD_TAG=$BUILD_TAG \
107             -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
108             -e DEPLOY_SCENARIO=$DEPLOY_SCENARIO \
109             -e DEBUG=$DEBUG \
110             -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
111             -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
112             $image run_tests -t {test} -p -r
113
114 - builder:
115     name: functest-kubernetes-remove-images
116     builders:
117       - shell: |
118           set +x
119           if [ "{repo}" = "_" ]; then
120             image={container}:{tag}
121           elif [ "{port}" = "None" ]; then
122             image={repo}/{container}:{tag}
123           else
124             image={repo}:{port}/{container}:{tag}
125           fi
126           docker rmi $image || true
127
128 - functest-kubernetes-build-containers: &functest-kubernetes-build-containers
129     name: 'functest-kubernetes-build-containers'
130     <<: *functest-kubernetes-containers
131     ref_arg: '{ref_arg}'
132     path: '{path}'
133
134 - builder:
135     name: functest-kubernetes-build-containers
136     builders:
137       - shell: |
138           set +x
139           if [ "{repo}" = "_" ]; then
140             image={container}:{tag}
141           elif [ "{port}" = "None" ]; then
142             image={repo}/{container}:{tag}
143           else
144             image={repo}:{port}/{container}:{tag}
145           fi
146           if [ "{ref_arg}" = "None" ]; then
147             build_arg=""
148           else
149             build_arg="--build-arg {ref_arg}={ref}"
150           fi
151           cd {path}
152           docker build $build_arg \
153             --pull=false --no-cache --force-rm=true \
154             -t $image .
155
156 - scm:
157     name: functest-kubernetes-scm
158     scm:
159       - git:
160           url: https://gerrit.opnfv.org/gerrit/functest-kubernetes
161           refspec: '+refs/changes/*:refs/changes/*'
162           branches:
163             - '{ref}'
164
165 - job-template:
166     name: 'functest-kubernetes-{repo}-{container}-{tag}-pull'
167     parameters:
168       - functest-kubernetes-slave:
169           slave: '{slave}'
170     builders:
171       - functest-kubernetes-pull-containers:
172           <<: *functest-kubernetes-containers
173
174 - project:
175     name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-pull'
176     <<: *functest-kubernetes-params
177     container: 'functest-kubernetes-healthcheck'
178     jobs:
179       - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
180
181 - project:
182     name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-pull'
183     <<: *functest-kubernetes-params
184     container: 'functest-kubernetes-smoke'
185     jobs:
186       - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
187
188 - project:
189     name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-pull'
190     <<: *functest-kubernetes-params
191     container: 'functest-kubernetes-cnf'
192     exclude:
193       - tag: jerma
194       - tag: iruya
195       - tag: hunter
196     jobs:
197       - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
198
199 - project:
200     name: 'functest-kubernetes-opnfv-functest-kubernetes-security-pull'
201     <<: *functest-kubernetes-params
202     container: 'functest-kubernetes-security'
203     exclude:
204       - tag: iruya
205       - tag: hunter
206     jobs:
207       - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
208
209 - job-template:
210     name: 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
211     parameters:
212       - functest-kubernetes-slave:
213           slave: '{slave}'
214     builders:
215       - functest-kubernetes-remove-images:
216           <<: *functest-kubernetes-containers
217
218 - project:
219     name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-rmi'
220     <<: *functest-kubernetes-params
221     container: 'functest-kubernetes-healthcheck'
222     jobs:
223       - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
224
225 - project:
226     name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-rmi'
227     <<: *functest-kubernetes-params
228     container: 'functest-kubernetes-smoke'
229     jobs:
230       - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
231
232 - project:
233     name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-rmi'
234     <<: *functest-kubernetes-params
235     container: 'functest-kubernetes-cnf'
236     exclude:
237       - tag: jerma
238       - tag: iruya
239       - tag: hunter
240     jobs:
241       - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
242
243 - project:
244     name: 'functest-kubernetes-opnfv-functest-kubernetes-security-rmi'
245     <<: *functest-kubernetes-params
246     container: 'functest-kubernetes-security'
247     exclude:
248       - tag: iruya
249       - tag: hunter
250     jobs:
251       - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
252
253 - job-template:
254     name: 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
255     parameters:
256       - functest-kubernetes-slave:
257           slave: '{slave}'
258       - functest-kubernetes-build_tag:
259           build_tag: ''
260       - functest-kubernetes-DEPLOY_SCENARIO:
261           DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
262       - functest-kubernetes-DEBUG:
263           DEBUG: 'true'
264     builders:
265       - functest-kubernetes-run-containers:
266           <<: *functest-kubernetes-run-containers
267
268 - project:
269     name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck'
270     <<: *functest-kubernetes-params
271     container: 'functest-kubernetes-healthcheck'
272     test:
273       - k8s_smoke
274     jobs:
275       - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
276
277 - project:
278     name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke'
279     <<: *functest-kubernetes-params
280     container: 'functest-kubernetes-smoke'
281     test:
282       - xrally_kubernetes
283       - k8s_conformance
284     exclude:
285       - tag: iruya
286         test: xrally_kubernetes
287       - tag: hunter
288         test: xrally_kubernetes
289     jobs:
290       - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
291
292 - project:
293     name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf'
294     <<: *functest-kubernetes-params
295     container: 'functest-kubernetes-cnf'
296     test:
297       - k8s_vims
298     exclude:
299       - tag: jerma
300         test: k8s_vims
301       - tag: iruya
302         test: k8s_vims
303       - tag: hunter
304         test: k8s_vims
305     jobs:
306       - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
307
308 - project:
309     name: 'functest-kubernetes-opnfv-functest-kubernetes-security'
310     <<: *functest-kubernetes-params
311     container: 'functest-kubernetes-security'
312     test:
313       - kube_hunter
314       - kube_bench
315     exclude:
316       - tag: iruya
317         test: kube_hunter
318       - tag: iruya
319         test: kube_bench
320       - tag: hunter
321         test: kube_hunter
322       - tag: hunter
323         test: kube_bench
324     jobs:
325       - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
326
327
328 - builder:
329     name: functest-kubernetes-zip
330     builders:
331       - shell: |
332           set +x
333           [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
334           if [ "{repo}" = "_" ]; then
335             image={container}:{tag}
336           elif [ "{port}" = "None" ]; then
337             image={repo}/{container}:{tag}
338           else
339             image={repo}:{port}/{container}:{tag}
340           fi
341           docker run --rm \
342             -e S3_ENDPOINT_URL=https://storage.googleapis.com \
343             -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes \
344             -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes \
345             -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
346             -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
347             -e BUILD_TAG=$BUILD_TAG \
348             -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
349             -e DEPLOY_SCENARIO=$DEPLOY_SCENARIO \
350             -e DEBUG=$DEBUG \
351             -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
352             -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
353             $image zip_campaign
354
355 - job-template:
356     name: 'functest-kubernetes-{tag}-zip'
357     parameters:
358       - functest-kubernetes-slave:
359           slave: '{slave}'
360       - functest-kubernetes-build_tag:
361           build_tag: ''
362       - functest-kubernetes-DEPLOY_SCENARIO:
363           DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
364       - functest-kubernetes-DEBUG:
365           DEBUG: 'true'
366     builders:
367       - functest-kubernetes-zip:
368           <<: *functest-kubernetes-containers
369
370 - project:
371     name: 'functest-kubernetes-{tag}-zip'
372     <<: *functest-kubernetes-params
373     container: 'functest-kubernetes-healthcheck'
374     jobs:
375       - 'functest-kubernetes-{tag}-zip'
376
377 - job-template:
378     name: 'functest-kubernetes-{tag}-daily'
379     project-type: multijob
380     triggers:
381       - timed: '@daily'
382     parameters:
383       - functest-kubernetes-slave:
384           slave: '{slave}'
385       - functest-kubernetes-build_tag:
386           build_tag: ''
387       - functest-kubernetes-DEPLOY_SCENARIO:
388           DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
389       - functest-kubernetes-DEBUG:
390           DEBUG: 'true'
391     properties:
392       - build-blocker:
393           use-build-blocker: true
394           blocking-level: 'NODE'
395           blocking-jobs:
396             - '^functest-kubernetes-{tag}-(daily|check|gate)$'
397     builders:
398       - multijob:
399           name: remove former images
400           projects:
401             - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-rmi'
402               <<: *functest-kubernetes-jobs
403             - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-rmi'
404               <<: *functest-kubernetes-jobs
405             - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-rmi'
406               <<: *functest-kubernetes-jobs
407             - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-rmi'
408               <<: *functest-kubernetes-jobs
409       - multijob:
410           name: pull containers
411           projects:
412             - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-pull'
413               <<: *functest-kubernetes-jobs
414             - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-pull'
415               <<: *functest-kubernetes-jobs
416             - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-pull'
417               <<: *functest-kubernetes-jobs
418             - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-pull'
419               <<: *functest-kubernetes-jobs
420       - multijob:
421           name: opnfv/functest-kubernetes-healthcheck:{tag}
422           projects:
423             - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
424               <<: *functest-kubernetes-jobs
425       - multijob:
426           name: opnfv/functest-kubernetes-smoke:{tag}
427           execution-type: SEQUENTIALLY
428           projects:
429             - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
430               <<: *functest-kubernetes-jobs
431             - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
432               <<: *functest-kubernetes-jobs
433       - multijob:
434           name: opnfv/functest-kubernetes-security:{tag}
435           projects:
436             - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_hunter-run'
437               <<: *functest-kubernetes-jobs
438             - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench-run'
439               <<: *functest-kubernetes-jobs
440       - multijob:
441           name: opnfv/functest-kubernetes-cnf:{tag}
442           projects:
443             - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-k8s_vims-run'
444               <<: *functest-kubernetes-jobs
445       - multijob:
446           name: dump all campaign data
447           projects:
448             - name: 'functest-kubernetes-{tag}-zip'
449               <<: *functest-kubernetes-jobs
450
451 - job-template:
452     name: 'functest-kubernetes-{repo}-{container}-{tag}-gate'
453     parameters:
454       - functest-kubernetes-slave:
455           slave: '{slave}'
456     scm:
457       - functest-kubernetes-scm:
458           ref: $GERRIT_REFSPEC
459     builders:
460       - functest-kubernetes-build-containers:
461           <<: *functest-kubernetes-build-containers
462           ref: $GERRIT_REFSPEC
463
464 - job-template:
465     name: 'functest-kubernetes-{repo}-{container}-{tag}-check'
466     parameters:
467       - functest-kubernetes-slave:
468           slave: '{slave}'
469       - functest-kubernetes-branch:
470           branch: '{branch}'
471     scm:
472       - functest-kubernetes-scm:
473           ref: $branch
474     builders:
475       - functest-kubernetes-build-containers:
476           <<: *functest-kubernetes-build-containers
477           ref: $branch
478
479 - project:
480     name: 'functest-kubernetes-_-golang-1.13-alpine3.12-rmi'
481     repo: _
482     port:
483     container: golang
484     tag: '1.13-alpine3.12'
485     slave: master
486     jobs:
487       - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
488
489 - project:
490     name: 'functest-kubernetes-_-golang-1.13-alpine3.12-pull'
491     repo: _
492     port:
493     container: golang
494     tag: '1.13-alpine3.12'
495     slave: master
496     jobs:
497       - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
498
499 - project:
500     name: functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-build
501     <<: *functest-kubernetes-params
502     container: functest-kubernetes-core
503     ref_arg: BRANCH
504     path: docker/core
505     jobs:
506       - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
507       - 'functest-kubernetes-{repo}-{container}-{tag}-check'
508
509 - project:
510     name: functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-build
511     <<: *functest-kubernetes-params
512     container: functest-kubernetes-healthcheck
513     ref_arg:
514     path: docker/healthcheck
515     jobs:
516       - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
517       - 'functest-kubernetes-{repo}-{container}-{tag}-check'
518
519 - project:
520     name: functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-build
521     <<: *functest-kubernetes-params
522     container: functest-kubernetes-cnf
523     ref_arg: BRANCH
524     path: docker/cnf
525     exclude:
526       - tag: jerma
527       - tag: iruya
528       - tag: hunter
529     jobs:
530       - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
531       - 'functest-kubernetes-{repo}-{container}-{tag}-check'
532
533 - project:
534     name: functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-build
535     <<: *functest-kubernetes-params
536     container: functest-kubernetes-security
537     ref_arg: BRANCH
538     path: docker/security
539     exclude:
540       - tag: iruya
541       - tag: hunter
542     jobs:
543       - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
544       - 'functest-kubernetes-{repo}-{container}-{tag}-check'
545
546 - project:
547     name: functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-build
548     <<: *functest-kubernetes-params
549     container: functest-kubernetes-smoke
550     ref_arg:
551     path: docker/smoke
552     jobs:
553       - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
554       - 'functest-kubernetes-{repo}-{container}-{tag}-check'
555
556 - job-template:
557     name: 'functest-kubernetes-{tag}-check'
558     project-type: multijob
559     parameters:
560       - functest-kubernetes-slave:
561           slave: '{slave}'
562       - functest-kubernetes-build_tag:
563           build_tag: ''
564       - functest-kubernetes-branch:
565           branch: '{branch}'
566       - functest-kubernetes-DEPLOY_SCENARIO:
567           DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
568       - functest-kubernetes-DEBUG:
569           DEBUG: 'true'
570     properties:
571       - build-blocker:
572           use-build-blocker: true
573           blocking-level: 'NODE'
574           blocking-jobs:
575             - '^functest-kubernetes-{tag}-(daily|check|gate)$'
576     builders:
577       - multijob:
578           name: remove former images
579           projects:
580             - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-rmi'
581               <<: *functest-kubernetes-jobs
582             - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-rmi'
583               <<: *functest-kubernetes-jobs
584             - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-rmi'
585               <<: *functest-kubernetes-jobs
586             - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-rmi'
587               <<: *functest-kubernetes-jobs
588       - multijob:
589           name: remove dependencies
590           projects:
591             - name: 'functest-kubernetes-_-golang-1.13-alpine3.12-rmi'
592               <<: *functest-kubernetes-jobs
593       - multijob:
594           name: pull dependencies
595           projects:
596             - name: 'functest-kubernetes-_-golang-1.13-alpine3.12-pull'
597               <<: *functest-kubernetes-jobs
598       - multijob:
599           name: build opnfv/functest-kubernetes-core
600           projects:
601             - name: 'functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-check'
602               <<: *functest-kubernetes-jobs
603       - multijob:
604           name: build opnfv/functest-kubernetes-healthcheck
605           projects:
606             - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-check'
607               <<: *functest-kubernetes-jobs
608             - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-check'
609               <<: *functest-kubernetes-jobs
610             - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-check'
611               <<: *functest-kubernetes-jobs
612       - multijob:
613           name: build containers
614           projects:
615             - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-check'
616               <<: *functest-kubernetes-jobs
617       - multijob:
618           name: opnfv/functest-kubernetes-healthcheck:{tag}
619           projects:
620             - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
621               <<: *functest-kubernetes-jobs
622       - multijob:
623           name: opnfv/functest-kubernetes-smoke:{tag}
624           execution-type: SEQUENTIALLY
625           projects:
626             - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
627               <<: *functest-kubernetes-jobs
628             - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
629               <<: *functest-kubernetes-jobs
630       - multijob:
631           name: opnfv/functest-kubernetes-security:{tag}
632           projects:
633             - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_hunter-run'
634               <<: *functest-kubernetes-jobs
635             - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench-run'
636               <<: *functest-kubernetes-jobs
637       - multijob:
638           name: opnfv/functest-kubernetes-cnf:{tag}
639           projects:
640             - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-k8s_vims-run'
641               <<: *functest-kubernetes-jobs
642
643 - trigger:
644     name: functest-kubernetes-patchset-created
645     triggers:
646       - gerrit:
647           server-name: 'gerrit.opnfv.org'
648           trigger-on:
649             - patchset-created-event
650             - comment-added-contains-event:
651                 comment-contains-value: 'recheck'
652             - comment-added-contains-event:
653                 comment-contains-value: 'reverify'
654           projects:
655             - project-compare-type: 'ANT'
656               project-pattern: 'functest-kubernetes'
657               branches:
658                 - branch-compare-type: 'ANT'
659                   branch-pattern: '**/{branch}'
660           skip-vote:
661             successful: false
662             failed: false
663             unstable: false
664             notbuilt: false
665
666 - job-template:
667     name: 'functest-kubernetes-{tag}-gate'
668     project-type: multijob
669     triggers:
670       - functest-kubernetes-patchset-created:
671           branch: '{branch}'
672     parameters:
673       - functest-kubernetes-slave:
674           slave: '{slave}'
675       - functest-kubernetes-build_tag:
676           build_tag: ''
677       - functest-kubernetes-DEPLOY_SCENARIO:
678           DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
679       - functest-kubernetes-DEBUG:
680           DEBUG: 'true'
681     properties:
682       - build-blocker:
683           use-build-blocker: true
684           blocking-level: 'NODE'
685           blocking-jobs:
686             - '^functest-kubernetes-{tag}-(daily|check|gate)$'
687     builders:
688       - multijob:
689           name: remove former images
690           projects:
691             - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-rmi'
692               <<: *functest-kubernetes-jobs
693             - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-rmi'
694               <<: *functest-kubernetes-jobs
695             - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-rmi'
696               <<: *functest-kubernetes-jobs
697             - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-rmi'
698               <<: *functest-kubernetes-jobs
699       - multijob:
700           name: remove dependencies
701           projects:
702             - name: 'functest-kubernetes-_-golang-1.13-alpine3.12-rmi'
703               <<: *functest-kubernetes-jobs
704       - multijob:
705           name: pull dependencies
706           projects:
707             - name: 'functest-kubernetes-_-golang-1.13-alpine3.12-pull'
708               <<: *functest-kubernetes-jobs
709       - multijob:
710           name: build opnfv/functest-kubernetes-core
711           projects:
712             - name: 'functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-gate'
713               <<: *functest-kubernetes-jobs
714       - multijob:
715           name: build opnfv/functest-kubernetes-healthcheck
716           projects:
717             - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-gate'
718               <<: *functest-kubernetes-jobs
719             - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-gate'
720               <<: *functest-kubernetes-jobs
721             - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-gate'
722               <<: *functest-kubernetes-jobs
723       - multijob:
724           name: build containers
725           projects:
726             - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-gate'
727               <<: *functest-kubernetes-jobs
728       - multijob:
729           name: opnfv/functest-kubernetes-healthcheck:{tag}
730           projects:
731             - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
732               <<: *functest-kubernetes-jobs
733       - multijob:
734           name: opnfv/functest-kubernetes-smoke:{tag}
735           execution-type: SEQUENTIALLY
736           projects:
737             - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
738               <<: *functest-kubernetes-jobs
739             - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
740               <<: *functest-kubernetes-jobs
741       - multijob:
742           name: opnfv/functest-kubernetes-security:{tag}
743           projects:
744             - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_hunter-run'
745               <<: *functest-kubernetes-jobs
746             - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench-run'
747               <<: *functest-kubernetes-jobs
748       - multijob:
749           name: opnfv/functest-kubernetes-cnf:{tag}
750           projects:
751             - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-k8s_vims-run'
752               <<: *functest-kubernetes-jobs
753
754 - project:
755     name: 'functest-kubernetes'
756     <<: *functest-kubernetes-params
757     jobs:
758       - 'functest-kubernetes-{tag}-daily'
759       - 'functest-kubernetes-{tag}-check'
760       - 'functest-kubernetes-{tag}-gate'
761
762 - view:
763     name: functest-kubernetes
764     view-type: list
765     columns:
766       - status
767       - weather
768       - job
769       - last-success
770       - last-failure
771       - last-duration
772     regex: ^functest-kubernetes-[a-z]+-daily$