2 - functest-kubernetes-jobs: &functest-kubernetes-jobs
3 name: 'functest-kubernetes-jobs'
4 current-parameters: true
6 - functest-kubernetes-params: &functest-kubernetes-params
7 name: 'functest-kubernetes-params'
28 name: functest-kubernetes-slave
35 name: functest-kubernetes-build_tag
41 name: functest-kubernetes-branch
48 name: functest-kubernetes-DEPLOY_SCENARIO
52 default: k8-nosdn-nofeature-noha
54 name: functest-kubernetes-DEBUG
60 - functest-kubernetes-containers: &functest-kubernetes-containers
61 name: 'functest-kubernetes-containers'
64 container: '{container}'
67 - functest-kubernetes-run-containers: &functest-kubernetes-run-containers
68 name: 'functest-kubernetes-run-containers'
69 <<: *functest-kubernetes-containers
73 name: functest-kubernetes-pull-containers
77 if [ "{repo}" = "_" ]; then
78 image={container}:{tag}
79 elif [ "{port}" = "None" ]; then
80 image={repo}/{container}:{tag}
82 image={repo}:{port}/{container}:{tag}
87 name: functest-kubernetes-run-containers
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}
97 image={repo}:{port}/{container}:{tag}
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 \
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
115 name: functest-kubernetes-remove-images
119 if [ "{repo}" = "_" ]; then
120 image={container}:{tag}
121 elif [ "{port}" = "None" ]; then
122 image={repo}/{container}:{tag}
124 image={repo}:{port}/{container}:{tag}
126 docker rmi $image || true
128 - functest-kubernetes-build-containers: &functest-kubernetes-build-containers
129 name: 'functest-kubernetes-build-containers'
130 <<: *functest-kubernetes-containers
135 name: functest-kubernetes-build-containers
139 if [ "{repo}" = "_" ]; then
140 image={container}:{tag}
141 elif [ "{port}" = "None" ]; then
142 image={repo}/{container}:{tag}
144 image={repo}:{port}/{container}:{tag}
146 if [ "{ref_arg}" = "None" ]; then
149 build_arg="--build-arg {ref_arg}={ref}"
152 docker build $build_arg \
153 --pull=false --no-cache --force-rm=true \
157 name: functest-kubernetes-scm
160 url: https://gerrit.opnfv.org/gerrit/functest-kubernetes
161 refspec: '+refs/changes/*:refs/changes/*'
166 name: 'functest-kubernetes-{repo}-{container}-{tag}-pull'
168 - functest-kubernetes-slave:
171 - functest-kubernetes-pull-containers:
172 <<: *functest-kubernetes-containers
175 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-pull'
176 <<: *functest-kubernetes-params
177 container: 'functest-kubernetes-healthcheck'
179 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
182 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-pull'
183 <<: *functest-kubernetes-params
184 container: 'functest-kubernetes-smoke'
186 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
189 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-pull'
190 <<: *functest-kubernetes-params
191 container: 'functest-kubernetes-cnf'
197 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
200 name: 'functest-kubernetes-opnfv-functest-kubernetes-security-pull'
201 <<: *functest-kubernetes-params
202 container: 'functest-kubernetes-security'
207 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
210 name: 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
212 - functest-kubernetes-slave:
215 - functest-kubernetes-remove-images:
216 <<: *functest-kubernetes-containers
219 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-rmi'
220 <<: *functest-kubernetes-params
221 container: 'functest-kubernetes-healthcheck'
223 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
226 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-rmi'
227 <<: *functest-kubernetes-params
228 container: 'functest-kubernetes-smoke'
230 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
233 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-rmi'
234 <<: *functest-kubernetes-params
235 container: 'functest-kubernetes-cnf'
241 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
244 name: 'functest-kubernetes-opnfv-functest-kubernetes-security-rmi'
245 <<: *functest-kubernetes-params
246 container: 'functest-kubernetes-security'
251 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
254 name: 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
256 - functest-kubernetes-slave:
258 - functest-kubernetes-build_tag:
260 - functest-kubernetes-DEPLOY_SCENARIO:
261 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
262 - functest-kubernetes-DEBUG:
265 - functest-kubernetes-run-containers:
266 <<: *functest-kubernetes-run-containers
269 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck'
270 <<: *functest-kubernetes-params
271 container: 'functest-kubernetes-healthcheck'
275 - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
278 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke'
279 <<: *functest-kubernetes-params
280 container: 'functest-kubernetes-smoke'
286 test: xrally_kubernetes
288 test: xrally_kubernetes
290 - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
293 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf'
294 <<: *functest-kubernetes-params
295 container: 'functest-kubernetes-cnf'
306 - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
309 name: 'functest-kubernetes-opnfv-functest-kubernetes-security'
310 <<: *functest-kubernetes-params
311 container: 'functest-kubernetes-security'
325 - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
329 name: functest-kubernetes-zip
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}
339 image={repo}:{port}/{container}:{tag}
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 \
351 -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
352 -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
356 name: 'functest-kubernetes-{tag}-zip'
358 - functest-kubernetes-slave:
360 - functest-kubernetes-build_tag:
362 - functest-kubernetes-DEPLOY_SCENARIO:
363 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
364 - functest-kubernetes-DEBUG:
367 - functest-kubernetes-zip:
368 <<: *functest-kubernetes-containers
371 name: 'functest-kubernetes-{tag}-zip'
372 <<: *functest-kubernetes-params
373 container: 'functest-kubernetes-healthcheck'
375 - 'functest-kubernetes-{tag}-zip'
378 name: 'functest-kubernetes-{tag}-daily'
379 project-type: multijob
383 - functest-kubernetes-slave:
385 - functest-kubernetes-build_tag:
387 - functest-kubernetes-DEPLOY_SCENARIO:
388 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
389 - functest-kubernetes-DEBUG:
393 use-build-blocker: true
394 blocking-level: 'NODE'
396 - '^functest-kubernetes-{tag}-(daily|check|gate)$'
399 name: remove former images
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
410 name: pull containers
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
421 name: opnfv/functest-kubernetes-healthcheck:{tag}
423 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
424 <<: *functest-kubernetes-jobs
426 name: opnfv/functest-kubernetes-smoke:{tag}
427 execution-type: SEQUENTIALLY
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
434 name: opnfv/functest-kubernetes-security:{tag}
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
441 name: opnfv/functest-kubernetes-cnf:{tag}
443 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-k8s_vims-run'
444 <<: *functest-kubernetes-jobs
446 name: dump all campaign data
448 - name: 'functest-kubernetes-{tag}-zip'
449 <<: *functest-kubernetes-jobs
452 name: 'functest-kubernetes-{repo}-{container}-{tag}-gate'
454 - functest-kubernetes-slave:
457 - functest-kubernetes-scm:
460 - functest-kubernetes-build-containers:
461 <<: *functest-kubernetes-build-containers
465 name: 'functest-kubernetes-{repo}-{container}-{tag}-check'
467 - functest-kubernetes-slave:
469 - functest-kubernetes-branch:
472 - functest-kubernetes-scm:
475 - functest-kubernetes-build-containers:
476 <<: *functest-kubernetes-build-containers
480 name: 'functest-kubernetes-_-golang-1.13-alpine3.12-rmi'
484 tag: '1.13-alpine3.12'
487 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
490 name: 'functest-kubernetes-_-golang-1.13-alpine3.12-pull'
494 tag: '1.13-alpine3.12'
497 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
500 name: functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-build
501 <<: *functest-kubernetes-params
502 container: functest-kubernetes-core
506 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
507 - 'functest-kubernetes-{repo}-{container}-{tag}-check'
510 name: functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-build
511 <<: *functest-kubernetes-params
512 container: functest-kubernetes-healthcheck
514 path: docker/healthcheck
516 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
517 - 'functest-kubernetes-{repo}-{container}-{tag}-check'
520 name: functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-build
521 <<: *functest-kubernetes-params
522 container: functest-kubernetes-cnf
530 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
531 - 'functest-kubernetes-{repo}-{container}-{tag}-check'
534 name: functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-build
535 <<: *functest-kubernetes-params
536 container: functest-kubernetes-security
538 path: docker/security
543 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
544 - 'functest-kubernetes-{repo}-{container}-{tag}-check'
547 name: functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-build
548 <<: *functest-kubernetes-params
549 container: functest-kubernetes-smoke
553 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
554 - 'functest-kubernetes-{repo}-{container}-{tag}-check'
557 name: 'functest-kubernetes-{tag}-check'
558 project-type: multijob
560 - functest-kubernetes-slave:
562 - functest-kubernetes-build_tag:
564 - functest-kubernetes-branch:
566 - functest-kubernetes-DEPLOY_SCENARIO:
567 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
568 - functest-kubernetes-DEBUG:
572 use-build-blocker: true
573 blocking-level: 'NODE'
575 - '^functest-kubernetes-{tag}-(daily|check|gate)$'
578 name: remove former images
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
589 name: remove dependencies
591 - name: 'functest-kubernetes-_-golang-1.13-alpine3.12-rmi'
592 <<: *functest-kubernetes-jobs
594 name: pull dependencies
596 - name: 'functest-kubernetes-_-golang-1.13-alpine3.12-pull'
597 <<: *functest-kubernetes-jobs
599 name: build opnfv/functest-kubernetes-core
601 - name: 'functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-check'
602 <<: *functest-kubernetes-jobs
604 name: build opnfv/functest-kubernetes-healthcheck
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
613 name: build containers
615 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-check'
616 <<: *functest-kubernetes-jobs
618 name: opnfv/functest-kubernetes-healthcheck:{tag}
620 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
621 <<: *functest-kubernetes-jobs
623 name: opnfv/functest-kubernetes-smoke:{tag}
624 execution-type: SEQUENTIALLY
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
631 name: opnfv/functest-kubernetes-security:{tag}
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
638 name: opnfv/functest-kubernetes-cnf:{tag}
640 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-k8s_vims-run'
641 <<: *functest-kubernetes-jobs
644 name: functest-kubernetes-patchset-created
647 server-name: 'gerrit.opnfv.org'
649 - patchset-created-event
650 - comment-added-contains-event:
651 comment-contains-value: 'recheck'
652 - comment-added-contains-event:
653 comment-contains-value: 'reverify'
655 - project-compare-type: 'ANT'
656 project-pattern: 'functest-kubernetes'
658 - branch-compare-type: 'ANT'
659 branch-pattern: '**/{branch}'
667 name: 'functest-kubernetes-{tag}-gate'
668 project-type: multijob
670 - functest-kubernetes-patchset-created:
673 - functest-kubernetes-slave:
675 - functest-kubernetes-build_tag:
677 - functest-kubernetes-DEPLOY_SCENARIO:
678 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
679 - functest-kubernetes-DEBUG:
683 use-build-blocker: true
684 blocking-level: 'NODE'
686 - '^functest-kubernetes-{tag}-(daily|check|gate)$'
689 name: remove former images
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
700 name: remove dependencies
702 - name: 'functest-kubernetes-_-golang-1.13-alpine3.12-rmi'
703 <<: *functest-kubernetes-jobs
705 name: pull dependencies
707 - name: 'functest-kubernetes-_-golang-1.13-alpine3.12-pull'
708 <<: *functest-kubernetes-jobs
710 name: build opnfv/functest-kubernetes-core
712 - name: 'functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-gate'
713 <<: *functest-kubernetes-jobs
715 name: build opnfv/functest-kubernetes-healthcheck
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
724 name: build containers
726 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-gate'
727 <<: *functest-kubernetes-jobs
729 name: opnfv/functest-kubernetes-healthcheck:{tag}
731 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
732 <<: *functest-kubernetes-jobs
734 name: opnfv/functest-kubernetes-smoke:{tag}
735 execution-type: SEQUENTIALLY
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
742 name: opnfv/functest-kubernetes-security:{tag}
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
749 name: opnfv/functest-kubernetes-cnf:{tag}
751 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-k8s_vims-run'
752 <<: *functest-kubernetes-jobs
755 name: 'functest-kubernetes'
756 <<: *functest-kubernetes-params
758 - 'functest-kubernetes-{tag}-daily'
759 - 'functest-kubernetes-{tag}-check'
760 - 'functest-kubernetes-{tag}-gate'
763 name: functest-kubernetes
772 regex: ^functest-kubernetes-[a-z]+-daily$