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'
57 - xtesting-pi-jobs: &xtesting-pi-jobs
58 name: 'xtesting-pi-jobs'
59 current-parameters: true
62 name: xtesting-pi-slave
69 name: xtesting-pi-build_tag
75 - xtesting-pi-run-containers: &xtesting-pi-run-containers
76 name: 'xtesting-pi-run-containers'
77 <<: *xtesting-pi-containers
79 privileged: '{privileged}'
83 name: xtesting-pi-pull-containers
87 if [ "{repo}" = "_" ]; then
88 image={container}:{tag}
89 elif [ "{port}" = "None" ]; then
90 image={repo}/{container}:{tag}
92 image={repo}:{port}/{container}:{tag}
94 sudo docker pull $image
97 name: xtesting-pi-run-containers
101 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
102 if [ "{repo}" = "_" ]; then
103 image={container}:{tag}
104 elif [ "{port}" = "None" ]; then
105 image={repo}/{container}:{tag}
107 image={repo}:{port}/{container}:{tag}
109 sudo docker run --rm \
110 --privileged={privileged} \
111 --network={network} \
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 -v /home/opnfv/xtesting/.boto:/root/.boto \
116 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
117 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
118 -e NODE_NAME=$slave \
119 -e BUILD_TAG=$BUILD_TAG \
120 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
121 $image run_tests -t {test} -p -r
124 name: xtesting-pi-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
138 name: 'xtesting-pi-{repo}-{container}-{tag}-pull'
143 - xtesting-pi-pull-containers:
144 <<: *xtesting-pi-containers
147 name: 'xtesting-pi-ollivier-xtesting-pull'
148 <<: *xtesting-pi-params
149 container: 'xtesting'
151 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
154 name: 'xtesting-pi-ollivier-xtesting-mts-pull'
155 <<: *xtesting-pi-params
156 container: 'xtesting-mts'
158 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
161 name: 'xtesting-pi-{repo}-{container}-{tag}-rmi'
166 - xtesting-pi-remove-images:
167 <<: *xtesting-pi-containers
170 name: 'xtesting-pi-ollivier-xtesting-rmi'
171 <<: *xtesting-pi-params
172 container: 'xtesting'
174 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
177 name: 'xtesting-pi-ollivier-xtesting-mts-rmi'
178 <<: *xtesting-pi-params
179 container: 'xtesting-mts'
181 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
184 name: 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
188 - xtesting-pi-build_tag:
191 - xtesting-pi-run-containers:
192 <<: *xtesting-pi-run-containers
195 name: 'xtesting-pi-ollivier-xtesting'
196 <<: *xtesting-pi-params
197 container: 'xtesting'
209 - {'tag': 'leguer', 'test': 'eighth'}
210 - {'tag': 'kali', 'test': 'eighth'}
211 - {'tag': 'jerma', 'test': 'eighth'}
212 - {'tag': 'iruya', 'test': 'eighth'}
213 - {'tag': 'hunter', 'test': 'eighth'}
214 - {'tag': 'arm-leguer', 'test': 'eighth'}
215 - {'tag': 'arm-kali', 'test': 'eighth'}
216 - {'tag': 'arm-jerma', 'test': 'eighth'}
217 - {'tag': 'arm-iruya', 'test': 'eighth'}
218 - {'tag': 'arm-hunter', 'test': 'eighth'}
219 - {'tag': 'arm64-leguer', 'test': 'eighth'}
220 - {'tag': 'arm64-kali', 'test': 'eighth'}
221 - {'tag': 'arm64-jerma', 'test': 'eighth'}
222 - {'tag': 'arm64-iruya', 'test': 'eighth'}
223 - {'tag': 'arm64-hunter', 'test': 'eighth'}
225 - 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
228 name: 'xtesting-pi-ollivier-xtesting-mts'
229 <<: *xtesting-pi-params
230 container: 'xtesting-mts'
236 - 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
240 name: xtesting-pi-zip
244 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
245 if [ "{repo}" = "_" ]; then
246 image={container}:{tag}
247 elif [ "{port}" = "None" ]; then
248 image={repo}/{container}:{tag}
250 image={repo}:{port}/{container}:{tag}
252 sudo docker run --rm \
253 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
254 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
255 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
256 -v /home/opnfv/xtesting/.boto:/root/.boto \
257 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
258 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
259 -e BUILD_TAG=$BUILD_TAG \
260 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
264 name: 'xtesting-pi-{tag}-zip'
268 - xtesting-pi-build_tag:
272 <<: *xtesting-pi-containers
275 name: 'xtesting-pi-{tag}-zip'
276 <<: *xtesting-pi-params
277 container: 'xtesting'
279 - 'xtesting-pi-{tag}-zip'
282 name: 'xtesting-pi-{tag}-daily'
283 project-type: multijob
289 - xtesting-pi-build_tag:
293 use-build-blocker: true
294 blocking-level: 'NODE'
296 - '^xtesting-pi-{tag}-(daily|docker|review)$'
299 name: remove former images
301 - name: 'xtesting-pi-ollivier-xtesting-{tag}-rmi'
302 <<: *xtesting-pi-jobs
303 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-rmi'
304 <<: *xtesting-pi-jobs
306 name: pull containers
308 - name: 'xtesting-pi-ollivier-xtesting-{tag}-pull'
309 <<: *xtesting-pi-jobs
310 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-pull'
311 <<: *xtesting-pi-jobs
313 name: ollivier/xtesting:{tag}
315 - name: 'xtesting-pi-ollivier-xtesting-{tag}-first-run'
316 <<: *xtesting-pi-jobs
317 - name: 'xtesting-pi-ollivier-xtesting-{tag}-second-run'
318 <<: *xtesting-pi-jobs
319 - name: 'xtesting-pi-ollivier-xtesting-{tag}-third-run'
320 <<: *xtesting-pi-jobs
321 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fourth-run'
322 <<: *xtesting-pi-jobs
323 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fifth-run'
324 <<: *xtesting-pi-jobs
325 - name: 'xtesting-pi-ollivier-xtesting-{tag}-sixth-run'
326 <<: *xtesting-pi-jobs
327 - name: 'xtesting-pi-ollivier-xtesting-{tag}-eighth-run'
328 <<: *xtesting-pi-jobs
330 name: ollivier/xtesting-mts:{tag}
332 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-seventh-run'
333 <<: *xtesting-pi-jobs
335 name: dump all campaign data
337 - name: 'xtesting-pi-{tag}-zip'
338 <<: *xtesting-pi-jobs
341 name: 'xtesting-pi-daily'
342 <<: *xtesting-pi-params
344 - 'xtesting-pi-{tag}-daily'
356 regex: ^xtesting-pi-[a-z-0-9.]+-daily$