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
63 - xtesting-pi-run-containers: &xtesting-pi-run-containers
64 name: 'xtesting-pi-run-containers'
65 <<: *xtesting-pi-containers
67 privileged: '{privileged}'
71 name: xtesting-pi-pull-containers
75 if [ "{repo}" = "_" ]; then
76 image={container}:{tag}
77 elif [ "{port}" = "None" ]; then
78 image={repo}/{container}:{tag}
80 image={repo}:{port}/{container}:{tag}
82 sudo docker pull $image
85 name: xtesting-pi-run-containers
89 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
90 if [ "{repo}" = "_" ]; then
91 image={container}:{tag}
92 elif [ "{port}" = "None" ]; then
93 image={repo}/{container}:{tag}
95 image={repo}:{port}/{container}:{tag}
97 sudo docker run --rm \
98 --privileged={privileged} \
100 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
101 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
102 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
103 -v /home/opnfv/xtesting/.boto:/root/.boto \
104 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
105 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
106 -e NODE_NAME=$slave \
107 -e BUILD_TAG=$BUILD_TAG \
108 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
109 $image run_tests -t {test} -p -r
112 name: xtesting-pi-remove-images
116 if [ "{repo}" = "_" ]; then
117 image={container}:{tag}
118 elif [ "{port}" = "None" ]; then
119 image={repo}/{container}:{tag}
121 image={repo}:{port}/{container}:{tag}
123 sudo docker rmi $image || true
126 name: 'xtesting-pi-{repo}-{container}-{tag}-pull'
131 - xtesting-pi-pull-containers:
132 <<: *xtesting-pi-containers
135 name: 'xtesting-pi-ollivier-xtesting-pull'
136 <<: *xtesting-pi-params
137 container: 'xtesting'
139 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
142 name: 'xtesting-pi-ollivier-xtesting-mts-pull'
143 <<: *xtesting-pi-params
144 container: 'xtesting-mts'
146 - 'xtesting-pi-{repo}-{container}-{tag}-pull'
149 name: 'xtesting-pi-{repo}-{container}-{tag}-rmi'
154 - xtesting-pi-remove-images:
155 <<: *xtesting-pi-containers
158 name: 'xtesting-pi-ollivier-xtesting-rmi'
159 <<: *xtesting-pi-params
160 container: 'xtesting'
162 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
165 name: 'xtesting-pi-ollivier-xtesting-mts-rmi'
166 <<: *xtesting-pi-params
167 container: 'xtesting-mts'
169 - 'xtesting-pi-{repo}-{container}-{tag}-rmi'
172 name: 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
176 - xtesting-pi-build_tag:
179 - xtesting-pi-run-containers:
180 <<: *xtesting-pi-run-containers
183 name: 'xtesting-pi-ollivier-xtesting'
184 <<: *xtesting-pi-params
185 container: 'xtesting'
197 - {'tag': 'leguer', 'test': 'eighth'}
198 - {'tag': 'kali', 'test': 'eighth'}
199 - {'tag': 'jerma', 'test': 'eighth'}
200 - {'tag': 'arm-leguer', 'test': 'eighth'}
201 - {'tag': 'arm-kali', 'test': 'eighth'}
202 - {'tag': 'arm-jerma', 'test': 'eighth'}
203 - {'tag': 'arm64-leguer', 'test': 'eighth'}
204 - {'tag': 'arm64-kali', 'test': 'eighth'}
205 - {'tag': 'arm64-jerma', 'test': 'eighth'}
207 - 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
210 name: 'xtesting-pi-ollivier-xtesting-mts'
211 <<: *xtesting-pi-params
212 container: 'xtesting-mts'
218 - 'xtesting-pi-{repo}-{container}-{tag}-{test}-run'
222 name: xtesting-pi-zip
226 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
227 if [ "{repo}" = "_" ]; then
228 image={container}:{tag}
229 elif [ "{port}" = "None" ]; then
230 image={repo}/{container}:{tag}
232 image={repo}:{port}/{container}:{tag}
234 sudo docker run --rm \
235 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
236 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
237 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
238 -v /home/opnfv/xtesting/.boto:/root/.boto \
239 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
240 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
241 -e BUILD_TAG=$BUILD_TAG \
242 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
246 name: 'xtesting-pi-{tag}-zip'
250 - xtesting-pi-build_tag:
254 <<: *xtesting-pi-containers
257 name: 'xtesting-pi-{tag}-zip'
258 <<: *xtesting-pi-params
259 container: 'xtesting'
261 - 'xtesting-pi-{tag}-zip'
264 name: 'xtesting-pi-{tag}-daily'
265 project-type: multijob
271 - xtesting-pi-build_tag:
275 use-build-blocker: true
276 blocking-level: 'NODE'
278 - '^xtesting-pi-{tag}-(daily|docker|review)$'
281 name: remove former images
283 - name: 'xtesting-pi-ollivier-xtesting-{tag}-rmi'
284 <<: *xtesting-pi-jobs
285 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-rmi'
286 <<: *xtesting-pi-jobs
288 name: pull containers
290 - name: 'xtesting-pi-ollivier-xtesting-{tag}-pull'
291 <<: *xtesting-pi-jobs
292 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-pull'
293 <<: *xtesting-pi-jobs
295 name: ollivier/xtesting:{tag}
297 - name: 'xtesting-pi-ollivier-xtesting-{tag}-first-run'
298 <<: *xtesting-pi-jobs
299 - name: 'xtesting-pi-ollivier-xtesting-{tag}-second-run'
300 <<: *xtesting-pi-jobs
301 - name: 'xtesting-pi-ollivier-xtesting-{tag}-third-run'
302 <<: *xtesting-pi-jobs
303 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fourth-run'
304 <<: *xtesting-pi-jobs
305 - name: 'xtesting-pi-ollivier-xtesting-{tag}-fifth-run'
306 <<: *xtesting-pi-jobs
307 - name: 'xtesting-pi-ollivier-xtesting-{tag}-sixth-run'
308 <<: *xtesting-pi-jobs
309 - name: 'xtesting-pi-ollivier-xtesting-{tag}-eighth-run'
310 <<: *xtesting-pi-jobs
312 name: ollivier/xtesting-mts:{tag}
314 - name: 'xtesting-pi-ollivier-xtesting-mts-{tag}-seventh-run'
315 <<: *xtesting-pi-jobs
317 name: dump all campaign data
319 - name: 'xtesting-pi-{tag}-zip'
320 <<: *xtesting-pi-jobs
323 name: 'xtesting-pi-daily'
324 <<: *xtesting-pi-params
326 - 'xtesting-pi-{tag}-daily'
338 regex: ^xtesting-pi-[a-z-0-9.]+-daily$