2 - functest-defaultparameters: &functest-defaultparameters
3 name: 'functest-defaultparameters'
16 - functest-virtual-defaults
18 - shell: sudo docker pull alpine:3.8
21 name: '{repo}-functest-{container}-{tag}-pull'
23 - functest-virtual-defaults
25 - shell: sudo docker pull {repo}/functest-{container}:{tag}
28 name: repo-functest-container-tag-pull
29 <<: *functest-defaultparameters
40 - '{repo}-functest-{container}-{tag}-pull'
42 - functest-pulljobs: &functest-pulljobs
43 name: 'functest-pulljobs'
46 - name: '{repo}-functest-core-{tag}-pull'
47 - name: '{repo}-functest-tempest-{tag}-pull'
48 - name: '{repo}-functest-healthcheck-{tag}-pull'
49 - name: '{repo}-functest-smoke-{tag}-pull'
50 - name: '{repo}-functest-benchmarking-{tag}-pull'
51 - name: '{repo}-functest-components-{tag}-pull'
52 - name: '{repo}-functest-vnf-{tag}-pull'
53 - name: '{repo}-functest-features-{tag}-pull'
58 - functest-virtual-defaults
60 - shell: sudo docker rmi alpine:3.8
63 name: '{repo}-functest-{container}-{tag}-rmi'
65 - functest-virtual-defaults
67 - shell: sudo docker rmi {repo}/functest-{container}:{tag}
70 name: repo-functest-container-tag-rmi
71 <<: *functest-defaultparameters
82 - '{repo}-functest-{container}-{tag}-rmi'
85 name: '{repo}-functest-{container}-{test}-{tag}-run'
87 - functest-virtual-defaults
90 sudo docker run --rm \
91 -e EXTERNAL_NETWORK=public1 \
92 -v /home/opnfv/functest/results/$JOB_NAME-$BUILD_ID:\
93 /home/opnfv/functest/results \
94 -v /home/opnfv/functest/openstack.creds:\
95 /home/opnfv/functest/conf/env_file \
96 -v /home/opnfv/functest/images:/home/opnfv/functest/images \
97 -v /home/opnfv/functest/tempest_blacklist.yaml:\
98 /usr/lib/python2.7/site-packages/functest/opnfv_tests/openstack/\
99 tempest/custom_tests/blacklist.yaml \
100 -v /home/opnfv/functest/rally_blacklist.yaml:\
101 /usr/lib/python2.7/site-packages/functest/opnfv_tests/openstack/\
102 rally/blacklist.yaml \
103 {repo}/functest-{container}:{tag} run_tests -t {test} || \
105 gsutil -m cp -r /home/opnfv/functest/results/$JOB_NAME-$BUILD_ID \
106 gs://artifacts.opnfv.org/functest/ > /dev/null
107 find /home/opnfv/functest/results/$JOB_NAME-$BUILD_ID -type f \
109 "http://artifacts.opnfv.org/functest/$JOB_NAME-$BUILD_ID/%f\n"
110 sudo rm -rf /home/opnfv/functest/results/$JOB_NAME-$BUILD_ID
114 name: repo-functest-healthcheck-test-tag-run
115 <<: *functest-defaultparameters
116 container: healthcheck
132 - '{repo}-functest-{container}-{test}-{tag}-run'
134 - functest-healthcheckjobs: &functest-healthcheckjobs
135 name: 'functest-healthcheckjobs'
137 - name: '{repo}-functest-healthcheck-connection_check-{tag}-run'
138 - name: '{repo}-functest-healthcheck-tenantnetwork1-{tag}-run'
139 - name: '{repo}-functest-healthcheck-tenantnetwork2-{tag}-run'
140 - name: '{repo}-functest-healthcheck-vmready1-{tag}-run'
141 - name: '{repo}-functest-healthcheck-vmready2-{tag}-run'
142 - name: '{repo}-functest-healthcheck-singlevm1-{tag}-run'
143 - name: '{repo}-functest-healthcheck-singlevm2-{tag}-run'
144 - name: '{repo}-functest-healthcheck-vping_ssh-{tag}-run'
145 - name: '{repo}-functest-healthcheck-vping_userdata-{tag}-run'
146 - name: '{repo}-functest-healthcheck-cinder_test-{tag}-run'
147 - name: '{repo}-functest-healthcheck-odl-{tag}-run'
148 - name: '{repo}-functest-healthcheck-api_check-{tag}-run'
149 - name: '{repo}-functest-healthcheck-snaps_health_check-{tag}-run'
152 name: repo-functest-smoke-test-tag-run
153 <<: *functest-defaultparameters
157 - neutron-tempest-plugin-api
168 - '{repo}-functest-{container}-{test}-{tag}-run'
170 - functest-smokejobs: &functest-smokejobs
171 name: 'functest-smokejobs'
173 - name: '{repo}-functest-smoke-tempest_smoke-{tag}-run'
174 - name: '{repo}-functest-smoke-neutron-tempest-plugin-api-{tag}-run'
175 - name: '{repo}-functest-smoke-rally_sanity-{tag}-run'
176 - name: '{repo}-functest-smoke-rally_jobs-{tag}-run'
177 - name: '{repo}-functest-smoke-refstack_defcore-{tag}-run'
178 - name: '{repo}-functest-smoke-patrole-{tag}-run'
179 - name: '{repo}-functest-smoke-snaps_smoke-{tag}-run'
180 - name: '{repo}-functest-smoke-neutron_trunk-{tag}-run'
181 - name: '{repo}-functest-smoke-networking-bgpvpn-{tag}-run'
182 - name: '{repo}-functest-smoke-networking-sfc-{tag}-run'
183 - name: '{repo}-functest-smoke-barbican-{tag}-run'
186 name: repo-functest-benchmarking-test-tag-run'
187 <<: *functest-defaultparameters
188 container: benchmarking
193 - '{repo}-functest-{container}-{test}-{tag}-run'
195 - functest-benchmarkingjobs: &functest-benchmarkingjobs
196 name: 'functest-benchmarkingjobs'
198 - name: '{repo}-functest-benchmarking-vmtp-{tag}-run'
199 - name: '{repo}-functest-benchmarking-shaker-{tag}-run'
202 name: repo-functest-components-test-tag-run
203 <<: *functest-defaultparameters
204 container: components
210 - '{repo}-functest-{container}-{test}-{tag}-run'
212 - functest-componentsjobs: &functest-componentsjobs
213 name: 'functest-componentsjobs'
215 - name: '{repo}-functest-components-tempest_full-{tag}-run'
216 - name: '{repo}-functest-components-tempest_scenario-{tag}-run'
217 # - name: '{repo}-functest-components-rally_full-{tag}-run'
220 name: repo-functest-vnf-{test}-{tag}-run
221 <<: *functest-defaultparameters
230 - '{repo}-functest-{container}-{test}-{tag}-run'
232 - functest-vnfjobs: &functest-vnfjobs
233 name: 'functest-vnfjobs'
235 - name: '{repo}-functest-vnf-cloudify-{tag}-run'
236 - name: '{repo}-functest-vnf-cloudify_ims-{tag}-run'
237 - name: '{repo}-functest-vnf-heat_ims-{tag}-run'
238 - name: '{repo}-functest-vnf-vyos_vrouter-{tag}-run'
239 - name: '{repo}-functest-vnf-juju_epc-{tag}-run'
242 name: repo-functest-features-test-tag-run
243 <<: *functest-defaultparameters
246 - doctor-notification
253 - '{repo}-functest-{container}-{test}-{tag}-run'
255 - functest-featuresjobs: &functest-featuresjobs
256 name: 'functest-featuresjobs'
258 - name: '{repo}-functest-features-doctor-notification-{tag}-run'
259 - name: '{repo}-functest-features-bgpvpn-{tag}-run'
260 - name: '{repo}-functest-features-functest-odl-sfc-{tag}-run'
261 - name: '{repo}-functest-features-barometercollectd-{tag}-run'
262 - name: '{repo}-functest-features-vgpu-{tag}-run'
263 - name: '{repo}-functest-features-stor4nfv_os-{tag}-run'
266 name: '{repo}-functest-{tag}-run'
267 project-type: multijob
269 - functest-virtual-defaults
273 <<: *functest-healthcheckjobs
276 <<: *functest-smokejobs
279 <<: *functest-benchmarkingjobs
282 <<: *functest-componentsjobs
285 # <<: *functest-vnfjobs
288 <<: *functest-featuresjobs
291 name: repo-functest-tag-run
292 <<: *functest-defaultparameters
294 - '{repo}-functest-{tag}-run'
296 - functest-advcontainers-rmi: &functest-advcontainers-rmi
297 name: 'functest-advcontainers-rmi'
299 - name: '{repo}-functest-smoke-{tag}-rmi'
300 - name: '{repo}-functest-benchmarking-{tag}-rmi'
301 - name: '{repo}-functest-components-{tag}-rmi'
302 - name: '{repo}-functest-vnf-{tag}-rmi'
303 - name: '{repo}-functest-features-{tag}-rmi'
306 name: '{repo}-functest-{tag}-daily'
307 <<: *functest-defaultparameters
308 project-type: multijob
313 use-build-blocker: true
315 queue-scanning: 'BUILDABLE'
317 - '{repo}-functest-.*-.*'
319 - functest-virtual-defaults
322 name: pull containers
323 <<: *functest-pulljobs
328 - name: '{repo}-functest-{tag}-run'
330 name: remove advanced functest containers
332 <<: *functest-advcontainers-rmi
334 name: remove functest-tempest
337 - name: '{repo}-functest-tempest-{tag}-rmi'
339 name: remove functest-core
342 - name: '{repo}-functest-core-{tag}-rmi'
349 name: repo-functest-tag-daily
350 <<: *functest-defaultparameters
352 - '{repo}-functest-{tag}-daily'
354 - functest-gateparameters: &functest-gateparameters
355 name: 'functest-gateparameters'
357 - functest-virtual-defaults
359 - functest-checkparameters: &functest-checkparameters
360 name: 'functest-checkparameters'
362 - functest-virtual-defaults
368 name: build-containers
371 case "{container}" in
375 args="--build-arg BRANCH={ref}" ;;
377 cd docker/{container}
379 ${{args}} --pull=false --no-cache --force-rm=true \
380 -t {repo}/functest-{container}:{tag} .
386 url: https://gerrit.opnfv.org/gerrit/functest
387 refspec: '+refs/changes/*:refs/changes/*'
391 - functest-buildparameters: &functest-buildparameters
392 name: 'functest-buildparameters'
393 container: '{container}'
398 name: '{repo}-functest-{container}-{tag}-gate'
399 <<: *functest-gateparameters
406 <<: *functest-buildparameters
409 name: '{repo}-functest-{container}-{tag}-check'
410 <<: *functest-checkparameters
417 <<: *functest-buildparameters
420 name: repo-functest-container-tag-build
421 <<: *functest-defaultparameters
432 - '{repo}-functest-{container}-{tag}-gate'
433 - '{repo}-functest-{container}-{tag}-check'
435 - functest-projectparameters: &functest-projectparameters
436 name: 'functest-projectparameters'
437 current-parameters: true
440 name: '{repo}-functest-{tag}-gate'
441 project-type: multijob
442 <<: *functest-gateparameters
444 - gerrit-trigger-patchset-created:
450 use-build-blocker: true
452 queue-scanning: 'BUILDABLE'
454 - '{repo}-functest-.*-.*'
459 - name: 'alpine-pull'
461 name: build functest-core
463 - name: '{repo}-functest-core-{tag}-gate'
464 <<: *functest-projectparameters
466 name: build functest-tempest
468 - name: '{repo}-functest-tempest-{tag}-gate'
469 <<: *functest-projectparameters
471 name: build all remaining contrainers
473 - name: '{repo}-functest-healthcheck-{tag}-gate'
474 <<: *functest-projectparameters
475 - name: '{repo}-functest-smoke-{tag}-gate'
476 <<: *functest-projectparameters
477 - name: '{repo}-functest-benchmarking-{tag}-gate'
478 <<: *functest-projectparameters
479 - name: '{repo}-functest-components-{tag}-gate'
480 <<: *functest-projectparameters
481 - name: '{repo}-functest-vnf-{tag}-gate'
482 <<: *functest-projectparameters
483 - name: '{repo}-functest-features-{tag}-gate'
484 <<: *functest-projectparameters
489 - name: '{repo}-functest-{tag}-run'
491 name: remove advanced functest containers
493 <<: *functest-advcontainers-rmi
495 name: remove functest-tempest
498 - name: '{repo}-functest-tempest-{tag}-rmi'
499 <<: *functest-projectparameters
501 name: remove functest-core
504 - name: '{repo}-functest-core-{tag}-rmi'
505 <<: *functest-projectparameters
511 <<: *functest-projectparameters
514 name: '{repo}-functest-{tag}-check'
515 project-type: multijob
516 <<: *functest-checkparameters
519 use-build-blocker: true
521 queue-scanning: 'BUILDABLE'
523 - '{repo}-functest-.*-.*'
528 - name: 'alpine-pull'
530 name: build functest-core
532 - name: '{repo}-functest-core-{tag}-check'
533 <<: *functest-projectparameters
535 name: build functest-tempest
537 - name: '{repo}-functest-tempest-{tag}-check'
538 <<: *functest-projectparameters
540 name: build all remaining contrainers
542 - name: '{repo}-functest-healthcheck-{tag}-check'
543 <<: *functest-projectparameters
544 - name: '{repo}-functest-smoke-{tag}-check'
545 <<: *functest-projectparameters
546 - name: '{repo}-functest-benchmarking-{tag}-check'
547 <<: *functest-projectparameters
548 - name: '{repo}-functest-components-{tag}-check'
549 <<: *functest-projectparameters
550 - name: '{repo}-functest-vnf-{tag}-check'
551 <<: *functest-projectparameters
552 - name: '{repo}-functest-features-{tag}-check'
553 <<: *functest-projectparameters
558 - name: '{repo}-functest-{tag}-run'
560 name: remove advanced functest containers
562 <<: *functest-advcontainers-rmi
564 name: remove functest-tempest
567 - name: '{repo}-functest-tempest-{tag}-rmi'
568 <<: *functest-projectparameters
570 name: remove functest-core
573 - name: '{repo}-functest-core-{tag}-rmi'
574 <<: *functest-projectparameters
580 <<: *functest-projectparameters
583 name: repo-functest-tag-build
584 <<: *functest-defaultparameters
586 - '{repo}-functest-{tag}-gate'
587 - '{repo}-functest-{tag}-check'