2 - xtesting-pi-containers: &xtesting-pi-containers
3 name: 'xtesting-pi-containers'
6 container: '{container}'
9 - xtesting-pi-params: &xtesting-pi-params
10 name: 'xtesting-pi-params'
51 - xtesting-pi-jobs: &xtesting-pi-jobs
52 name: 'xtesting-pi-jobs'
53 current-parameters: true
56 name: xtesting-pi-slave
63 name: xtesting-pi-build_tag
68 - xtesting-pi-run-containers: &xtesting-pi-run-containers
69 name: 'xtesting-pi-run-containers'
70 <<: *xtesting-pi-containers
72 privileged: '{privileged}'
78 name: xtesting-pi-pull-containers
82 if [ "{repo}" = "_" ]; then
83 image={container}:{tag}
84 elif [ "{port}" = "None" ]; then
85 image={repo}/{container}:{tag}
87 image={repo}:{port}/{container}:{tag}
89 sudo docker pull $image
92 name: xtesting-pi-run-containers
97 if [ "{volumes}" != "None" ]; then
98 for i in $(echo {volumes} | tr -d '[]' |sed "s/, / /g" ); \
99 do volumes="-v $i $volumes"; done
102 if [ "{env}" != "None" ]; then
103 for i in $(eval echo {env} | tr -d '[]' |sed "s/, / /g" ); \
104 do env="-e $i $env"; done
106 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
107 if [ "{repo}" = "_" ]; then
108 image={container}:{tag}
109 elif [ "{port}" = "None" ]; then
110 image={repo}/{container}:{tag}
112 image={repo}:{port}/{container}:{tag}
114 mkdir -p $WORKSPACE/results
115 chown 1000:1000 $WORKSPACE/results
116 sudo docker run --rm \
117 --privileged={privileged} \
118 --network={network} \
121 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
122 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
123 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
124 -v /home/opnfv/xtesting/.boto:/root/.boto \
125 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
126 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
127 -e NODE_NAME=$slave \
128 -e BUILD_TAG=$BUILD_TAG \
129 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
130 $image run_tests -t {test} -p -r
133 name: xtesting-pi-remove-images
137 if [ "{repo}" = "_" ]; then
138 image={container}:{tag}
139 elif [ "{port}" = "None" ]; then
140 image={repo}/{container}:{tag}
142 image={repo}:{port}/{container}:{tag}
144 sudo docker rmi $image || true
147 name: 'xtesting-pi-{repo}-{container}-{tag}-pull'
152 - xtesting-pi-pull-containers:
153 <<: *xtesting-pi-containers
156 name: 'xtesting-pi-ollivier-xtesting-pull'
157 <<: *xtesting-pi-params
158 container: 'xtesting'
160 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
163 name: 'xtesting-pi-ollivier-xtesting-mts-pull'
164 <<: *xtesting-pi-params
165 container: 'xtesting-mts'
167 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
170 name: 'xtesting-pi-{repo}-{container}-{tag}-rmi'
175 - xtesting-pi-remove-images:
176 <<: *xtesting-pi-containers
179 name: 'xtesting-pi-ollivier-xtesting-rmi'
180 <<: *xtesting-pi-params
181 container: 'xtesting'
183 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
186 name: 'xtesting-pi-ollivier-xtesting-mts-rmi'
187 <<: *xtesting-pi-params
188 container: 'xtesting-mts'
190 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
193 name: 'xtesting-pi-ollivier-xtesting-{tag}-{test}-run'
197 - xtesting-pi-build_tag:
200 - xtesting-pi-run-containers:
201 <<: *xtesting-pi-run-containers
204 name: 'xtesting-pi-ollivier-xtesting'
205 <<: *xtesting-pi-params
208 container: 'xtesting'
239 - 'xtesting-pi-ollivier-xtesting-{tag}-{test}-run'
242 name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-{test}-run'
246 - xtesting-pi-build_tag:
249 - xtesting-pi-run-containers:
250 <<: *xtesting-pi-run-containers
253 name: 'xtesting-pi-ollivier-xtesting-mts'
254 <<: *xtesting-pi-params
257 container: 'xtesting-mts'
263 - 'xtesting-pi-ollivier-xtesting-mts-{tag}-{test}-run'
266 name: xtesting-pi-zip
271 if [ "{volumes}" != "None" ]; then
272 for i in $(echo {volumes} | tr -d '[]' |sed "s/, / /g" ); \
273 do volumes="-v $i $volumes"; done
276 if [ "{env}" != "None" ]; then
277 for i in $(eval echo {env} | tr -d '[]' |sed "s/, / /g" ); \
278 do env="-e $i $env"; done
280 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
281 if [ "{repo}" = "_" ]; then
282 image={container}:{tag}
283 elif [ "{port}" = "None" ]; then
284 image={repo}/{container}:{tag}
286 image={repo}:{port}/{container}:{tag}
288 sudo docker run --rm \
291 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
292 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
293 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
294 -v /home/opnfv/xtesting/.boto:/root/.boto \
295 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
296 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
297 -e BUILD_TAG=$BUILD_TAG \
298 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
302 name: 'xtesting-pi-{tag}-zip'
306 - xtesting-pi-build_tag:
310 <<: *xtesting-pi-containers
315 name: 'xtesting-pi-{tag}-zip'
316 <<: *xtesting-pi-params
319 container: 'xtesting'
321 - 'xtesting-pi-{tag}-zip'
324 name: 'xtesting-pi-{tag}-daily'
325 project-type: multijob
331 - xtesting-pi-build_tag:
333 # PyYAML and yamllint differ here
334 # see https://github.com/yaml/pyyaml/issues/234
335 # yamllint disable rule:indentation
339 - ^xtesting-(pi-)*{tag}-(daily|docker|review)$
340 # yamllint enable rule:indentation
343 name: remove former images
345 - name: 'xtesting-pi-ollivier-xtesting-{tag}-rmi'
346 <<: *xtesting-pi-jobs
347 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-rmi'
348 <<: *xtesting-pi-jobs
350 name: pull containers
352 - name: 'xtesting-pi-ollivier-xtesting-{tag}-pull'
353 <<: *xtesting-pi-jobs
354 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-pull'
355 <<: *xtesting-pi-jobs
357 name: ollivier/xtesting:{tag}
359 - name: 'xtesting-pi-ollivier-xtesting-{tag}-first-run'
360 <<: *xtesting-pi-jobs
361 - name: 'xtesting-pi-ollivier-xtesting-{tag}-second-run'
362 <<: *xtesting-pi-jobs
363 - name: 'xtesting-pi-ollivier-xtesting-{tag}-third-run'
364 <<: *xtesting-pi-jobs
365 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fourth-run'
366 <<: *xtesting-pi-jobs
367 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fifth-run'
368 <<: *xtesting-pi-jobs
369 - name: 'xtesting-pi-ollivier-xtesting-{tag}-sixth-run'
370 <<: *xtesting-pi-jobs
371 - name: 'xtesting-pi-ollivier-xtesting-{tag}-eighth-run'
372 <<: *xtesting-pi-jobs
374 name: ollivier/xtesting-mts:{tag}
376 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-seventh-run'
377 <<: *xtesting-pi-jobs
379 name: dump all campaign data
381 - name: 'xtesting-pi-{tag}-zip'
382 <<: *xtesting-pi-jobs
388 recipients: cedric.ollivier@orange.com
391 name: 'xtesting-pi-daily'
392 <<: *xtesting-pi-params
394 - 'xtesting-pi-{tag}-daily'
406 regex: ^xtesting-pi-[a-z-0-9.]+-daily$