2 - xtesting-jobs: &xtesting-jobs
4 current-parameters: true
6 - xtesting-params: &xtesting-params
7 name: 'xtesting-params'
32 name: xtesting-build_tag
51 - xtesting-containers: &xtesting-containers
52 name: 'xtesting-containers'
55 container: '{container}'
58 - xtesting-run-containers: &xtesting-run-containers
59 name: 'xtesting-run-containers'
60 <<: *xtesting-containers
64 name: xtesting-pull-containers
68 if [ "{repo}" = "_" ]; then
69 image={container}:{tag}
70 elif [ "{port}" = "None" ]; then
71 image={repo}/{container}:{tag}
73 image={repo}:{port}/{container}:{tag}
75 sudo docker pull $image
78 name: xtesting-run-containers
82 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
83 if [ "{repo}" = "_" ]; then
84 image={container}:{tag}
85 elif [ "{port}" = "None" ]; then
86 image={repo}/{container}:{tag}
88 image={repo}:{port}/{container}:{tag}
90 sudo docker run --rm \
91 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
92 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
93 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
94 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
95 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
97 -e BUILD_TAG=$BUILD_TAG \
98 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
100 -v /home/opnfv/xtesting/.boto:/root/.boto \
101 $image run_tests -t {test} -p -r
104 name: xtesting-remove-images
108 if [ "{repo}" = "_" ]; then
109 image={container}:{tag}
110 elif [ "{port}" = "None" ]; then
111 image={repo}/{container}:{tag}
113 image={repo}:{port}/{container}:{tag}
115 sudo docker rmi $image || true
117 - xtesting-build-containers: &xtesting-build-containers
118 name: 'xtesting-build-containers'
119 <<: *xtesting-containers
124 name: xtesting-build-containers
128 if [ "{repo}" = "_" ]; then
129 image={container}:{tag}
130 elif [ "{port}" = "None" ]; then
131 image={repo}/{container}:{tag}
133 image={repo}:{port}/{container}:{tag}
135 if [ "{ref_arg}" = "None" ]; then
138 build_arg="--build-arg {ref_arg}={ref}"
141 sudo docker build $build_arg \
142 --pull=false --no-cache --force-rm=true \
149 url: https://gerrit.opnfv.org/gerrit/functest-xtesting
150 refspec: '+refs/changes/*:refs/changes/*'
155 name: 'xtesting-{repo}-{container}-{tag}-pull'
160 - xtesting-pull-containers:
161 <<: *xtesting-containers
164 name: 'xtesting-opnfv-xtesting-pull'
166 container: 'xtesting'
168 - 'xtesting-{repo}-{container}-{tag}-pull'
171 name: 'xtesting-{repo}-{container}-{tag}-rmi'
176 - xtesting-remove-images:
177 <<: *xtesting-containers
180 name: 'xtesting-opnfv-xtesting-rmi'
182 container: 'xtesting'
184 - 'xtesting-{repo}-{container}-{tag}-rmi'
187 name: 'xtesting-{repo}-{container}-{tag}-{test}-run'
191 - xtesting-build_tag:
196 - xtesting-run-containers:
197 <<: *xtesting-run-containers
200 name: 'xtesting-opnfv-xtesting'
202 container: 'xtesting'
216 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
224 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
225 if [ "{repo}" = "_" ]; then
226 image={container}:{tag}
227 elif [ "{port}" = "None" ]; then
228 image={repo}/{container}:{tag}
230 image={repo}:{port}/{container}:{tag}
232 sudo docker run --rm \
233 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
234 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
235 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
236 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
237 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
238 -e BUILD_TAG=$BUILD_TAG \
239 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
241 -v /home/opnfv/xtesting/.boto:/root/.boto \
245 name: 'xtesting-{tag}-zip'
249 - xtesting-build_tag:
255 <<: *xtesting-containers
258 name: 'xtesting-{tag}-zip'
260 container: 'xtesting'
262 - 'xtesting-{tag}-zip'
265 name: 'xtesting-{tag}-daily'
266 project-type: multijob
272 - xtesting-build_tag:
278 use-build-blocker: true
279 blocking-level: 'NODE'
281 - '^xtesting-{tag}-(daily|check|gate)$'
284 name: remove former images
286 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
289 name: pull containers
291 - name: 'xtesting-opnfv-xtesting-{tag}-pull'
294 name: opnfv/xtesting:{tag}
296 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
298 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
300 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
302 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
304 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
306 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
309 name: dump all campaign data
311 - name: 'xtesting-{tag}-zip'
315 name: 'xtesting-{repo}-{container}-{tag}-gate'
323 - xtesting-build-containers:
324 <<: *xtesting-build-containers
328 name: 'xtesting-{repo}-{container}-{tag}-check'
338 - xtesting-build-containers:
339 <<: *xtesting-build-containers
343 name: 'xtesting-_-alpine-3.11-rmi'
350 - 'xtesting-{repo}-{container}-{tag}-rmi'
353 name: 'xtesting-_-alpine-3.11-pull'
360 - 'xtesting-{repo}-{container}-{tag}-pull'
363 name: xtesting-opnfv-xtesting-{tag}-build
369 - 'xtesting-{repo}-{container}-{tag}-gate'
370 - 'xtesting-{repo}-{container}-{tag}-check'
373 name: 'xtesting-{tag}-check'
374 project-type: multijob
378 - xtesting-build_tag:
386 use-build-blocker: true
387 blocking-level: 'NODE'
389 - '^xtesting-{tag}-(daily|check|gate)$'
392 name: remove former images
394 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
397 name: remove dependencies
399 - name: 'xtesting-_-alpine-3.11-rmi'
402 name: pull dependencies
404 - name: 'xtesting-_-alpine-3.11-pull'
409 - name: 'xtesting-opnfv-xtesting-{tag}-check'
412 name: opnfv/xtesting:{tag}
414 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
416 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
418 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
420 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
422 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
424 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
428 name: xtesting-patchset-created
431 server-name: 'gerrit.opnfv.org'
433 - patchset-created-event
434 - comment-added-contains-event:
435 comment-contains-value: 'recheck'
436 - comment-added-contains-event:
437 comment-contains-value: 'reverify'
439 - project-compare-type: 'ANT'
440 project-pattern: 'functest-xtesting'
442 - branch-compare-type: 'ANT'
443 branch-pattern: '**/{branch}'
451 name: 'xtesting-{tag}-gate'
452 project-type: multijob
454 - xtesting-patchset-created:
459 - xtesting-build_tag:
465 use-build-blocker: true
466 blocking-level: 'NODE'
468 - '^xtesting-{tag}-(daily|check|gate)$'
471 name: remove former images
473 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
476 name: remove dependencies
478 - name: 'xtesting-_-alpine-3.11-rmi'
481 name: pull dependencies
483 - name: 'xtesting-_-alpine-3.11-pull'
488 - name: 'xtesting-opnfv-xtesting-{tag}-gate'
491 name: opnfv/xtesting:{tag}
493 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
495 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
497 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
499 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
501 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
503 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
510 - 'xtesting-{tag}-daily'
511 - 'xtesting-{tag}-check'
512 - 'xtesting-{tag}-gate'
524 regex: ^xtesting-[a-z]+-(daily|check|gate)$