2 - xtesting-pi-jobs: &xtesting-pi-jobs
3 name: 'xtesting-pi-jobs'
4 current-parameters: true
6 - xtesting-pi-params: &xtesting-pi-params
7 name: 'xtesting-pi-params'
58 name: xtesting-pi-slave
65 name: xtesting-pi-build_tag
71 name: xtesting-pi-branch
78 name: xtesting-pi-DEBUG
84 - xtesting-pi-containers: &xtesting-pi-containers
85 name: 'xtesting-pi-containers'
88 container: '{container}'
91 - xtesting-pi-run-containers: &xtesting-pi-run-containers
92 name: 'xtesting-pi-run-containers'
93 <<: *xtesting-pi-containers
95 privileged: '{privileged}'
99 name: xtesting-pi-pull-containers
103 if [ "{repo}" = "_" ]; then
104 image={container}:{tag}
105 elif [ "{port}" = "None" ]; then
106 image={repo}/{container}:{tag}
108 image={repo}:{port}/{container}:{tag}
110 sudo docker pull $image
113 name: xtesting-pi-run-containers
117 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
118 if [ "{repo}" = "_" ]; then
119 image={container}:{tag}
120 elif [ "{port}" = "None" ]; then
121 image={repo}/{container}:{tag}
123 image={repo}:{port}/{container}:{tag}
125 sudo docker run --rm \
126 --privileged={privileged} \
127 --network={network} \
128 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
129 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
130 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
131 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
132 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
133 -e NODE_NAME=$slave \
134 -e BUILD_TAG=$BUILD_TAG \
135 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
137 -v /home/opnfv/xtesting/.boto:/root/.boto \
138 $image run_tests -t {test} -p -r
141 name: xtesting-pi-remove-images
145 if [ "{repo}" = "_" ]; then
146 image={container}:{tag}
147 elif [ "{port}" = "None" ]; then
148 image={repo}/{container}:{tag}
150 image={repo}:{port}/{container}:{tag}
152 sudo docker rmi $image || true
156 name: 'xtesting-pi-{repo}-{container}-{tag}-pull'
161 - xtesting-pi-pull-containers:
162 <<: *xtesting-pi-containers
165 name: 'xtesting-pi-ollivier-xtesting-pull'
166 <<: *xtesting-pi-params
167 container: 'xtesting'
169 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
172 name: 'xtesting-pi-ollivier-xtesting-mts-pull'
173 <<: *xtesting-pi-params
174 container: 'xtesting-mts'
190 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
193 name: 'xtesting-pi-{repo}-{container}-{tag}-rmi'
198 - xtesting-pi-remove-images:
199 <<: *xtesting-pi-containers
202 name: 'xtesting-pi-ollivier-xtesting-rmi'
203 <<: *xtesting-pi-params
204 container: 'xtesting'
206 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
209 name: 'xtesting-pi-ollivier-xtesting-mts-rmi'
210 <<: *xtesting-pi-params
211 container: 'xtesting-mts'
227 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
230 name: 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
234 - xtesting-pi-build_tag:
239 - xtesting-pi-run-containers:
240 <<: *xtesting-pi-run-containers
243 name: 'xtesting-pi-ollivier-xtesting'
244 <<: *xtesting-pi-params
245 container: 'xtesting'
256 - 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
259 name: 'xtesting-pi-ollivier-xtesting-mts'
260 <<: *xtesting-pi-params
261 container: 'xtesting-mts'
294 - 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
298 name: xtesting-pi-zip
302 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
303 if [ "{repo}" = "_" ]; then
304 image={container}:{tag}
305 elif [ "{port}" = "None" ]; then
306 image={repo}/{container}:{tag}
308 image={repo}:{port}/{container}:{tag}
310 sudo docker run --rm \
311 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
312 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
313 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
314 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
315 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
316 -e BUILD_TAG=$BUILD_TAG \
317 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
319 -v /home/opnfv/xtesting/.boto:/root/.boto \
323 name: 'xtesting-pi-{tag}-zip'
327 - xtesting-pi-build_tag:
333 <<: *xtesting-pi-containers
336 name: 'xtesting-pi-{tag}-zip'
337 <<: *xtesting-pi-params
338 container: 'xtesting'
340 - 'xtesting-pi-{tag}-zip'
343 name: 'xtesting-pi-{tag}-daily'
344 project-type: multijob
350 - xtesting-pi-build_tag:
356 use-build-blocker: true
357 blocking-level: 'NODE'
359 - '^xtesting-pi-{tag}-(daily|check|gate)$'
362 name: remove former images
364 - name: 'xtesting-pi-ollivier-xtesting-{tag}-rmi'
365 <<: *xtesting-pi-jobs
366 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-rmi'
367 <<: *xtesting-pi-jobs
369 name: pull containers
371 - name: 'xtesting-pi-ollivier-xtesting-{tag}-pull'
372 <<: *xtesting-pi-jobs
373 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-pull'
374 <<: *xtesting-pi-jobs
376 name: ollivier/xtesting:{tag}
378 - name: 'xtesting-pi-ollivier-xtesting-{tag}-first-run'
379 <<: *xtesting-pi-jobs
380 - name: 'xtesting-pi-ollivier-xtesting-{tag}-second-run'
381 <<: *xtesting-pi-jobs
382 - name: 'xtesting-pi-ollivier-xtesting-{tag}-third-run'
383 <<: *xtesting-pi-jobs
384 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fourth-run'
385 <<: *xtesting-pi-jobs
386 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fifth-run'
387 <<: *xtesting-pi-jobs
388 - name: 'xtesting-pi-ollivier-xtesting-{tag}-sixth-run'
389 <<: *xtesting-pi-jobs
391 name: ollivier/xtesting-mts:{tag}
393 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-seventh-run'
394 <<: *xtesting-pi-jobs
396 name: dump all campaign data
398 - name: 'xtesting-pi-{tag}-zip'
399 <<: *xtesting-pi-jobs
404 <<: *xtesting-pi-params
406 - 'xtesting-pi-{tag}-daily'
418 regex: ^xtesting-pi-[a-z]+-(daily|check|gate)$