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'
67 name: xtesting-pi-slave
74 name: xtesting-pi-build_tag
80 - xtesting-pi-containers: &xtesting-pi-containers
81 name: 'xtesting-pi-containers'
84 container: '{container}'
87 - xtesting-pi-run-containers: &xtesting-pi-run-containers
88 name: 'xtesting-pi-run-containers'
89 <<: *xtesting-pi-containers
91 privileged: '{privileged}'
95 name: xtesting-pi-pull-containers
99 if [ "{repo}" = "_" ]; then
100 image={container}:{tag}
101 elif [ "{port}" = "None" ]; then
102 image={repo}/{container}:{tag}
104 image={repo}:{port}/{container}:{tag}
106 sudo docker pull $image
109 name: xtesting-pi-run-containers
113 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
114 if [ "{repo}" = "_" ]; then
115 image={container}:{tag}
116 elif [ "{port}" = "None" ]; then
117 image={repo}/{container}:{tag}
119 image={repo}:{port}/{container}:{tag}
121 sudo docker run --rm \
122 --privileged={privileged} \
123 --network={network} \
124 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
125 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
126 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
127 -v /home/opnfv/xtesting/.boto:/root/.boto \
128 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
129 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
130 -e NODE_NAME=$slave \
131 -e BUILD_TAG=$BUILD_TAG \
132 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
133 $image run_tests -t {test} -p -r
136 name: xtesting-pi-remove-images
140 if [ "{repo}" = "_" ]; then
141 image={container}:{tag}
142 elif [ "{port}" = "None" ]; then
143 image={repo}/{container}:{tag}
145 image={repo}:{port}/{container}:{tag}
147 sudo docker rmi $image || true
151 name: 'xtesting-pi-{repo}-{container}-{tag}-pull'
156 - xtesting-pi-pull-containers:
157 <<: *xtesting-pi-containers
160 name: 'xtesting-pi-ollivier-xtesting-pull'
161 <<: *xtesting-pi-params
162 container: 'xtesting'
164 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
167 name: 'xtesting-pi-ollivier-xtesting-mts-pull'
168 <<: *xtesting-pi-params
169 container: 'xtesting-mts'
171 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
174 name: 'xtesting-pi-{repo}-{container}-{tag}-rmi'
179 - xtesting-pi-remove-images:
180 <<: *xtesting-pi-containers
183 name: 'xtesting-pi-ollivier-xtesting-rmi'
184 <<: *xtesting-pi-params
185 container: 'xtesting'
187 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
190 name: 'xtesting-pi-ollivier-xtesting-mts-rmi'
191 <<: *xtesting-pi-params
192 container: 'xtesting-mts'
194 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
197 name: 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
201 - xtesting-pi-build_tag:
204 - xtesting-pi-run-containers:
205 <<: *xtesting-pi-run-containers
208 name: 'xtesting-pi-ollivier-xtesting'
209 <<: *xtesting-pi-params
210 container: 'xtesting'
221 - 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
224 name: 'xtesting-pi-ollivier-xtesting-mts'
225 <<: *xtesting-pi-params
226 container: 'xtesting-mts'
232 - 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
236 name: xtesting-pi-zip
240 if [ "{repo}" = "_" ]; then
241 image={container}:{tag}
242 elif [ "{port}" = "None" ]; then
243 image={repo}/{container}:{tag}
245 image={repo}:{port}/{container}:{tag}
247 sudo docker run --rm \
248 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
249 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
250 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
251 -v /home/opnfv/xtesting/.boto:/root/.boto \
252 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
253 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
254 -e BUILD_TAG=$BUILD_TAG \
255 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
259 name: 'xtesting-pi-{tag}-zip'
263 - xtesting-pi-build_tag:
267 <<: *xtesting-pi-containers
270 name: 'xtesting-pi-{tag}-zip'
271 <<: *xtesting-pi-params
272 container: 'xtesting'
274 - 'xtesting-pi-{tag}-zip'
277 name: 'xtesting-pi-{tag}-daily'
278 project-type: multijob
284 - xtesting-pi-build_tag:
288 use-build-blocker: true
289 blocking-level: 'NODE'
291 - '^xtesting-pi-{tag}-(daily|docker|review)$'
294 name: remove former images
296 - name: 'xtesting-pi-ollivier-xtesting-{tag}-rmi'
297 <<: *xtesting-pi-jobs
298 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-rmi'
299 <<: *xtesting-pi-jobs
301 name: pull containers
303 - name: 'xtesting-pi-ollivier-xtesting-{tag}-pull'
304 <<: *xtesting-pi-jobs
305 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-pull'
306 <<: *xtesting-pi-jobs
308 name: ollivier/xtesting:{tag}
310 - name: 'xtesting-pi-ollivier-xtesting-{tag}-first-run'
311 <<: *xtesting-pi-jobs
312 - name: 'xtesting-pi-ollivier-xtesting-{tag}-second-run'
313 <<: *xtesting-pi-jobs
314 - name: 'xtesting-pi-ollivier-xtesting-{tag}-third-run'
315 <<: *xtesting-pi-jobs
316 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fourth-run'
317 <<: *xtesting-pi-jobs
318 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fifth-run'
319 <<: *xtesting-pi-jobs
320 - name: 'xtesting-pi-ollivier-xtesting-{tag}-sixth-run'
321 <<: *xtesting-pi-jobs
323 name: ollivier/xtesting-mts:{tag}
325 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-seventh-run'
326 <<: *xtesting-pi-jobs
328 name: dump all campaign data
330 - name: 'xtesting-pi-{tag}-zip'
331 <<: *xtesting-pi-jobs
334 name: 'xtesting-pi-daily'
335 <<: *xtesting-pi-params
337 - 'xtesting-pi-{tag}-daily'
349 regex: ^xtesting-pi-[a-z0-9]+-daily$