2 - xtesting-jobs: &xtesting-jobs
4 current-parameters: true
6 - xtesting-params: &xtesting-params
7 name: 'xtesting-params'
32 name: xtesting-build_tag
44 - xtesting-containers: &xtesting-containers
45 name: 'xtesting-containers'
48 container: '{container}'
51 - xtesting-run-containers: &xtesting-run-containers
52 name: 'xtesting-build-containers'
53 <<: *xtesting-containers
56 - xtesting-build-containers: &xtesting-build-containers
57 name: 'xtesting-build-containers'
58 <<: *xtesting-containers
63 name: xtesting-pull-containers
67 if [ "{repo}" = "_" ]; then
68 image={container}:{tag}
69 elif [ "{port}" = "None" ]; then
70 image={repo}/{container}:{tag}
72 image={repo}:{port}/{container}:{tag}
74 sudo docker pull $image
77 name: xtesting-build-containers
81 if [ "{repo}" = "_" ]; then
82 image={container}:{tag}
83 elif [ "{port}" = "None" ]; then
84 image={repo}/{container}:{tag}
86 image={repo}:{port}/{container}:{tag}
88 if [ "{ref_arg}" = "None" ]; then
91 build_arg="--build-arg {ref_arg}={ref}"
94 sudo docker build $build_arg \
95 --pull=false --no-cache --force-rm=true \
99 name: xtesting-run-containers
103 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
104 if [ "{repo}" = "_" ]; then
105 image={container}:{tag}
106 elif [ "{port}" = "None" ]; then
107 image={repo}/{container}:{tag}
109 image={repo}:{port}/{container}:{tag}
111 sudo docker run --rm \
112 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
113 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
114 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
115 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
116 -e NODE_NAME=$slave \
117 -e BUILD_TAG=$BUILD_TAG \
118 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
119 -v /home/opnfv/xtesting/.boto:/root/.boto \
121 $image run_tests -t {test} -r -p
124 name: xtesting-remove-images
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 sudo docker rmi $image || true
141 url: https://gerrit.opnfv.org/gerrit/functest-xtesting
142 refspec: '+refs/changes/*:refs/changes/*'
147 name: 'xtesting-{repo}-{container}-{tag}-pull'
152 - xtesting-pull-containers:
153 <<: *xtesting-containers
156 name: 'xtesting-opnfv-xtesting-pull'
158 container: 'xtesting'
160 - 'xtesting-{repo}-{container}-{tag}-pull'
163 name: 'xtesting-{repo}-{container}-{tag}-rmi'
168 - xtesting-remove-images:
169 <<: *xtesting-containers
172 name: 'xtesting-opnfv-xtesting-rmi'
174 container: 'xtesting'
176 - 'xtesting-{repo}-{container}-{tag}-rmi'
179 name: 'xtesting-{repo}-{container}-{tag}-{test}-run'
183 - xtesting-build_tag:
186 - xtesting-run-containers:
187 <<: *xtesting-run-containers
190 name: 'xtesting-opnfv-xtesting'
192 container: 'xtesting'
206 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
213 [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
214 if [ "{repo}" = "_" ]; then
215 image={container}:{tag}
216 elif [ "{port}" = "None" ]; then
217 image={repo}/{container}:{tag}
219 image={repo}:{port}/{container}:{tag}
221 sudo docker run --rm \
222 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
223 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
224 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
225 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
226 -e BUILD_TAG=$BUILD_TAG \
227 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
228 -v /home/opnfv/xtesting/.boto:/root/.boto \
232 name: 'xtesting-{tag}-zip'
234 - xtesting-build_tag:
238 <<: *xtesting-containers
241 name: 'xtesting-{tag}-zip'
243 container: 'xtesting'
245 - 'xtesting-{tag}-zip'
248 name: 'xtesting-{tag}-daily'
249 project-type: multijob
255 - xtesting-build_tag:
259 use-build-blocker: true
260 blocking-level: 'NODE'
262 - '^xtesting-{tag}-(daily|check|gate)$'
265 name: remove former images
267 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
270 name: pull containers
272 - name: 'xtesting-opnfv-xtesting-{tag}-pull'
275 name: opnfv/xtesting:{tag}
277 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
279 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
281 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
283 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
285 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
287 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
290 name: dump all campaign data
292 - name: 'xtesting-{tag}-zip'
296 name: 'xtesting-{repo}-{container}-{tag}-gate'
304 - xtesting-build-containers:
305 <<: *xtesting-build-containers
309 name: 'xtesting-{repo}-{container}-{tag}-check'
319 - xtesting-build-containers:
320 <<: *xtesting-build-containers
324 name: 'xtesting-_-alpine-3.10-rmi'
331 - 'xtesting-{repo}-{container}-{tag}-rmi'
334 name: 'xtesting-_-alpine-3.10-pull'
341 - 'xtesting-{repo}-{container}-{tag}-pull'
344 name: xtesting-opnfv-xtesting-{tag}-build
350 - 'xtesting-{repo}-{container}-{tag}-gate'
351 - 'xtesting-{repo}-{container}-{tag}-check'
354 name: 'xtesting-{tag}-check'
355 project-type: multijob
359 - xtesting-build_tag:
365 use-build-blocker: true
366 blocking-level: 'NODE'
368 - '^xtesting-{tag}-(daily|check|gate)$'
371 name: remove former images
373 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
376 name: remove dependencies
378 - name: 'xtesting-_-alpine-3.10-rmi'
381 name: pull dependencies
383 - name: 'xtesting-_-alpine-3.10-pull'
388 - name: 'xtesting-opnfv-xtesting-{tag}-check'
391 name: opnfv/xtesting:{tag}
393 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
395 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
397 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
399 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
401 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
403 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
407 name: xtesting-patchset-created
410 server-name: 'gerrit.opnfv.org'
412 - patchset-created-event
413 - comment-added-contains-event:
414 comment-contains-value: 'recheck'
415 - comment-added-contains-event:
416 comment-contains-value: 'reverify'
418 - project-compare-type: 'ANT'
419 project-pattern: 'functest-xtesting'
421 - branch-compare-type: 'ANT'
422 branch-pattern: '**/{branch}'
430 name: 'xtesting-{tag}-gate'
431 project-type: multijob
433 - xtesting-patchset-created:
438 - xtesting-build_tag:
442 use-build-blocker: true
443 blocking-level: 'NODE'
445 - '^xtesting-{tag}-(daily|check|gate)$'
448 name: remove former images
450 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
453 name: remove dependencies
455 - name: 'xtesting-_-alpine-3.10-rmi'
458 name: pull dependencies
460 - name: 'xtesting-_-alpine-3.10-pull'
465 - name: 'xtesting-opnfv-xtesting-{tag}-gate'
468 name: opnfv/xtesting:{tag}
470 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
472 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
474 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
476 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
478 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
480 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
487 - 'xtesting-{tag}-daily'
488 - 'xtesting-{tag}-check'
489 - 'xtesting-{tag}-gate'
501 regex: ^xtesting-[a-z]+-(daily|check|gate)$