Remove all kube_bench exclusions
[releng.git] / jjb / functest / functest-kubernetes-pi.yaml
1 ---
2 - functest-kubernetes-pi-jobs: &functest-kubernetes-pi-jobs
3     name: 'functest-kubernetes-pi-jobs'
4     current-parameters: true
5
6 - functest-kubernetes-pi-params: &functest-kubernetes-pi-params
7     name: 'functest-kubernetes-pi-params'
8     repo: 'ollivier'
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       - arm-latest:
27           branch: master
28           slave: lf-virtual1-5
29       - arm-kali:
30           branch: stable/kali
31           slave: lf-virtual1-4
32       - arm-jerma:
33           branch: stable/jerma
34           slave: lf-virtual1-3
35       - arm-iruya:
36           branch: stable/iruya
37           slave: lf-virtual1-2
38       - arm-hunter:
39           branch: stable/hunter
40           slave: lf-virtual1-1
41       - arm64-latest:
42           branch: master
43           slave: lf-virtual1-5
44       - arm64-kali:
45           branch: stable/kali
46           slave: lf-virtual1-4
47       - arm64-jerma:
48           branch: stable/jerma
49           slave: lf-virtual1-3
50       - arm64-iruya:
51           branch: stable/iruya
52           slave: lf-virtual1-2
53       - arm64-hunter:
54           branch: stable/hunter
55           slave: lf-virtual1-1
56
57 - parameter:
58     name: functest-kubernetes-pi-slave
59     parameters:
60       - label:
61           name: slave
62           default: '{slave}'
63
64 - parameter:
65     name: functest-kubernetes-pi-build_tag
66     parameters:
67       - random-string:
68           name: build_tag
69
70 - parameter:
71     name: functest-kubernetes-pi-branch
72     parameters:
73       - string:
74           name: branch
75           default: '{branch}'
76
77 - parameter:
78     name: functest-kubernetes-pi-DEPLOY_SCENARIO
79     parameters:
80       - string:
81           name: DEPLOY_SCENARIO
82           default: k8-nosdn-nofeature-noha
83 - parameter:
84     name: functest-kubernetes-pi-DEBUG
85     parameters:
86       - string:
87           name: DEBUG
88           default: 'true'
89
90 - functest-kubernetes-pi-containers: &functest-kubernetes-pi-containers
91     name: 'functest-kubernetes-pi-containers'
92     repo: '{repo}'
93     port: '{port}'
94     container: '{container}'
95     tag: '{tag}'
96
97 - functest-kubernetes-pi-run-containers: &functest-kubernetes-pi-run-containers
98     name: 'functest-kubernetes-pi-run-containers'
99     <<: *functest-kubernetes-pi-containers
100     test: '{test}'
101     privileged: '{privileged}'
102     network: '{network}'
103
104 - builder:
105     name: functest-kubernetes-pi-pull-containers
106     builders:
107       - shell: |
108           set +x
109           if [ "{repo}" = "_" ]; then
110             image={container}:{tag}
111           elif [ "{port}" = "None" ]; then
112             image={repo}/{container}:{tag}
113           else
114             image={repo}:{port}/{container}:{tag}
115           fi
116           docker pull $image
117
118 - builder:
119     name: functest-kubernetes-pi-run-containers
120     builders:
121       - shell: |
122           set +x
123           [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
124           if [ "{repo}" = "_" ]; then
125             image={container}:{tag}
126           elif [ "{port}" = "None" ]; then
127             image={repo}/{container}:{tag}
128           else
129             image={repo}:{port}/{container}:{tag}
130           fi
131           docker run --rm \
132             --privileged={privileged} \
133             --network={network} \
134             -e S3_ENDPOINT_URL=https://storage.googleapis.com \
135             -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
136             -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
137             -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
138             -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
139             -e NODE_NAME=$slave \
140             -e BUILD_TAG=$BUILD_TAG \
141             -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
142             -e DEPLOY_SCENARIO=$DEPLOY_SCENARIO \
143             -e DEBUG=$DEBUG \
144             -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
145             -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
146             $image run_tests -t {test} -p -r
147
148 - builder:
149     name: functest-kubernetes-pi-remove-images
150     builders:
151       - shell: |
152           set +x
153           if [ "{repo}" = "_" ]; then
154             image={container}:{tag}
155           elif [ "{port}" = "None" ]; then
156             image={repo}/{container}:{tag}
157           else
158             image={repo}:{port}/{container}:{tag}
159           fi
160           docker rmi $image || true
161
162
163 - job-template:
164     name: 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
165     parameters:
166       - functest-kubernetes-pi-slave:
167           slave: '{slave}'
168     builders:
169       - functest-kubernetes-pi-pull-containers:
170           <<: *functest-kubernetes-pi-containers
171
172 - project:
173     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-pull'
174     <<: *functest-kubernetes-pi-params
175     container: 'functest-kubernetes-healthcheck'
176     exclude:
177       - tag: arm-hunter
178       - tag: arm64-hunter
179     jobs:
180       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
181
182 - project:
183     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-pull'
184     <<: *functest-kubernetes-pi-params
185     container: 'functest-kubernetes-smoke'
186     exclude:
187       - tag: arm-hunter
188       - tag: arm64-hunter
189     jobs:
190       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
191
192 - project:
193     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-pull'
194     <<: *functest-kubernetes-pi-params
195     container: 'functest-kubernetes-security'
196     jobs:
197       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
198
199 - project:
200     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-pull'
201     <<: *functest-kubernetes-pi-params
202     container: 'functest-kubernetes-benchmarking'
203     exclude:
204       - tag: arm-hunter
205       - tag: arm64-hunter
206     jobs:
207       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
208
209 - project:
210     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-pull'
211     <<: *functest-kubernetes-pi-params
212     container: 'functest-kubernetes-cnf'
213     jobs:
214       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
215
216 - job-template:
217     name: 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
218     parameters:
219       - functest-kubernetes-pi-slave:
220           slave: '{slave}'
221     builders:
222       - functest-kubernetes-pi-remove-images:
223           <<: *functest-kubernetes-pi-containers
224
225 - project:
226     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-rmi'
227     <<: *functest-kubernetes-pi-params
228     container: 'functest-kubernetes-healthcheck'
229     exclude:
230       - tag: arm-hunter
231       - tag: arm64-hunter
232     jobs:
233       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
234
235 - project:
236     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-rmi'
237     <<: *functest-kubernetes-pi-params
238     container: 'functest-kubernetes-smoke'
239     exclude:
240       - tag: arm-hunter
241       - tag: arm64-hunter
242     jobs:
243       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
244
245 - project:
246     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-rmi'
247     <<: *functest-kubernetes-pi-params
248     container: 'functest-kubernetes-security'
249     jobs:
250       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
251
252 - project:
253     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-rmi'
254     <<: *functest-kubernetes-pi-params
255     container: 'functest-kubernetes-benchmarking'
256     exclude:
257       - tag: arm-hunter
258       - tag: arm64-hunter
259     jobs:
260       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
261
262 - project:
263     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-rmi'
264     <<: *functest-kubernetes-pi-params
265     container: 'functest-kubernetes-cnf'
266     jobs:
267       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
268
269 - job-template:
270     name: 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
271     parameters:
272       - functest-kubernetes-pi-slave:
273           slave: '{slave}'
274       - functest-kubernetes-pi-build_tag:
275           build_tag: ''
276       - functest-kubernetes-pi-DEPLOY_SCENARIO:
277           DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
278       - functest-kubernetes-pi-DEBUG:
279           DEBUG: 'true'
280     builders:
281       - functest-kubernetes-pi-run-containers:
282           <<: *functest-kubernetes-pi-run-containers
283
284 - project:
285     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck'
286     <<: *functest-kubernetes-pi-params
287     container: 'functest-kubernetes-healthcheck'
288     test:
289       - k8s_quick
290       - k8s_smoke
291     exclude:
292       - tag: arm-hunter
293       - tag: arm64-hunter
294     privileged: 'false'
295     network: bridge
296     jobs:
297       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
298
299 - project:
300     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke'
301     <<: *functest-kubernetes-pi-params
302     container: 'functest-kubernetes-smoke'
303     test:
304       - xrally_kubernetes
305       - k8s_conformance
306     exclude:
307       - tag: arm-hunter
308       - tag: arm64-hunter
309     privileged: 'false'
310     network: bridge
311     jobs:
312       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
313
314 - project:
315     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security'
316     <<: *functest-kubernetes-pi-params
317     container: 'functest-kubernetes-security'
318     test:
319       - kube_hunter
320       - kube_bench_master
321       - kube_bench_node
322     privileged: 'false'
323     network: bridge
324     jobs:
325       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
326
327 - project:
328     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking'
329     <<: *functest-kubernetes-pi-params
330     container: 'functest-kubernetes-benchmarking'
331     test:
332       - xrally_kubernetes_full
333     exclude:
334       - tag: arm-hunter
335       - tag: arm64-hunter
336     privileged: 'false'
337     network: bridge
338     jobs:
339       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
340
341 - project:
342     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf'
343     <<: *functest-kubernetes-pi-params
344     container: 'functest-kubernetes-cnf'
345     test:
346       - cnf_conformance
347       - k8s_vims
348     exclude:
349       - tag: iruya
350         test: k8s_vims
351       - tag: arm-iruya
352         test: k8s_vims
353       - tag: arm64-iruya
354         test: k8s_vims
355     privileged: 'false'
356     network: bridge
357     jobs:
358       - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
359
360
361 - builder:
362     name: functest-kubernetes-pi-zip
363     builders:
364       - shell: |
365           set +x
366           [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
367           if [ "{repo}" = "_" ]; then
368             image={container}:{tag}
369           elif [ "{port}" = "None" ]; then
370             image={repo}/{container}:{tag}
371           else
372             image={repo}:{port}/{container}:{tag}
373           fi
374           docker run --rm \
375             -e S3_ENDPOINT_URL=https://storage.googleapis.com \
376             -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes \
377             -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes \
378             -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
379             -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
380             -e BUILD_TAG=$BUILD_TAG \
381             -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
382             -e DEPLOY_SCENARIO=$DEPLOY_SCENARIO \
383             -e DEBUG=$DEBUG \
384             -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
385             -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
386             $image zip_campaign
387
388 - job-template:
389     name: 'functest-kubernetes-pi-{tag}-zip'
390     parameters:
391       - functest-kubernetes-pi-slave:
392           slave: '{slave}'
393       - functest-kubernetes-pi-build_tag:
394           build_tag: ''
395       - functest-kubernetes-pi-DEPLOY_SCENARIO:
396           DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
397       - functest-kubernetes-pi-DEBUG:
398           DEBUG: 'true'
399     builders:
400       - functest-kubernetes-pi-zip:
401           <<: *functest-kubernetes-pi-containers
402
403 - project:
404     name: 'functest-kubernetes-pi-{tag}-zip'
405     <<: *functest-kubernetes-pi-params
406     container: 'functest-kubernetes-security'
407     jobs:
408       - 'functest-kubernetes-pi-{tag}-zip'
409
410 - job-template:
411     name: 'functest-kubernetes-pi-{tag}-daily'
412     project-type: multijob
413     triggers:
414       - timed: '@weekly'
415     parameters:
416       - functest-kubernetes-pi-slave:
417           slave: '{slave}'
418       - functest-kubernetes-pi-build_tag:
419           build_tag: ''
420       - functest-kubernetes-pi-DEPLOY_SCENARIO:
421           DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
422       - functest-kubernetes-pi-DEBUG:
423           DEBUG: 'true'
424     properties:
425       - build-blocker:
426           use-build-blocker: true
427           blocking-level: 'GLOBAL'
428           blocking-jobs:
429             - '^functest-kubernetes(-pi)?-(arm.*-|amd64-)*[a-z]+-(daily|gate|check)$'
430     builders:
431       - multijob:
432           name: remove former images
433           projects:
434             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-rmi'
435               <<: *functest-kubernetes-pi-jobs
436             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-rmi'
437               <<: *functest-kubernetes-pi-jobs
438             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-rmi'
439               <<: *functest-kubernetes-pi-jobs
440             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-rmi'
441               <<: *functest-kubernetes-pi-jobs
442             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-rmi'
443               <<: *functest-kubernetes-pi-jobs
444       - multijob:
445           name: pull containers
446           projects:
447             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-pull'
448               <<: *functest-kubernetes-pi-jobs
449             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-pull'
450               <<: *functest-kubernetes-pi-jobs
451             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-pull'
452               <<: *functest-kubernetes-pi-jobs
453             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-pull'
454               <<: *functest-kubernetes-pi-jobs
455             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-pull'
456               <<: *functest-kubernetes-pi-jobs
457       - multijob:
458           name: ollivier/functest-kubernetes-healthcheck:{tag}
459           projects:
460             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-k8s_quick-run'
461               <<: *functest-kubernetes-pi-jobs
462             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
463               <<: *functest-kubernetes-pi-jobs
464       - multijob:
465           name: ollivier/functest-kubernetes-smoke:{tag}
466           projects:
467             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
468               <<: *functest-kubernetes-pi-jobs
469             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
470               <<: *functest-kubernetes-pi-jobs
471       - multijob:
472           name: ollivier/functest-kubernetes-security:{tag}
473           projects:
474             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-kube_hunter-run'
475               <<: *functest-kubernetes-pi-jobs
476             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-kube_bench_master-run'
477               <<: *functest-kubernetes-pi-jobs
478             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-kube_bench_node-run'
479               <<: *functest-kubernetes-pi-jobs
480       - multijob:
481           name: ollivier/functest-kubernetes-benchmarking:{tag}
482           projects:
483             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-xrally_kubernetes_full-run'
484               <<: *functest-kubernetes-pi-jobs
485       - multijob:
486           name: ollivier/functest-kubernetes-cnf:{tag}
487           projects:
488             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-cnf_conformance-run'
489               <<: *functest-kubernetes-pi-jobs
490             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-k8s_vims-run'
491               <<: *functest-kubernetes-pi-jobs
492       - multijob:
493           name: dump all campaign data
494           projects:
495             - name: 'functest-kubernetes-pi-{tag}-zip'
496               <<: *functest-kubernetes-pi-jobs
497
498
499 - project:
500     name: 'functest-kubernetes-pi'
501     <<: *functest-kubernetes-pi-params
502     jobs:
503       - 'functest-kubernetes-pi-{tag}-daily'
504
505 - view:
506     name: functest-kubernetes-pi
507     view-type: list
508     columns:
509       - status
510       - weather
511       - job
512       - last-success
513       - last-failure
514       - last-duration
515     regex: ^functest-kubernetes-pi-(arm.*-|amd64-)*[a-z]+-daily$