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'
45 - xtesting-pi-jobs: &xtesting-pi-jobs
46 name: 'xtesting-pi-jobs'
47 current-parameters: true
50 name: xtesting-pi-slave
57 name: xtesting-pi-build_tag
62 - xtesting-pi-run-containers: &xtesting-pi-run-containers
63 name: 'xtesting-pi-run-containers'
64 <<: *xtesting-pi-containers
66 privileged: '{privileged}'
70 name: xtesting-pi-pull-containers
74 if [ "{repo}" = "_" ]; then
75 image={container}:{tag}
76 elif [ "{port}" = "None" ]; then
77 image={repo}/{container}:{tag}
79 image={repo}:{port}/{container}:{tag}
81 sudo docker pull $image
84 name: xtesting-pi-run-containers
88 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
89 if [ "{repo}" = "_" ]; then
90 image={container}:{tag}
91 elif [ "{port}" = "None" ]; then
92 image={repo}/{container}:{tag}
94 image={repo}:{port}/{container}:{tag}
96 sudo docker run --rm \
97 --privileged={privileged} \
99 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
100 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
101 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
102 -v /home/opnfv/xtesting/.boto:/root/.boto \
103 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
104 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
105 -e NODE_NAME=$slave \
106 -e BUILD_TAG=$BUILD_TAG \
107 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
108 $image run_tests -t {test} -p -r
111 name: xtesting-pi-remove-images
115 if [ "{repo}" = "_" ]; then
116 image={container}:{tag}
117 elif [ "{port}" = "None" ]; then
118 image={repo}/{container}:{tag}
120 image={repo}:{port}/{container}:{tag}
122 sudo docker rmi $image || true
125 name: 'xtesting-pi-{repo}-{container}-{tag}-pull'
130 - xtesting-pi-pull-containers:
131 <<: *xtesting-pi-containers
134 name: 'xtesting-pi-ollivier-xtesting-pull'
135 <<: *xtesting-pi-params
136 container: 'xtesting'
138 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
141 name: 'xtesting-pi-ollivier-xtesting-mts-pull'
142 <<: *xtesting-pi-params
143 container: 'xtesting-mts'
145 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
148 name: 'xtesting-pi-{repo}-{container}-{tag}-rmi'
153 - xtesting-pi-remove-images:
154 <<: *xtesting-pi-containers
157 name: 'xtesting-pi-ollivier-xtesting-rmi'
158 <<: *xtesting-pi-params
159 container: 'xtesting'
161 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
164 name: 'xtesting-pi-ollivier-xtesting-mts-rmi'
165 <<: *xtesting-pi-params
166 container: 'xtesting-mts'
168 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
171 name: 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
175 - xtesting-pi-build_tag:
178 - xtesting-pi-run-containers:
179 <<: *xtesting-pi-run-containers
182 name: 'xtesting-pi-ollivier-xtesting'
183 <<: *xtesting-pi-params
184 container: 'xtesting'
215 - 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
218 name: 'xtesting-pi-ollivier-xtesting-mts'
219 <<: *xtesting-pi-params
220 container: 'xtesting-mts'
226 - 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
230 name: xtesting-pi-zip
234 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
235 if [ "{repo}" = "_" ]; then
236 image={container}:{tag}
237 elif [ "{port}" = "None" ]; then
238 image={repo}/{container}:{tag}
240 image={repo}:{port}/{container}:{tag}
242 sudo docker run --rm \
243 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
244 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
245 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
246 -v /home/opnfv/xtesting/.boto:/root/.boto \
247 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
248 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
249 -e BUILD_TAG=$BUILD_TAG \
250 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
254 name: 'xtesting-pi-{tag}-zip'
258 - xtesting-pi-build_tag:
262 <<: *xtesting-pi-containers
265 name: 'xtesting-pi-{tag}-zip'
266 <<: *xtesting-pi-params
267 container: 'xtesting'
269 - 'xtesting-pi-{tag}-zip'
272 name: 'xtesting-pi-{tag}-daily'
273 project-type: multijob
279 - xtesting-pi-build_tag:
281 # PyYAML and yamllint differ here
282 # see https://github.com/yaml/pyyaml/issues/234
283 # yamllint disable rule:indentation
287 - ^xtesting-(pi-)*{tag}-(daily|docker|review)$
288 # yamllint enable rule:indentation
291 name: remove former images
293 - name: 'xtesting-pi-ollivier-xtesting-{tag}-rmi'
294 <<: *xtesting-pi-jobs
295 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-rmi'
296 <<: *xtesting-pi-jobs
298 name: pull containers
300 - name: 'xtesting-pi-ollivier-xtesting-{tag}-pull'
301 <<: *xtesting-pi-jobs
302 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-pull'
303 <<: *xtesting-pi-jobs
305 name: ollivier/xtesting:{tag}
307 - name: 'xtesting-pi-ollivier-xtesting-{tag}-first-run'
308 <<: *xtesting-pi-jobs
309 - name: 'xtesting-pi-ollivier-xtesting-{tag}-second-run'
310 <<: *xtesting-pi-jobs
311 - name: 'xtesting-pi-ollivier-xtesting-{tag}-third-run'
312 <<: *xtesting-pi-jobs
313 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fourth-run'
314 <<: *xtesting-pi-jobs
315 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fifth-run'
316 <<: *xtesting-pi-jobs
317 - name: 'xtesting-pi-ollivier-xtesting-{tag}-sixth-run'
318 <<: *xtesting-pi-jobs
319 - name: 'xtesting-pi-ollivier-xtesting-{tag}-eighth-run'
320 <<: *xtesting-pi-jobs
322 name: ollivier/xtesting-mts:{tag}
324 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-seventh-run'
325 <<: *xtesting-pi-jobs
327 name: dump all campaign data
329 - name: 'xtesting-pi-{tag}-zip'
330 <<: *xtesting-pi-jobs
333 name: 'xtesting-pi-daily'
334 <<: *xtesting-pi-params
336 - 'xtesting-pi-{tag}-daily'
348 regex: ^xtesting-pi-[a-z-0-9.]+-daily$