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 BUILD_TAG=$BUILD_TAG \
116 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
117 -v /home/opnfv/xtesting/.boto:/root/.boto \
119 $image run_tests -t {test} -p
122 name: xtesting-remove-images
126 if [ "{repo}" = "_" ]; then
127 image={container}:{tag}
128 elif [ "{port}" = "None" ]; then
129 image={repo}/{container}:{tag}
131 image={repo}:{port}/{container}:{tag}
133 sudo docker rmi $image || true
139 url: https://gerrit.opnfv.org/gerrit/functest-xtesting
140 refspec: '+refs/changes/*:refs/changes/*'
145 name: 'xtesting-{repo}-{container}-{tag}-pull'
150 - xtesting-pull-containers:
151 <<: *xtesting-containers
154 name: 'xtesting-opnfv-xtesting-pull'
156 container: 'xtesting'
158 - 'xtesting-{repo}-{container}-{tag}-pull'
161 name: 'xtesting-{repo}-{container}-{tag}-rmi'
166 - xtesting-remove-images:
167 <<: *xtesting-containers
170 name: 'xtesting-opnfv-xtesting-rmi'
172 container: 'xtesting'
174 - 'xtesting-{repo}-{container}-{tag}-rmi'
177 name: 'xtesting-{repo}-{container}-{tag}-{test}-run'
181 - xtesting-build_tag:
184 - xtesting-run-containers:
185 <<: *xtesting-run-containers
188 name: 'xtesting-opnfv-xtesting'
190 container: 'xtesting'
204 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
207 name: 'xtesting-{tag}-daily'
208 project-type: multijob
214 - xtesting-build_tag:
218 use-build-blocker: true
219 blocking-level: 'NODE'
221 - '^xtesting-{tag}-(daily|check|gate)$'
224 name: remove former images
226 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
229 name: pull containers
231 - name: 'xtesting-opnfv-xtesting-{tag}-pull'
234 name: opnfv/xtesting:{tag}
236 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
238 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
240 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
242 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
244 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
246 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
250 name: 'xtesting-{repo}-{container}-{tag}-gate'
258 - xtesting-build-containers:
259 <<: *xtesting-build-containers
263 name: 'xtesting-{repo}-{container}-{tag}-check'
273 - xtesting-build-containers:
274 <<: *xtesting-build-containers
278 name: 'xtesting-_-alpine-3.10-rmi'
285 - 'xtesting-{repo}-{container}-{tag}-rmi'
288 name: 'xtesting-_-alpine-3.10-pull'
295 - 'xtesting-{repo}-{container}-{tag}-pull'
298 name: xtesting-opnfv-xtesting-{tag}-build
304 - 'xtesting-{repo}-{container}-{tag}-gate'
305 - 'xtesting-{repo}-{container}-{tag}-check'
308 name: 'xtesting-{tag}-check'
309 project-type: multijob
313 - xtesting-build_tag:
319 use-build-blocker: true
320 blocking-level: 'NODE'
322 - '^xtesting-{tag}-(daily|check|gate)$'
325 name: remove former images
327 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
330 name: remove dependencies
332 - name: 'xtesting-_-alpine-3.10-rmi'
335 name: pull dependencies
337 - name: 'xtesting-_-alpine-3.10-pull'
342 - name: 'xtesting-opnfv-xtesting-{tag}-check'
345 name: opnfv/xtesting:{tag}
347 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
349 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
351 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
353 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
355 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
357 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
361 name: xtesting-patchset-created
364 server-name: 'gerrit.opnfv.org'
366 - patchset-created-event
367 - comment-added-contains-event:
368 comment-contains-value: 'recheck'
369 - comment-added-contains-event:
370 comment-contains-value: 'reverify'
372 - project-compare-type: 'ANT'
373 project-pattern: 'functest-xtesting'
375 - branch-compare-type: 'ANT'
376 branch-pattern: '**/{branch}'
384 name: 'xtesting-{tag}-gate'
385 project-type: multijob
387 - xtesting-patchset-created:
392 - xtesting-build_tag:
396 use-build-blocker: true
397 blocking-level: 'NODE'
399 - '^xtesting-{tag}-(daily|check|gate)$'
402 name: remove former images
404 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
407 name: remove dependencies
409 - name: 'xtesting-_-alpine-3.10-rmi'
412 name: pull dependencies
414 - name: 'xtesting-_-alpine-3.10-pull'
419 - name: 'xtesting-opnfv-xtesting-{tag}-gate'
422 name: opnfv/xtesting:{tag}
424 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
426 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
428 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
430 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
432 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
434 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
441 - 'xtesting-{tag}-daily'
442 - 'xtesting-{tag}-check'
443 - 'xtesting-{tag}-gate'
455 regex: ^xtesting-[a-z]+-(daily|check|gate)$