2 - xtesting-jobs: &xtesting-jobs
4 current-parameters: true
6 - xtesting-params: &xtesting-params
7 name: 'xtesting-params'
35 name: xtesting-build_tag
54 - xtesting-containers: &xtesting-containers
55 name: 'xtesting-containers'
58 container: '{container}'
61 - xtesting-run-containers: &xtesting-run-containers
62 name: 'xtesting-run-containers'
63 <<: *xtesting-containers
67 name: xtesting-pull-containers
71 if [ "{repo}" = "_" ]; then
72 image={container}:{tag}
73 elif [ "{port}" = "None" ]; then
74 image={repo}/{container}:{tag}
76 image={repo}:{port}/{container}:{tag}
78 sudo docker pull $image
81 name: xtesting-run-containers
85 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
86 if [ "{repo}" = "_" ]; then
87 image={container}:{tag}
88 elif [ "{port}" = "None" ]; then
89 image={repo}/{container}:{tag}
91 image={repo}:{port}/{container}:{tag}
93 sudo docker run --rm \
94 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
95 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
96 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
97 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
98 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
100 -e BUILD_TAG=$BUILD_TAG \
101 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
103 -v /home/opnfv/xtesting/.boto:/root/.boto \
104 $image run_tests -t {test} -p -r
107 name: xtesting-remove-images
111 if [ "{repo}" = "_" ]; then
112 image={container}:{tag}
113 elif [ "{port}" = "None" ]; then
114 image={repo}/{container}:{tag}
116 image={repo}:{port}/{container}:{tag}
118 sudo docker rmi $image || true
120 - xtesting-build-containers: &xtesting-build-containers
121 name: 'xtesting-build-containers'
122 <<: *xtesting-containers
127 name: xtesting-build-containers
131 if [ "{repo}" = "_" ]; then
132 image={container}:{tag}
133 elif [ "{port}" = "None" ]; then
134 image={repo}/{container}:{tag}
136 image={repo}:{port}/{container}:{tag}
138 if [ "{ref_arg}" = "None" ]; then
141 build_arg="--build-arg {ref_arg}={ref}"
144 sudo docker build $build_arg \
145 --pull=false --no-cache --force-rm=true \
152 url: https://gerrit.opnfv.org/gerrit/functest-xtesting
153 refspec: '+refs/changes/*:refs/changes/*'
158 name: 'xtesting-{repo}-{container}-{tag}-pull'
163 - xtesting-pull-containers:
164 <<: *xtesting-containers
167 name: 'xtesting-opnfv-xtesting-pull'
169 container: 'xtesting'
171 - 'xtesting-{repo}-{container}-{tag}-pull'
174 name: 'xtesting-{repo}-{container}-{tag}-rmi'
179 - xtesting-remove-images:
180 <<: *xtesting-containers
183 name: 'xtesting-opnfv-xtesting-rmi'
185 container: 'xtesting'
187 - 'xtesting-{repo}-{container}-{tag}-rmi'
190 name: 'xtesting-{repo}-{container}-{tag}-{test}-run'
194 - xtesting-build_tag:
199 - xtesting-run-containers:
200 <<: *xtesting-run-containers
203 name: 'xtesting-opnfv-xtesting'
205 container: 'xtesting'
219 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
227 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
228 if [ "{repo}" = "_" ]; then
229 image={container}:{tag}
230 elif [ "{port}" = "None" ]; then
231 image={repo}/{container}:{tag}
233 image={repo}:{port}/{container}:{tag}
235 sudo docker run --rm \
236 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
237 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
238 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
239 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
240 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
241 -e BUILD_TAG=$BUILD_TAG \
242 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
244 -v /home/opnfv/xtesting/.boto:/root/.boto \
248 name: 'xtesting-{tag}-zip'
252 - xtesting-build_tag:
258 <<: *xtesting-containers
261 name: 'xtesting-{tag}-zip'
263 container: 'xtesting'
265 - 'xtesting-{tag}-zip'
268 name: 'xtesting-{tag}-daily'
269 project-type: multijob
275 - xtesting-build_tag:
281 use-build-blocker: true
282 blocking-level: 'NODE'
284 - '^xtesting-{tag}-(daily|check|gate)$'
287 name: remove former images
289 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
292 name: pull containers
294 - name: 'xtesting-opnfv-xtesting-{tag}-pull'
297 name: opnfv/xtesting:{tag}
299 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
301 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
303 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
305 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
307 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
309 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
312 name: dump all campaign data
314 - name: 'xtesting-{tag}-zip'
318 name: 'xtesting-{repo}-{container}-{tag}-gate'
326 - xtesting-build-containers:
327 <<: *xtesting-build-containers
331 name: 'xtesting-{repo}-{container}-{tag}-check'
341 - xtesting-build-containers:
342 <<: *xtesting-build-containers
346 name: 'xtesting-_-alpine-3.11-rmi'
353 - 'xtesting-{repo}-{container}-{tag}-rmi'
356 name: 'xtesting-_-alpine-3.11-pull'
363 - 'xtesting-{repo}-{container}-{tag}-pull'
366 name: xtesting-opnfv-xtesting-{tag}-build
372 - 'xtesting-{repo}-{container}-{tag}-gate'
373 - 'xtesting-{repo}-{container}-{tag}-check'
376 name: 'xtesting-{tag}-check'
377 project-type: multijob
381 - xtesting-build_tag:
389 use-build-blocker: true
390 blocking-level: 'NODE'
392 - '^xtesting-{tag}-(daily|check|gate)$'
395 name: remove former images
397 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
400 name: remove dependencies
402 - name: 'xtesting-_-alpine-3.11-rmi'
405 name: pull dependencies
407 - name: 'xtesting-_-alpine-3.11-pull'
412 - name: 'xtesting-opnfv-xtesting-{tag}-check'
415 name: opnfv/xtesting:{tag}
417 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
419 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
421 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
423 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
425 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
427 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
431 name: xtesting-patchset-created
434 server-name: 'gerrit.opnfv.org'
436 - patchset-created-event
437 - comment-added-contains-event:
438 comment-contains-value: 'recheck'
439 - comment-added-contains-event:
440 comment-contains-value: 'reverify'
442 - project-compare-type: 'ANT'
443 project-pattern: 'functest-xtesting'
445 - branch-compare-type: 'ANT'
446 branch-pattern: '**/{branch}'
454 name: 'xtesting-{tag}-gate'
455 project-type: multijob
457 - xtesting-patchset-created:
462 - xtesting-build_tag:
468 use-build-blocker: true
469 blocking-level: 'NODE'
471 - '^xtesting-{tag}-(daily|check|gate)$'
474 name: remove former images
476 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
479 name: remove dependencies
481 - name: 'xtesting-_-alpine-3.11-rmi'
484 name: pull dependencies
486 - name: 'xtesting-_-alpine-3.11-pull'
491 - name: 'xtesting-opnfv-xtesting-{tag}-gate'
494 name: opnfv/xtesting:{tag}
496 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
498 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
500 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
502 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
504 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
506 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
513 - 'xtesting-{tag}-daily'
514 - 'xtesting-{tag}-check'
515 - 'xtesting-{tag}-gate'
527 regex: ^xtesting-[a-z]+-(daily|check|gate)$