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
69 - xtesting-pi-run-containers: &xtesting-pi-run-containers
70 name: 'xtesting-pi-run-containers'
71 <<: *xtesting-pi-containers
73 privileged: '{privileged}'
77 name: xtesting-pi-pull-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 sudo docker pull $image
91 name: xtesting-pi-run-containers
95 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
96 if [ "{repo}" = "_" ]; then
97 image={container}:{tag}
98 elif [ "{port}" = "None" ]; then
99 image={repo}/{container}:{tag}
101 image={repo}:{port}/{container}:{tag}
103 sudo docker run --rm \
104 --privileged={privileged} \
105 --network={network} \
106 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
107 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
108 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
109 -v /home/opnfv/xtesting/.boto:/root/.boto \
110 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
111 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
112 -e NODE_NAME=$slave \
113 -e BUILD_TAG=$BUILD_TAG \
114 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
115 $image run_tests -t {test} -p -r
118 name: xtesting-pi-remove-images
122 if [ "{repo}" = "_" ]; then
123 image={container}:{tag}
124 elif [ "{port}" = "None" ]; then
125 image={repo}/{container}:{tag}
127 image={repo}:{port}/{container}:{tag}
129 sudo docker rmi $image || true
132 name: 'xtesting-pi-{repo}-{container}-{tag}-pull'
137 - xtesting-pi-pull-containers:
138 <<: *xtesting-pi-containers
141 name: 'xtesting-pi-ollivier-xtesting-pull'
142 <<: *xtesting-pi-params
143 container: 'xtesting'
145 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
148 name: 'xtesting-pi-ollivier-xtesting-mts-pull'
149 <<: *xtesting-pi-params
150 container: 'xtesting-mts'
152 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
155 name: 'xtesting-pi-{repo}-{container}-{tag}-rmi'
160 - xtesting-pi-remove-images:
161 <<: *xtesting-pi-containers
164 name: 'xtesting-pi-ollivier-xtesting-rmi'
165 <<: *xtesting-pi-params
166 container: 'xtesting'
168 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
171 name: 'xtesting-pi-ollivier-xtesting-mts-rmi'
172 <<: *xtesting-pi-params
173 container: 'xtesting-mts'
175 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
178 name: 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
182 - xtesting-pi-build_tag:
185 - xtesting-pi-run-containers:
186 <<: *xtesting-pi-run-containers
189 name: 'xtesting-pi-ollivier-xtesting'
190 <<: *xtesting-pi-params
191 container: 'xtesting'
203 - {'tag': 'leguer', 'test': 'eighth'}
204 - {'tag': 'kali', 'test': 'eighth'}
205 - {'tag': 'jerma', 'test': 'eighth'}
206 - {'tag': 'iruya', 'test': 'eighth'}
207 - {'tag': 'hunter', 'test': 'eighth'}
208 - {'tag': 'arm-leguer', 'test': 'eighth'}
209 - {'tag': 'arm-kali', 'test': 'eighth'}
210 - {'tag': 'arm-jerma', 'test': 'eighth'}
211 - {'tag': 'arm-iruya', 'test': 'eighth'}
212 - {'tag': 'arm-hunter', 'test': 'eighth'}
213 - {'tag': 'arm64-leguer', 'test': 'eighth'}
214 - {'tag': 'arm64-kali', 'test': 'eighth'}
215 - {'tag': 'arm64-jerma', 'test': 'eighth'}
216 - {'tag': 'arm64-iruya', 'test': 'eighth'}
217 - {'tag': 'arm64-hunter', 'test': 'eighth'}
219 - 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
222 name: 'xtesting-pi-ollivier-xtesting-mts'
223 <<: *xtesting-pi-params
224 container: 'xtesting-mts'
230 - 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
234 name: xtesting-pi-zip
238 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
239 if [ "{repo}" = "_" ]; then
240 image={container}:{tag}
241 elif [ "{port}" = "None" ]; then
242 image={repo}/{container}:{tag}
244 image={repo}:{port}/{container}:{tag}
246 sudo docker run --rm \
247 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
248 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
249 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
250 -v /home/opnfv/xtesting/.boto:/root/.boto \
251 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
252 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
253 -e BUILD_TAG=$BUILD_TAG \
254 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
258 name: 'xtesting-pi-{tag}-zip'
262 - xtesting-pi-build_tag:
266 <<: *xtesting-pi-containers
269 name: 'xtesting-pi-{tag}-zip'
270 <<: *xtesting-pi-params
271 container: 'xtesting'
273 - 'xtesting-pi-{tag}-zip'
276 name: 'xtesting-pi-{tag}-daily'
277 project-type: multijob
283 - xtesting-pi-build_tag:
287 use-build-blocker: true
288 blocking-level: 'NODE'
290 - '^xtesting-pi-{tag}-(daily|docker|review)$'
293 name: remove former images
295 - name: 'xtesting-pi-ollivier-xtesting-{tag}-rmi'
296 <<: *xtesting-pi-jobs
297 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-rmi'
298 <<: *xtesting-pi-jobs
300 name: pull containers
302 - name: 'xtesting-pi-ollivier-xtesting-{tag}-pull'
303 <<: *xtesting-pi-jobs
304 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-pull'
305 <<: *xtesting-pi-jobs
307 name: ollivier/xtesting:{tag}
309 - name: 'xtesting-pi-ollivier-xtesting-{tag}-first-run'
310 <<: *xtesting-pi-jobs
311 - name: 'xtesting-pi-ollivier-xtesting-{tag}-second-run'
312 <<: *xtesting-pi-jobs
313 - name: 'xtesting-pi-ollivier-xtesting-{tag}-third-run'
314 <<: *xtesting-pi-jobs
315 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fourth-run'
316 <<: *xtesting-pi-jobs
317 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fifth-run'
318 <<: *xtesting-pi-jobs
319 - name: 'xtesting-pi-ollivier-xtesting-{tag}-sixth-run'
320 <<: *xtesting-pi-jobs
321 - name: 'xtesting-pi-ollivier-xtesting-{tag}-eighth-run'
322 <<: *xtesting-pi-jobs
324 name: ollivier/xtesting-mts:{tag}
326 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-seventh-run'
327 <<: *xtesting-pi-jobs
329 name: dump all campaign data
331 - name: 'xtesting-pi-{tag}-zip'
332 <<: *xtesting-pi-jobs
335 name: 'xtesting-pi-daily'
336 <<: *xtesting-pi-params
338 - 'xtesting-pi-{tag}-daily'
350 regex: ^xtesting-pi-[a-z-0-9.]+-daily$