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-cnf-pull'
201 <<: *functest-kubernetes-pi-params
202 container: 'functest-kubernetes-cnf'
204 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
207 name: 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
209 - functest-kubernetes-pi-slave:
212 - functest-kubernetes-pi-remove-images:
213 <<: *functest-kubernetes-pi-containers
216 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-rmi'
217 <<: *functest-kubernetes-pi-params
218 container: 'functest-kubernetes-healthcheck'
223 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
226 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-rmi'
227 <<: *functest-kubernetes-pi-params
228 container: 'functest-kubernetes-smoke'
233 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
236 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-rmi'
237 <<: *functest-kubernetes-pi-params
238 container: 'functest-kubernetes-security'
240 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
243 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-rmi'
244 <<: *functest-kubernetes-pi-params
245 container: 'functest-kubernetes-cnf'
247 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
250 name: 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
252 - functest-kubernetes-pi-slave:
254 - functest-kubernetes-pi-build_tag:
256 - functest-kubernetes-pi-DEPLOY_SCENARIO:
257 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
258 - functest-kubernetes-pi-DEBUG:
261 - functest-kubernetes-pi-run-containers:
262 <<: *functest-kubernetes-pi-run-containers
265 name: 'functest-kubernetes-pi-{repo}-functest-kubernetes-cnf-{tag}-k8s_vims-run'
268 use-build-blocker: true
269 blocking-level: 'GLOBAL'
271 - '^functest-kubernetes(-pi)?-*-k8s_vims-run$'
273 - functest-kubernetes-pi-slave:
275 - functest-kubernetes-pi-build_tag:
277 - functest-kubernetes-pi-DEPLOY_SCENARIO:
278 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
279 - functest-kubernetes-pi-DEBUG:
282 - functest-kubernetes-pi-run-containers:
283 <<: *functest-kubernetes-pi-run-containers
286 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck'
287 <<: *functest-kubernetes-pi-params
288 container: 'functest-kubernetes-healthcheck'
297 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
300 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke'
301 <<: *functest-kubernetes-pi-params
302 container: 'functest-kubernetes-smoke'
312 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
315 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security'
316 <<: *functest-kubernetes-pi-params
317 container: 'functest-kubernetes-security'
324 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
327 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf'
328 <<: *functest-kubernetes-pi-params
329 container: 'functest-kubernetes-cnf'
335 - 'functest-kubernetes-pi-{repo}-functest-kubernetes-cnf-{tag}-k8s_vims-run'
339 name: functest-kubernetes-pi-zip
343 [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
344 if [ "{repo}" = "_" ]; then
345 image={container}:{tag}
346 elif [ "{port}" = "None" ]; then
347 image={repo}/{container}:{tag}
349 image={repo}:{port}/{container}:{tag}
352 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
353 -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes \
354 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes \
355 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
356 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
357 -e BUILD_TAG=$BUILD_TAG \
358 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
359 -e DEPLOY_SCENARIO=$DEPLOY_SCENARIO \
361 -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
362 -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
366 name: 'functest-kubernetes-pi-{tag}-zip'
368 - functest-kubernetes-pi-slave:
370 - functest-kubernetes-pi-build_tag:
372 - functest-kubernetes-pi-DEPLOY_SCENARIO:
373 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
374 - functest-kubernetes-pi-DEBUG:
377 - functest-kubernetes-pi-zip:
378 <<: *functest-kubernetes-pi-containers
381 name: 'functest-kubernetes-pi-{tag}-zip'
382 <<: *functest-kubernetes-pi-params
383 container: 'functest-kubernetes-security'
385 - 'functest-kubernetes-pi-{tag}-zip'
388 name: 'functest-kubernetes-pi-{tag}-daily'
389 project-type: multijob
393 - functest-kubernetes-pi-slave:
395 - functest-kubernetes-pi-build_tag:
397 - functest-kubernetes-pi-DEPLOY_SCENARIO:
398 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
399 - functest-kubernetes-pi-DEBUG:
403 use-build-blocker: true
404 blocking-level: 'NODE'
406 - '^functest-kubernetes(-pi)?-(arm.*-|amd64-)*[a-z]+-(daily|gate|check)$'
409 name: remove former images
411 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-rmi'
412 <<: *functest-kubernetes-pi-jobs
413 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-rmi'
414 <<: *functest-kubernetes-pi-jobs
415 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-rmi'
416 <<: *functest-kubernetes-pi-jobs
417 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-rmi'
418 <<: *functest-kubernetes-pi-jobs
420 name: pull containers
422 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-pull'
423 <<: *functest-kubernetes-pi-jobs
424 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-pull'
425 <<: *functest-kubernetes-pi-jobs
426 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-pull'
427 <<: *functest-kubernetes-pi-jobs
428 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-pull'
429 <<: *functest-kubernetes-pi-jobs
431 name: ollivier/functest-kubernetes-healthcheck:{tag}
433 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
434 <<: *functest-kubernetes-pi-jobs
436 name: ollivier/functest-kubernetes-smoke:{tag}
438 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
439 <<: *functest-kubernetes-pi-jobs
440 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
441 <<: *functest-kubernetes-pi-jobs
443 name: ollivier/functest-kubernetes-security:{tag}
445 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-kube_hunter-run'
446 <<: *functest-kubernetes-pi-jobs
447 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-kube_bench-run'
448 <<: *functest-kubernetes-pi-jobs
450 name: ollivier/functest-kubernetes-cnf:{tag}
452 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-k8s_vims-run'
453 <<: *functest-kubernetes-pi-jobs
455 name: dump all campaign data
457 - name: 'functest-kubernetes-pi-{tag}-zip'
458 <<: *functest-kubernetes-pi-jobs
462 name: 'functest-kubernetes-pi'
463 <<: *functest-kubernetes-pi-params
465 - 'functest-kubernetes-pi-{tag}-daily'
468 name: functest-kubernetes-pi
477 regex: ^functest-kubernetes-pi-(arm.*-|amd64-)*[a-z]+-daily$