Revert all gsutil debugs
[releng.git] / jjb / airship / cntt.yaml
1 ---
2 - cntt-jobs: &cntt-jobs
3     name: 'cntt-jobs'
4     current-parameters: true
5
6 - cntt-params: &cntt-params
7     name: 'cntt-params'
8     repo: 'opnfv'
9     port:
10     tag:
11       - latest:
12           branch: master
13           slave: intel-pod10
14           functest_tag: hunter
15
16 - parameter:
17     name: cntt-slave
18     parameters:
19       - label:
20           name: slave
21           default: '{slave}'
22
23 - cntt-containers: &cntt-containers
24     name: 'cntt-containers'
25     repo: '{repo}'
26     port: '{port}'
27     container: '{container}'
28     functest_tag: '{functest_tag}'
29
30 - cntt-run-containers: &cntt-run-containers
31     name: 'cntt-run-containers'
32     <<: *cntt-containers
33     test: '{test}'
34
35 - builder:
36     name: cntt-pull-containers
37     builders:
38       - shell: |
39           set +x
40           if [ "{repo}" = "_" ]; then
41             image={container}:{functest_tag}
42           elif [ "{port}" = "None" ]; then
43             image={repo}/{container}:{functest_tag}
44           else
45             image={repo}:{port}/{container}:{functest_tag}
46           fi
47           sudo docker pull $image
48
49 - builder:
50     name: cntt-run-containers
51     builders:
52       - shell: |
53           set +ex
54           [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
55           if [ "{repo}" = "_" ]; then
56             image={container}:{functest_tag}
57           elif [ "{port}" = "None" ]; then
58             image={repo}/{container}:{functest_tag}
59           else
60             image={repo}:{port}/{container}:{functest_tag}
61           fi
62           sudo docker run --rm \
63             -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
64             -e NODE_NAME=intel-pod10 \
65             -e INSTALLER_TYPE=cntt \
66             -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
67             -e DEBUG=True \
68             -e EXTERNAL_NETWORK=public \
69             -e DEPLOY_SCENARIO=os-nosdn-nofeature-ha \
70             -v /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file \
71             -v /home/opnfv/functest/images:/home/opnfv/functest/images \
72             -v /home/opnfv/functest/tempest_conf.yaml:/usr/lib/python2.7/\
73           site-packages/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml \
74             $image run_tests -t {test} -r
75           res=$?
76           gsutil -m cp -r $WORKSPACE/ \
77             gs://artifacts.opnfv.org/cntt/$JOB_NAME-$BUILD_ID > /dev/null 2>&1
78           find $WORKSPACE -type f \
79             -printf \
80             "http://artifacts.opnfv.org/cntt/$JOB_NAME-$BUILD_ID/%P\n"
81           exit $res
82
83 - builder:
84     name: cntt-remove-images
85     builders:
86       - shell: |
87           set +x
88           if [ "{repo}" = "_" ]; then
89             image={container}:{functest_tag}
90           elif [ "{port}" = "None" ]; then
91             image={repo}/{container}:{functest_tag}
92           else
93             image={repo}:{port}/{container}:{functest_tag}
94           fi
95           sudo docker rmi $image || true
96
97 - builder:
98     name: cntt-deploy
99     builders:
100       - shell: |
101           set +x
102           export TERM_OPTS=" "
103           sudo -H -E -u ubuntu bash -c 'tools/deploy.sh deploy_site'
104
105 - scm:
106     name: cntt-scm
107     scm:
108       - git:
109           url: https://gerrit.opnfv.org/gerrit/airship
110           refspec: '+refs/changes/*:refs/changes/*'
111           branches:
112             - '{ref}'
113
114 - parameter:
115     name: cntt-branch
116     parameters:
117       - string:
118           name: branch
119           default: '{branch}'
120
121 - job-template:
122     name: 'cntt-deploy-daily-{tag}'
123     disabled: true
124     parameters:
125       - cntt-slave:
126           slave: '{slave}'
127       - cntt-branch:
128           branch: '{branch}'
129     scm:
130       - cntt-scm:
131           ref: $branch
132     builders:
133       - cntt-deploy
134
135 - job-template:
136     name: 'cntt-deploy-gate-{tag}'
137     parameters:
138       - cntt-slave:
139           slave: '{slave}'
140     scm:
141       - cntt-scm:
142           ref: $GERRIT_REFSPEC
143     builders:
144       - cntt-deploy
145
146 - project:
147     name: 'cntt-deploy'
148     <<: *cntt-params
149     jobs:
150       - 'cntt-deploy-daily-{tag}'
151       - 'cntt-deploy-gate-{tag}'
152
153 - job-template:
154     name: 'cntt-{repo}-{container}-{tag}-pull'
155     parameters:
156       - cntt-slave:
157           slave: '{slave}'
158     builders:
159       - cntt-pull-containers:
160           <<: *cntt-containers
161
162 - project:
163     name: 'cntt-opnfv-functest-healthcheck-pull'
164     <<: *cntt-params
165     container: 'functest-healthcheck'
166     jobs:
167       - 'cntt-{repo}-{container}-{tag}-pull'
168
169 - project:
170     name: 'cntt-opnfv-functest-smoke-pull'
171     <<: *cntt-params
172     container: 'functest-smoke'
173     jobs:
174       - 'cntt-{repo}-{container}-{tag}-pull'
175
176 - project:
177     name: 'cntt-opnfv-functest-benchmarking-pull'
178     <<: *cntt-params
179     container: 'functest-benchmarking'
180     jobs:
181       - 'cntt-{repo}-{container}-{tag}-pull'
182
183 - project:
184     name: 'cntt-opnfv-functest-vnf-pull'
185     <<: *cntt-params
186     container: 'functest-vnf'
187     jobs:
188       - 'cntt-{repo}-{container}-{tag}-pull'
189
190 - job-template:
191     name: 'cntt-{repo}-{container}-{tag}-rmi'
192     parameters:
193       - cntt-slave:
194           slave: '{slave}'
195     builders:
196       - cntt-remove-images:
197           <<: *cntt-containers
198
199 - project:
200     name: 'cntt-opnfv-functest-healthcheck-rmi'
201     <<: *cntt-params
202     container: 'functest-healthcheck'
203     jobs:
204       - 'cntt-{repo}-{container}-{tag}-rmi'
205
206 - project:
207     name: 'cntt-opnfv-functest-smoke-rmi'
208     <<: *cntt-params
209     container: 'functest-smoke'
210     jobs:
211       - 'cntt-{repo}-{container}-{tag}-rmi'
212
213 - project:
214     name: 'cntt-opnfv-functest-benchmarking-rmi'
215     <<: *cntt-params
216     container: 'functest-benchmarking'
217     jobs:
218       - 'cntt-{repo}-{container}-{tag}-rmi'
219
220 - project:
221     name: 'cntt-opnfv-functest-vnf-rmi'
222     <<: *cntt-params
223     container: 'functest-vnf'
224     jobs:
225       - 'cntt-{repo}-{container}-{tag}-rmi'
226
227 - job-template:
228     name: 'cntt-{repo}-{container}-{tag}-{test}-run'
229     parameters:
230       - cntt-slave:
231           slave: '{slave}'
232     builders:
233       - cntt-run-containers:
234           <<: *cntt-run-containers
235
236 - project:
237     name: 'cntt-opnfv-functest-healthcheck'
238     <<: *cntt-params
239     container: 'functest-healthcheck'
240     test:
241       - connection_check
242       - tenantnetwork1
243       - tenantnetwork2
244       - vmready1
245       - vmready2
246       - singlevm1
247       - singlevm2
248       - vping_ssh
249       - vping_userdata
250       - cinder_test
251       - odl
252       - tempest_smoke
253     jobs:
254       - 'cntt-{repo}-{container}-{tag}-{test}-run'
255
256 - project:
257     name: 'cntt-opnfv-functest-smoke'
258     <<: *cntt-params
259     container: 'functest-smoke'
260     test:
261       - neutron-tempest-plugin-api
262       - rally_sanity
263       - refstack_defcore
264       - tempest_full
265       - tempest_scenario
266       - patrole
267       - neutron_trunk
268       - networking-bgpvpn
269       - networking-sfc
270       - barbican
271     jobs:
272       - 'cntt-{repo}-{container}-{tag}-{test}-run'
273
274 - project:
275     name: 'cntt-opnfv-functest-benchmarking'
276     <<: *cntt-params
277     container: 'functest-benchmarking'
278     test:
279       - rally_full
280       - rally_jobs
281       - vmtp
282       - shaker
283     jobs:
284       - 'cntt-{repo}-{container}-{tag}-{test}-run'
285
286 - project:
287     name: 'cntt-opnfv-functest-vnf'
288     <<: *cntt-params
289     container: 'functest-vnf'
290     test:
291       - cloudify
292       - cloudify_ims
293       - heat_ims
294       - vyos_vrouter
295       - juju_epc
296     jobs:
297       - 'cntt-{repo}-{container}-{tag}-{test}-run'
298
299 - job-template:
300     name: 'cntt-{tag}-daily'
301     project-type: multijob
302     triggers:
303       - timed: '@daily'
304     parameters:
305       - cntt-slave:
306           slave: '{slave}'
307       - cntt-branch:
308           branch: 'master'
309     properties:
310       - build-blocker:
311           use-build-blocker: true
312           blocking-level: 'NODE'
313           blocking-jobs:
314             - '^cntt-{tag}-(daily|gate)$'
315     builders:
316       - multijob:
317           name: deploy
318           projects:
319             - name: 'cntt-deploy-daily-{tag}'
320               <<: *cntt-jobs
321       - multijob:
322           name: remove former images
323           projects:
324             - name: 'cntt-opnfv-functest-healthcheck-{tag}-rmi'
325               <<: *cntt-jobs
326             - name: 'cntt-opnfv-functest-smoke-{tag}-rmi'
327               <<: *cntt-jobs
328             - name: 'cntt-opnfv-functest-benchmarking-{tag}-rmi'
329               <<: *cntt-jobs
330             - name: 'cntt-opnfv-functest-vnf-{tag}-rmi'
331               <<: *cntt-jobs
332       - multijob:
333           name: pull containers
334           projects:
335             - name: 'cntt-opnfv-functest-healthcheck-{tag}-pull'
336               <<: *cntt-jobs
337             - name: 'cntt-opnfv-functest-smoke-{tag}-pull'
338               <<: *cntt-jobs
339             - name: 'cntt-opnfv-functest-benchmarking-{tag}-pull'
340               <<: *cntt-jobs
341             - name: 'cntt-opnfv-functest-vnf-{tag}-pull'
342               <<: *cntt-jobs
343       - multijob:
344           name: opnfv/functest-healthcheck:{functest_tag}
345           condition: ALWAYS
346           projects:
347             - name: 'cntt-opnfv-functest-healthcheck-{tag}-connection_check-run'
348               <<: *cntt-jobs
349             - name: 'cntt-opnfv-functest-healthcheck-{tag}-tenantnetwork1-run'
350               <<: *cntt-jobs
351             - name: 'cntt-opnfv-functest-healthcheck-{tag}-tenantnetwork2-run'
352               <<: *cntt-jobs
353             - name: 'cntt-opnfv-functest-healthcheck-{tag}-vmready1-run'
354               <<: *cntt-jobs
355             - name: 'cntt-opnfv-functest-healthcheck-{tag}-vmready2-run'
356               <<: *cntt-jobs
357             - name: 'cntt-opnfv-functest-healthcheck-{tag}-singlevm1-run'
358               <<: *cntt-jobs
359             - name: 'cntt-opnfv-functest-healthcheck-{tag}-singlevm2-run'
360               <<: *cntt-jobs
361             - name: 'cntt-opnfv-functest-healthcheck-{tag}-vping_ssh-run'
362               <<: *cntt-jobs
363             - name: 'cntt-opnfv-functest-healthcheck-{tag}-vping_userdata-run'
364               <<: *cntt-jobs
365             - name: 'cntt-opnfv-functest-healthcheck-{tag}-cinder_test-run'
366               <<: *cntt-jobs
367             - name: 'cntt-opnfv-functest-healthcheck-{tag}-odl-run'
368               <<: *cntt-jobs
369             - name: 'cntt-opnfv-functest-healthcheck-{tag}-tempest_smoke-run'
370               <<: *cntt-jobs
371       - multijob:
372           name: opnfv/functest-smoke:{functest_tag}
373           condition: ALWAYS
374           projects:
375             - name: 'cntt-opnfv-functest-smoke-{tag}-neutron-tempest-plugin-api-run'
376               <<: *cntt-jobs
377             - name: 'cntt-opnfv-functest-smoke-{tag}-rally_sanity-run'
378               <<: *cntt-jobs
379             - name: 'cntt-opnfv-functest-smoke-{tag}-refstack_defcore-run'
380               <<: *cntt-jobs
381             - name: 'cntt-opnfv-functest-smoke-{tag}-tempest_full-run'
382               <<: *cntt-jobs
383             - name: 'cntt-opnfv-functest-smoke-{tag}-tempest_scenario-run'
384               <<: *cntt-jobs
385             - name: 'cntt-opnfv-functest-smoke-{tag}-patrole-run'
386               <<: *cntt-jobs
387             - name: 'cntt-opnfv-functest-smoke-{tag}-neutron_trunk-run'
388               <<: *cntt-jobs
389             - name: 'cntt-opnfv-functest-smoke-{tag}-networking-bgpvpn-run'
390               <<: *cntt-jobs
391             - name: 'cntt-opnfv-functest-smoke-{tag}-networking-sfc-run'
392               <<: *cntt-jobs
393             - name: 'cntt-opnfv-functest-smoke-{tag}-barbican-run'
394               <<: *cntt-jobs
395       - multijob:
396           name: opnfv/functest-benchmarking:{functest_tag}
397           condition: ALWAYS
398           projects:
399             - name: 'cntt-opnfv-functest-benchmarking-{tag}-rally_full-run'
400               <<: *cntt-jobs
401             - name: 'cntt-opnfv-functest-benchmarking-{tag}-rally_jobs-run'
402               <<: *cntt-jobs
403             - name: 'cntt-opnfv-functest-benchmarking-{tag}-vmtp-run'
404               <<: *cntt-jobs
405             - name: 'cntt-opnfv-functest-benchmarking-{tag}-shaker-run'
406               <<: *cntt-jobs
407       - multijob:
408           name: opnfv/functest-vnf:{functest_tag}
409           condition: ALWAYS
410           execution-type: SEQUENTIALLY
411           projects:
412             - name: 'cntt-opnfv-functest-vnf-{tag}-cloudify-run'
413               <<: *cntt-jobs
414             - name: 'cntt-opnfv-functest-vnf-{tag}-cloudify_ims-run'
415               <<: *cntt-jobs
416             - name: 'cntt-opnfv-functest-vnf-{tag}-heat_ims-run'
417               <<: *cntt-jobs
418             - name: 'cntt-opnfv-functest-vnf-{tag}-vyos_vrouter-run'
419               <<: *cntt-jobs
420             - name: 'cntt-opnfv-functest-vnf-{tag}-juju_epc-run'
421               <<: *cntt-jobs
422
423 - trigger:
424     name: cntt-patchset-created
425     triggers:
426       - gerrit:
427           server-name: 'gerrit.opnfv.org'
428           trigger-on:
429             - patchset-created-event
430             - comment-added-contains-event:
431                 comment-contains-value: 'recheck'
432             - comment-added-contains-event:
433                 comment-contains-value: 'reverify'
434           projects:
435             - project-compare-type: 'ANT'
436               project-pattern: 'airship'
437               branches:
438                 - branch-compare-type: 'ANT'
439                   branch-pattern: '**/{branch}'
440           skip-vote:
441             successful: false
442             failed: false
443             unstable: false
444             notbuilt: false
445
446 - job-template:
447     name: 'cntt-{tag}-gate'
448     project-type: multijob
449     disabled: true
450     triggers:
451       - cntt-patchset-created:
452           branch: '{branch}'
453     parameters:
454       - cntt-slave:
455           slave: '{slave}'
456     properties:
457       - build-blocker:
458           use-build-blocker: true
459           blocking-level: 'NODE'
460           blocking-jobs:
461             - '^cntt-{tag}-(daily|gate)$'
462     builders:
463       - multijob:
464           name: deploy
465           projects:
466             - name: 'cntt-deploy-gate-{tag}'
467               <<: *cntt-jobs
468       - multijob:
469           name: remove former images
470           projects:
471             - name: 'cntt-opnfv-functest-healthcheck-{tag}-rmi'
472               <<: *cntt-jobs
473             - name: 'cntt-opnfv-functest-smoke-{tag}-rmi'
474               <<: *cntt-jobs
475             - name: 'cntt-opnfv-functest-benchmarking-{tag}-rmi'
476               <<: *cntt-jobs
477             - name: 'cntt-opnfv-functest-vnf-{tag}-rmi'
478               <<: *cntt-jobs
479       - multijob:
480           name: pull containers
481           projects:
482             - name: 'cntt-opnfv-functest-healthcheck-{tag}-pull'
483               <<: *cntt-jobs
484             - name: 'cntt-opnfv-functest-smoke-{tag}-pull'
485               <<: *cntt-jobs
486             - name: 'cntt-opnfv-functest-benchmarking-{tag}-pull'
487               <<: *cntt-jobs
488             - name: 'cntt-opnfv-functest-vnf-{tag}-pull'
489               <<: *cntt-jobs
490       - multijob:
491           name: opnfv/functest-healthcheck:{functest_tag}
492           projects:
493             - name: 'cntt-opnfv-functest-healthcheck-{tag}-connection_check-run'
494               <<: *cntt-jobs
495             - name: 'cntt-opnfv-functest-healthcheck-{tag}-tenantnetwork1-run'
496               <<: *cntt-jobs
497             - name: 'cntt-opnfv-functest-healthcheck-{tag}-tenantnetwork2-run'
498               <<: *cntt-jobs
499             - name: 'cntt-opnfv-functest-healthcheck-{tag}-vmready1-run'
500               <<: *cntt-jobs
501             - name: 'cntt-opnfv-functest-healthcheck-{tag}-vmready2-run'
502               <<: *cntt-jobs
503             - name: 'cntt-opnfv-functest-healthcheck-{tag}-singlevm1-run'
504               <<: *cntt-jobs
505             - name: 'cntt-opnfv-functest-healthcheck-{tag}-singlevm2-run'
506               <<: *cntt-jobs
507             - name: 'cntt-opnfv-functest-healthcheck-{tag}-vping_ssh-run'
508               <<: *cntt-jobs
509             - name: 'cntt-opnfv-functest-healthcheck-{tag}-vping_userdata-run'
510               <<: *cntt-jobs
511             - name: 'cntt-opnfv-functest-healthcheck-{tag}-cinder_test-run'
512               <<: *cntt-jobs
513             - name: 'cntt-opnfv-functest-healthcheck-{tag}-odl-run'
514               <<: *cntt-jobs
515       - multijob:
516           name: opnfv/functest-smoke:{functest_tag}
517           projects:
518             - name: 'cntt-opnfv-functest-smoke-{tag}-tempest_scenario-run'
519               <<: *cntt-jobs
520             - name: 'cntt-opnfv-functest-smoke-{tag}-neutron_trunk-run'
521               <<: *cntt-jobs
522             - name: 'cntt-opnfv-functest-smoke-{tag}-networking-bgpvpn-run'
523               <<: *cntt-jobs
524             - name: 'cntt-opnfv-functest-smoke-{tag}-networking-sfc-run'
525               <<: *cntt-jobs
526             - name: 'cntt-opnfv-functest-smoke-{tag}-barbican-run'
527               <<: *cntt-jobs
528       - multijob:
529           name: opnfv/functest-benchmarking:{functest_tag}
530           projects:
531             - name: 'cntt-opnfv-functest-benchmarking-{tag}-vmtp-run'
532               <<: *cntt-jobs
533             - name: 'cntt-opnfv-functest-benchmarking-{tag}-shaker-run'
534               <<: *cntt-jobs
535       - multijob:
536           name: opnfv/functest-vnf:{functest_tag}
537           condition: ALWAYS
538           execution-type: SEQUENTIALLY
539           projects:
540             - name: 'cntt-opnfv-functest-vnf-{tag}-cloudify-run'
541               <<: *cntt-jobs
542             - name: 'cntt-opnfv-functest-vnf-{tag}-cloudify_ims-run'
543               <<: *cntt-jobs
544             - name: 'cntt-opnfv-functest-vnf-{tag}-heat_ims-run'
545               <<: *cntt-jobs
546             - name: 'cntt-opnfv-functest-vnf-{tag}-vyos_vrouter-run'
547               <<: *cntt-jobs
548             - name: 'cntt-opnfv-functest-vnf-{tag}-juju_epc-run'
549               <<: *cntt-jobs
550
551 - project:
552     name: 'cntt'
553     <<: *cntt-params
554     jobs:
555       - 'cntt-{tag}-daily'
556       - 'cntt-{tag}-gate'
557
558 - view:
559     name: cntt
560     view-type: list
561     columns:
562       - status
563       - weather
564       - job
565       - last-success
566       - last-failure
567       - last-duration
568     regex: ^cntt-[a-z]+-(daily|check|gate)$