2 - functest-kubernetes-pi-jobs: &functest-kubernetes-pi-jobs
3 name: 'functest-kubernetes-pi-jobs'
4 current-parameters: true
6 - functest-kubernetes-pi-params: &functest-kubernetes-pi-params
7 name: 'functest-kubernetes-pi-params'
58 name: functest-kubernetes-pi-slave
65 name: functest-kubernetes-pi-build_tag
71 name: functest-kubernetes-pi-branch
78 name: functest-kubernetes-pi-DEPLOY_SCENARIO
82 default: k8-nosdn-nofeature-noha
84 name: functest-kubernetes-pi-DEBUG
90 - functest-kubernetes-pi-containers: &functest-kubernetes-pi-containers
91 name: 'functest-kubernetes-pi-containers'
94 container: '{container}'
97 - functest-kubernetes-pi-run-containers: &functest-kubernetes-pi-run-containers
98 name: 'functest-kubernetes-pi-run-containers'
99 <<: *functest-kubernetes-pi-containers
101 privileged: '{privileged}'
105 name: functest-kubernetes-pi-pull-containers
109 if [ "{repo}" = "_" ]; then
110 image={container}:{tag}
111 elif [ "{port}" = "None" ]; then
112 image={repo}/{container}:{tag}
114 image={repo}:{port}/{container}:{tag}
119 name: functest-kubernetes-pi-run-containers
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}
129 image={repo}:{port}/{container}:{tag}
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 \
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
149 name: functest-kubernetes-pi-remove-images
153 if [ "{repo}" = "_" ]; then
154 image={container}:{tag}
155 elif [ "{port}" = "None" ]; then
156 image={repo}/{container}:{tag}
158 image={repo}:{port}/{container}:{tag}
160 docker rmi $image || true
164 name: 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
166 - functest-kubernetes-pi-slave:
169 - functest-kubernetes-pi-pull-containers:
170 <<: *functest-kubernetes-pi-containers
173 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-pull'
174 <<: *functest-kubernetes-pi-params
175 container: 'functest-kubernetes-healthcheck'
180 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
183 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-pull'
184 <<: *functest-kubernetes-pi-params
185 container: 'functest-kubernetes-smoke'
190 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
193 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-pull'
194 <<: *functest-kubernetes-pi-params
195 container: 'functest-kubernetes-security'
197 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
200 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-pull'
201 <<: *functest-kubernetes-pi-params
202 container: 'functest-kubernetes-benchmarking'
207 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
210 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-pull'
211 <<: *functest-kubernetes-pi-params
212 container: 'functest-kubernetes-cnf'
214 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
217 name: 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
219 - functest-kubernetes-pi-slave:
222 - functest-kubernetes-pi-remove-images:
223 <<: *functest-kubernetes-pi-containers
226 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-rmi'
227 <<: *functest-kubernetes-pi-params
228 container: 'functest-kubernetes-healthcheck'
233 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
236 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-rmi'
237 <<: *functest-kubernetes-pi-params
238 container: 'functest-kubernetes-smoke'
243 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
246 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-rmi'
247 <<: *functest-kubernetes-pi-params
248 container: 'functest-kubernetes-security'
250 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
253 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-rmi'
254 <<: *functest-kubernetes-pi-params
255 container: 'functest-kubernetes-benchmarking'
260 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
263 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-rmi'
264 <<: *functest-kubernetes-pi-params
265 container: 'functest-kubernetes-cnf'
267 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
270 name: 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
272 - functest-kubernetes-pi-slave:
274 - functest-kubernetes-pi-build_tag:
276 - functest-kubernetes-pi-DEPLOY_SCENARIO:
277 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
278 - functest-kubernetes-pi-DEBUG:
281 - functest-kubernetes-pi-run-containers:
282 <<: *functest-kubernetes-pi-run-containers
285 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck'
286 <<: *functest-kubernetes-pi-params
287 container: 'functest-kubernetes-healthcheck'
296 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
299 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke'
300 <<: *functest-kubernetes-pi-params
301 container: 'functest-kubernetes-smoke'
311 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
314 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security'
315 <<: *functest-kubernetes-pi-params
316 container: 'functest-kubernetes-security'
323 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
326 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking'
327 <<: *functest-kubernetes-pi-params
328 container: 'functest-kubernetes-benchmarking'
330 - xrally_kubernetes_full
337 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
340 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf'
341 <<: *functest-kubernetes-pi-params
342 container: 'functest-kubernetes-cnf'
348 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
352 name: functest-kubernetes-pi-zip
356 [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
357 if [ "{repo}" = "_" ]; then
358 image={container}:{tag}
359 elif [ "{port}" = "None" ]; then
360 image={repo}/{container}:{tag}
362 image={repo}:{port}/{container}:{tag}
365 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
366 -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes \
367 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes \
368 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
369 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
370 -e BUILD_TAG=$BUILD_TAG \
371 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
372 -e DEPLOY_SCENARIO=$DEPLOY_SCENARIO \
374 -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
375 -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
379 name: 'functest-kubernetes-pi-{tag}-zip'
381 - functest-kubernetes-pi-slave:
383 - functest-kubernetes-pi-build_tag:
385 - functest-kubernetes-pi-DEPLOY_SCENARIO:
386 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
387 - functest-kubernetes-pi-DEBUG:
390 - functest-kubernetes-pi-zip:
391 <<: *functest-kubernetes-pi-containers
394 name: 'functest-kubernetes-pi-{tag}-zip'
395 <<: *functest-kubernetes-pi-params
396 container: 'functest-kubernetes-security'
398 - 'functest-kubernetes-pi-{tag}-zip'
401 name: 'functest-kubernetes-pi-{tag}-daily'
402 project-type: multijob
406 - functest-kubernetes-pi-slave:
408 - functest-kubernetes-pi-build_tag:
410 - functest-kubernetes-pi-DEPLOY_SCENARIO:
411 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
412 - functest-kubernetes-pi-DEBUG:
416 use-build-blocker: true
417 blocking-level: 'GLOBAL'
419 - '^functest-kubernetes(-pi)?-(arm.*-|amd64-)*[a-z]+-(daily|gate|check)$'
422 name: remove former images
424 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-rmi'
425 <<: *functest-kubernetes-pi-jobs
426 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-rmi'
427 <<: *functest-kubernetes-pi-jobs
428 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-rmi'
429 <<: *functest-kubernetes-pi-jobs
430 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-rmi'
431 <<: *functest-kubernetes-pi-jobs
432 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-rmi'
433 <<: *functest-kubernetes-pi-jobs
435 name: pull containers
437 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-pull'
438 <<: *functest-kubernetes-pi-jobs
439 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-pull'
440 <<: *functest-kubernetes-pi-jobs
441 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-pull'
442 <<: *functest-kubernetes-pi-jobs
443 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-pull'
444 <<: *functest-kubernetes-pi-jobs
445 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-pull'
446 <<: *functest-kubernetes-pi-jobs
448 name: ollivier/functest-kubernetes-healthcheck:{tag}
450 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
451 <<: *functest-kubernetes-pi-jobs
453 name: ollivier/functest-kubernetes-smoke:{tag}
455 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
456 <<: *functest-kubernetes-pi-jobs
457 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
458 <<: *functest-kubernetes-pi-jobs
460 name: ollivier/functest-kubernetes-security:{tag}
462 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-kube_hunter-run'
463 <<: *functest-kubernetes-pi-jobs
464 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-kube_bench-run'
465 <<: *functest-kubernetes-pi-jobs
467 name: ollivier/functest-kubernetes-benchmarking:{tag}
469 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-xrally_kubernetes_full-run'
470 <<: *functest-kubernetes-pi-jobs
472 name: ollivier/functest-kubernetes-cnf:{tag}
474 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-k8s_vims-run'
475 <<: *functest-kubernetes-pi-jobs
477 name: dump all campaign data
479 - name: 'functest-kubernetes-pi-{tag}-zip'
480 <<: *functest-kubernetes-pi-jobs
484 name: 'functest-kubernetes-pi'
485 <<: *functest-kubernetes-pi-params
487 - 'functest-kubernetes-pi-{tag}-daily'
490 name: functest-kubernetes-pi
499 regex: ^functest-kubernetes-pi-(arm.*-|amd64-)*[a-z]+-daily$