1 ###################################
2 # job configuration for functest
3 ###################################
10 installer_type: 'fuel'
11 installer_ip: '10.20.0.2'
14 installer_type: 'foreman'
15 installer_ip: '172.30.10.73'
19 installer_type: 'foreman'
20 installer_ip: '172.30.10.73'
23 - 'set-functest-env-{pod}'
25 - 'clean-functest-env-{pod}'
26 - 'set-functest-env-{installer}-{stream}'
27 - 'functest-{installer}-{stream}'
28 - 'clean-functest-env-{installer}-{stream}'
29 - 'functest-openstack-bench-test-{pod}'
30 - 'functest-openstack-tempest-smoke-test-{pod}'
31 - 'functest-odl-test-{pod}'
32 - 'functest-vims-test-{pod}'
33 - 'functest-vping-test-{pod}'
34 - 'functest-daily-{stream}'
35 - 'functest-merge-{stream}'
36 - 'functest-verify-{stream}'
38 # stream: branch with - in place of / (eg. stable-arno)
39 # branch: branch (eg. stable/arno)
50 ################################
52 ################################
54 name: set-functest-env-{pod}
56 project-type: freestyle
63 artifactDaysToKeep: -1
71 echo "Functest: prepare Functest environment"
72 mkdir -p $HOME/functest/
74 # WORKSPACE is the root of the functest repo
75 # go into WORKSPACE where the functest repo is cloned
79 echo "Functest: prepare Functest environment"
80 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
83 name: clean-functest-env-{pod}
85 project-type: freestyle
92 artifactDaysToKeep: -1
101 echo "Functest: copy results and clean Functest environment"
102 mkdir -p $HOME/functest/results
105 cp -Rf $WORSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
107 # save tempest.conf for further troubleshooting
108 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
111 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean
114 name: set-functest-env-{installer}-{stream}
116 project-type: freestyle
123 artifactDaysToKeep: -1
124 artifactNumToKeep: -1
131 echo "Functest: prepare Functest environment"
132 mkdir -p $HOME/functest/
134 # WORKSPACE is the root of the functest repo
135 # go into WORKSPACE where the functest repo is cloned
139 echo "Functest: prepare Functest environment"
140 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
143 name: clean-functest-env-{installer}-{stream}
145 project-type: freestyle
152 artifactDaysToKeep: -1
153 artifactNumToKeep: -1
161 echo "Functest: copy results and clean Functest environment"
162 mkdir -p $HOME/functest/results
165 cp -Rf $WORSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
167 # save tempest.conf for further troubleshooting
168 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
171 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean
174 name: functest-openstack-bench-test-{pod}
176 project-type: freestyle
183 artifactDaysToKeep: -1
184 artifactNumToKeep: -1
191 echo "Functest: run Functest Rally Bench suites"
192 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
195 name: functest-openstack-tempest-smoke-test-{pod}
197 project-type: freestyle
204 artifactDaysToKeep: -1
205 artifactNumToKeep: -1
213 echo "Functest: run Tempest suite"
214 rally verify start smoke
218 name: functest-odl-test-{pod}
220 project-type: freestyle
227 artifactDaysToKeep: -1
228 artifactNumToKeep: -1
235 echo "Functest: run ODL suite"
236 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
239 name: functest-vims-test-{pod}
241 project-type: freestyle
248 artifactDaysToKeep: -1
249 artifactNumToKeep: -1
253 echo "put your CI scenario here"
257 name: functest-vping-test-{pod}
259 project-type: freestyle
266 artifactDaysToKeep: -1
267 artifactNumToKeep: -1
275 echo "Functest: run vPing"
276 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
281 project-type: freestyle
290 default: '{installer_type}'
291 description: "Installer name that is used for deployment."
294 default: '{installer_ip}'
295 description: "Installer IP."
300 credentials-id: '{ssh-credentials}'
307 artifactDaysToKeep: -1
308 artifactNumToKeep: -1
311 - 'functest-fetch-os-creds'
313 - 'functest-store-results'
317 name: functest-{installer}-{stream}
319 project-type: freestyle
328 default: '{installer_type}'
329 description: "Installer name that is used for deployment."
332 default: '{installer_ip}'
333 description: "Installer IP."
336 default: ssh://gerrit.opnfv.org:29418/$PROJECT
337 description: "Override GIT_BASE"
341 credentials-id: '{ssh-credentials}'
348 artifactDaysToKeep: -1
349 artifactNumToKeep: -1
352 - 'functest-fetch-os-creds'
354 - 'functest-store-results'
358 name: 'functest-daily-{stream}'
362 # Job template for daily builders
364 # Required Variables:
365 # stream: branch with - in place of / (eg. stable)
366 # branch: branch (eg. stable)
368 project-type: freestyle
369 varsetabove: '{somevar}'
372 daysToKeep: '{build-days-to-keep}'
373 numToKeep: '{build-num-to-keep}'
374 artifactDaysToKeep: '{build-artifact-days-to-keep}'
375 artifactNumToKeep: '{build-artifact-num-to-keep}'
380 - functest-parameter:
381 gs-pathname: '{gs-pathname}'
385 credentials-id: '{ssh-credentials}'
390 - ssh-agent-credentials:
391 user: '{ssh-credentials}'
394 - 'functest-{stream}'
401 !include-raw ../opnfvdocs/docu-build.sh
407 name: 'functest-verify-{stream}'
411 project-type: freestyle
416 artifactDaysToKeep: -1
417 artifactNumToKeep: -1
425 - gerrit-trigger-scm:
426 credentials-id: '{ssh-credentials}'
427 refspec: '$GERRIT_REFSPEC'
428 choosing-strategy: 'gerrit'
431 - ssh-agent-credentials:
432 user: '{ssh-credentials}'
437 - patchset-created-event:
438 exclude-drafts: 'false'
439 exclude-trivial-rebase: 'false'
440 exclude-no-code-change: 'false'
441 - draft-published-event
442 - comment-added-contains-event:
443 comment-contains-value: 'recheck'
444 - comment-added-contains-event:
445 comment-contains-value: 'reverify'
447 - project-compare-type: 'ANT'
448 project-pattern: 'functest'
450 - branch-compare-type: 'ANT'
451 branch-pattern: '**/{branch}'
455 !include-raw ../opnfvdocs/docu-build.sh
458 name: 'functest-merge-{stream}'
462 # builder-merge job to run JJB update
464 # This job's purpose is to update all the JJB
466 project-type: freestyle
471 artifactDaysToKeep: -1
481 - gerrit-trigger-scm:
482 credentials-id: '{ssh-credentials}'
484 choosing-strategy: 'default'
487 - ssh-agent-credentials:
488 user: '{ssh-credentials}'
493 - change-merged-event
494 - comment-added-contains-event:
495 comment-contains-value: 'remerge'
497 - project-compare-type: 'ANT'
498 project-pattern: 'functest'
500 - branch-compare-type: 'ANT'
501 branch-pattern: '**/{branch}'
505 !include-raw ../opnfvdocs/docu-build.sh
507 ########################
509 ########################
511 name: functest-parameter
515 default: '{gs-pathname}'
516 description: "Version directory where the opnfv documents will be stored in gs repository"
523 default: https://gerrit.opnfv.org/gerrit/$PROJECT
524 description: "Override GIT_BASE"
531 default: ssh://gerrit.opnfv.org:29418/$PROJECT
532 description: "Override GIT_BASE"
539 default: ssh://gerrit.opnfv.org:29418/$PROJECT
540 description: "Override GIT_BASE"
541 ########################
543 ########################
545 name: 'functest-master'
547 - pollscm: "H 9 * * *"
550 name: 'functest-stable-arno'
552 - pollscm: "H 21 * * *"
554 ########################
556 ########################
565 echo "Functest: prepare Functest environment"
566 mkdir -p $HOME/functest/
568 # WORKSPACE is the root of the functest repo
569 # go into WORKSPACE where the functest repo is cloned
573 echo "Functest: prepare Functest environment"
574 python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start
577 echo "Functest: run vPing"
578 python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/
581 echo "Functest: run ODL suite"
582 $WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
585 echo "Functest: run Functest Rally Bench suites"
586 python $WORKSPACE/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug $WORKSPACE/ all
589 echo "Functest: run Tempest suite"
590 rally verify start smoke
594 echo "Functest: copy results and clean Functest environment"
595 mkdir -p $HOME/functest/results
598 cp -Rf $WORKSPACE/testcases/Controllers/ODL/CI/logs $HOME/functest/results/ODL
600 # save tempest.conf for further troubleshooting
601 cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
604 name: functest-store-results
607 !include-raw res-build.sh
610 name: functest-cleanup
617 python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean
620 name: functest-fetch-os-creds
623 !include-raw ../../utils/fetch_os_creds.sh