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-ollivier-functest-kubernetes-healthcheck'
266 <<: *functest-kubernetes-pi-params
267 container: 'functest-kubernetes-healthcheck'
276 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
279 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke'
280 <<: *functest-kubernetes-pi-params
281 container: 'functest-kubernetes-smoke'
291 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
294 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security'
295 <<: *functest-kubernetes-pi-params
296 container: 'functest-kubernetes-security'
303 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
306 name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf'
307 <<: *functest-kubernetes-pi-params
308 container: 'functest-kubernetes-cnf'
314 - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
318 name: functest-kubernetes-pi-zip
322 [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
323 if [ "{repo}" = "_" ]; then
324 image={container}:{tag}
325 elif [ "{port}" = "None" ]; then
326 image={repo}/{container}:{tag}
328 image={repo}:{port}/{container}:{tag}
331 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
332 -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes \
333 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes \
334 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
335 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
336 -e BUILD_TAG=$BUILD_TAG \
337 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
338 -e DEPLOY_SCENARIO=$DEPLOY_SCENARIO \
340 -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
341 -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
345 name: 'functest-kubernetes-pi-{tag}-zip'
347 - functest-kubernetes-pi-slave:
349 - functest-kubernetes-pi-build_tag:
351 - functest-kubernetes-pi-DEPLOY_SCENARIO:
352 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
353 - functest-kubernetes-pi-DEBUG:
356 - functest-kubernetes-pi-zip:
357 <<: *functest-kubernetes-pi-containers
360 name: 'functest-kubernetes-pi-{tag}-zip'
361 <<: *functest-kubernetes-pi-params
362 container: 'functest-kubernetes-security'
364 - 'functest-kubernetes-pi-{tag}-zip'
367 name: 'functest-kubernetes-pi-{tag}-daily'
368 project-type: multijob
372 - functest-kubernetes-pi-slave:
374 - functest-kubernetes-pi-build_tag:
376 - functest-kubernetes-pi-DEPLOY_SCENARIO:
377 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
378 - functest-kubernetes-pi-DEBUG:
382 use-build-blocker: true
383 blocking-level: 'NODE'
385 - '^functest-kubernetes(-pi)?-(arm.*-|amd64-)*[a-z]+-(daily|gate|check)$'
388 name: remove former images
390 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-rmi'
391 <<: *functest-kubernetes-pi-jobs
392 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-rmi'
393 <<: *functest-kubernetes-pi-jobs
394 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-rmi'
395 <<: *functest-kubernetes-pi-jobs
396 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-rmi'
397 <<: *functest-kubernetes-pi-jobs
399 name: pull containers
401 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-pull'
402 <<: *functest-kubernetes-pi-jobs
403 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-pull'
404 <<: *functest-kubernetes-pi-jobs
405 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-pull'
406 <<: *functest-kubernetes-pi-jobs
407 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-pull'
408 <<: *functest-kubernetes-pi-jobs
410 name: ollivier/functest-kubernetes-healthcheck:{tag}
412 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
413 <<: *functest-kubernetes-pi-jobs
415 name: ollivier/functest-kubernetes-smoke:{tag}
417 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
418 <<: *functest-kubernetes-pi-jobs
419 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
420 <<: *functest-kubernetes-pi-jobs
422 name: ollivier/functest-kubernetes-security:{tag}
424 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-kube_hunter-run'
425 <<: *functest-kubernetes-pi-jobs
426 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-kube_bench-run'
427 <<: *functest-kubernetes-pi-jobs
429 name: ollivier/functest-kubernetes-cnf:{tag}
431 - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-k8s_vims-run'
432 <<: *functest-kubernetes-pi-jobs
434 name: dump all campaign data
436 - name: 'functest-kubernetes-pi-{tag}-zip'
437 <<: *functest-kubernetes-pi-jobs
441 name: 'functest-kubernetes-pi'
442 <<: *functest-kubernetes-pi-params
444 - 'functest-kubernetes-pi-{tag}-daily'
447 name: functest-kubernetes-pi
456 regex: ^functest-kubernetes-pi-(arm.*-|amd64-)*[a-z]+-daily$