6 - 'apex-runner-cperf-{stream}'
7 - 'apex-virtual-{stream}'
8 - 'apex-deploy-{platform}-{stream}'
9 - 'apex-daily-{stream}'
10 - 'apex-csit-promote-daily-{stream}'
11 - 'apex-fdio-promote-daily-{stream}'
12 - 'apex-{scenario}-baremetal-{scenario_stream}'
13 - 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
14 - 'apex-upload-snapshot'
15 - 'apex-create-snapshot'
16 - 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
17 - 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
18 # stream: branch with - in place of / (eg. stable-arno)
19 # branch: branch (eg. stable/arno)
24 build-slave: 'apex-build-master'
25 virtual-slave: 'apex-virtual-master'
26 baremetal-slave: 'apex-baremetal-master'
27 verify-scenario: 'os-odl-nofeature-ha'
28 scenario_stream: 'master'
30 disable_promote: false
31 - euphrates: &euphrates
32 branch: 'stable/euphrates'
33 gs-pathname: '/euphrates'
34 build-slave: 'apex-build-master'
35 virtual-slave: 'apex-virtual-master'
36 baremetal-slave: 'apex-baremetal-master'
37 verify-scenario: 'os-odl-nofeature-ha'
38 scenario_stream: 'euphrates'
42 branch: 'stable/danube'
43 gs-pathname: '/danube'
44 build-slave: 'apex-build-danube'
45 virtual-slave: 'apex-virtual-danube'
46 baremetal-slave: 'apex-baremetal-danube'
47 verify-scenario: 'os-odl_l3-nofeature-ha'
48 scenario_stream: 'danube'
54 {%- for stream in scenarios %}
55 {%- for scenario in scenarios[stream] %}
70 name: 'apex-runner-cperf-{stream}'
73 project-type: 'multijob'
80 gs-pathname: '{gs-pathname}'
86 default: https://gerrit.opnfv.org/gerrit/$PROJECT
87 description: "Used for overriding the GIT URL coming from parameters macro."
95 use-build-blocker: false
105 - description-setter:
106 description: "Deployed on $NODE_NAME"
108 name: 'Baremetal Deploy'
111 - name: 'apex-deploy-baremetal-{stream}'
112 node-parameters: false
113 current-parameters: true
114 predefined-parameters: |
115 GERRIT_BRANCH=$GERRIT_BRANCH
118 DEPLOY_SCENARIO={verify-scenario}
119 kill-phase-on: FAILURE
124 condition: SUCCESSFUL
126 - name: 'cperf-apex-intel-pod2-daily-master'
127 node-parameters: true
128 current-parameters: false
129 predefined-parameters:
130 DEPLOY_SCENARIO={verify-scenario}
137 name: 'apex-deploy-{platform}-{stream}'
152 - '{project}-{platform}-{stream}-defaults'
157 gs-pathname: '{gs-pathname}'
159 name: DEPLOY_SCENARIO
160 default: '{verify-scenario}'
161 description: "Scenario to deploy with."
162 # yamllint disable rule:line-length
166 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
168 # yamllint enable rule:line-length
172 use-build-blocker: true
186 - description-setter:
187 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
188 - 'apex-download-artifact'
193 # Virtual Deploy and Test
195 name: 'apex-virtual-{stream}'
197 project-type: 'multijob'
207 - '{project}-defaults'
208 - '{project}-virtual-{stream}-defaults'
213 gs-pathname: '{gs-pathname}'
215 name: DEPLOY_SCENARIO
216 default: '{verify-scenario}'
217 description: "Scenario to deploy with."
219 name: ARTIFACT_VERSION
221 description: "Used for overriding the ARTIFACT_VERSION"
226 use-build-blocker: true
230 - 'apex-.*-promote.*'
233 - 'apex-verify-gate-.*'
240 - description-setter:
241 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
244 condition: SUCCESSFUL
246 - name: 'apex-deploy-virtual-{stream}'
247 current-parameters: false
248 predefined-parameters: |
249 ARTIFACT_VERSION=$ARTIFACT_VERSION
250 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
252 GERRIT_BRANCH=$GERRIT_BRANCH
253 GERRIT_REFSPEC=$GERRIT_REFSPEC
254 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
255 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
256 node-parameters: true
257 kill-phase-on: FAILURE
262 condition: SUCCESSFUL
264 - name: 'functest-apex-virtual-suite-{stream}'
265 current-parameters: false
266 predefined-parameters: |
267 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
268 FUNCTEST_SUITE_NAME=healthcheck
269 GERRIT_BRANCH=$GERRIT_BRANCH
270 GERRIT_REFSPEC=$GERRIT_REFSPEC
271 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
272 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
273 node-parameters: true
278 # Baremetal Deploy and Test
280 name: 'apex-{scenario}-baremetal-{scenario_stream}'
282 project-type: 'multijob'
290 - '{project}-defaults'
291 - '{project}-baremetal-{scenario_stream}-defaults'
296 gs-pathname: '{gs-pathname}'
298 name: DEPLOY_SCENARIO
299 default: '{scenario}'
300 description: "Scenario to deploy with."
305 use-build-blocker: true
310 - 'apex-.*-promote.*'
312 - 'apex-.+-baremetal-.+'
319 - description-setter:
320 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
322 name: 'Baremetal Deploy'
323 condition: SUCCESSFUL
325 - name: 'apex-deploy-baremetal-{scenario_stream}'
326 node-parameters: true
327 current-parameters: true
328 predefined-parameters: |
330 GERRIT_BRANCH=$GERRIT_BRANCH
332 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
333 kill-phase-on: FAILURE
337 name: 'OPNFV Test Suite'
339 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
340 node-parameters: true
341 current-parameters: false
342 predefined-parameters:
343 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
351 !include-raw-escape: ./update-build-result.groovy
355 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
357 project-type: 'multijob'
362 - '{project}-defaults'
363 - '{project}-baremetal-{scenario_stream}-defaults'
368 gs-pathname: '{gs-pathname}'
370 name: DEPLOY_SCENARIO
371 default: '{scenario}'
372 description: "Scenario to deploy with."
377 use-build-blocker: true
382 - 'apex-.*-promote.*'
384 - 'apex-testsuite-.+-baremetal-.+'
391 - description-setter:
392 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
397 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
398 node-parameters: true
399 current-parameters: false
400 predefined-parameters:
401 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
409 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
410 node-parameters: true
411 current-parameters: false
412 predefined-parameters:
413 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
418 name: Dovetail-proposed_tests
421 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
422 node-parameters: true
423 current-parameters: false
424 predefined-parameters:
425 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
427 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
428 && $BUILD_NUMBER % 2 == 1"
432 name: Dovetail-default
435 - name: 'dovetail-apex-baremetal-default-{scenario_stream}'
436 node-parameters: true
437 current-parameters: false
438 predefined-parameters:
439 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
441 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
442 && $BUILD_NUMBER % 2 == 0"
449 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
450 node-parameters: true
451 current-parameters: false
452 predefined-parameters:
453 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
454 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
458 # Build status is always success due conditional plugin prefetching
459 # build status before multijob phases execute
460 # - conditional-step:
461 # condition-kind: current-status
462 # condition-worst: SUCCESS
463 # condtion-best: SUCCESS
464 # on-evaluation-failure: mark-unstable
466 # - shell: 'echo "Tests Passed"'
469 name: 'apex-daily-{stream}'
471 # Job template for daily build
473 # Required Variables:
474 # stream: branch with - in place of / (eg. stable)
475 # branch: branch (eg. stable)
476 project-type: 'multijob'
478 disabled: '{obj:disable_daily}'
484 - '{project}-defaults'
485 - '{project}-baremetal-{stream}-defaults'
490 gs-pathname: '{gs-pathname}'
495 use-build-blocker: true
506 condition: SUCCESSFUL
508 - name: 'apex-build-{stream}'
509 current-parameters: false
510 predefined-parameters: |
511 GERRIT_BRANCH=$GERRIT_BRANCH
513 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
514 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
515 node-parameters: true
516 kill-phase-on: FAILURE
520 name: 'Verify and upload ISO'
521 condition: SUCCESSFUL
523 - name: 'apex-verify-iso-{stream}'
524 current-parameters: false
525 predefined-parameters: |
526 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
527 GERRIT_BRANCH=$GERRIT_BRANCH
529 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
530 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
531 node-parameters: true
532 kill-phase-on: FAILURE
535 - apex-builder-{stream}
539 name: 'apex-create-snapshot'
541 # Job template for clean
543 # Required Variables:
544 # stream: branch with - in place of / (eg. stable)
550 !include-raw-escape: ./apex-snapshot-create.sh
554 name: 'apex-upload-snapshot'
556 # Job template for clean
558 # Required Variables:
559 # stream: branch with - in place of / (eg. stable)
565 properties-content: ARTIFACT_TYPE=snapshot
566 - 'apex-upload-artifact'
570 name: 'apex-csit-promote-daily-{stream}'
572 # Job template for promoting CSIT Snapshots
574 # Required Variables:
575 # stream: branch with - in place of / (eg. stable)
576 # branch: branch (eg. stable)
577 node: '{virtual-slave}'
578 project-type: 'multijob'
579 disabled: '{disable_promote}'
589 gs-pathname: '{gs-pathname}'
593 use-build-blocker: true
602 - timed: '0 12 * * 0'
607 condition: SUCCESSFUL
609 - name: 'apex-deploy-virtual-{stream}'
610 current-parameters: false
611 predefined-parameters: |
612 DEPLOY_SCENARIO=os-odl-{os_version}_upstream-noha
614 GERRIT_BRANCH=$GERRIT_BRANCH
615 GERRIT_REFSPEC=$GERRIT_REFSPEC
616 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
617 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
619 node-parameters: true
620 kill-phase-on: FAILURE
625 condition: SUCCESSFUL
627 - name: 'functest-apex-virtual-suite-{stream}'
628 current-parameters: false
629 predefined-parameters: |
630 DEPLOY_SCENARIO=os-odl-{os_version}_upstream-noha
631 FUNCTEST_SUITE_NAME=tempest_smoke_serial
632 GERRIT_BRANCH=$GERRIT_BRANCH
633 GERRIT_REFSPEC=$GERRIT_REFSPEC
634 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
635 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
636 node-parameters: true
637 kill-phase-on: FAILURE
641 name: create snapshot
642 condition: SUCCESSFUL
644 - name: 'apex-create-snapshot'
645 current-parameters: false
646 predefined-parameters: |
648 node-parameters: true
649 kill-phase-on: FAILURE
653 name: upload snapshot
654 condition: SUCCESSFUL
656 - name: 'apex-upload-snapshot'
657 current-parameters: false
658 predefined-parameters: |
660 node-parameters: true
661 kill-phase-on: FAILURE
667 name: 'apex-fdio-promote-daily-{stream}'
669 # Job template for promoting CSIT Snapshots
671 # Required Variables:
672 # stream: branch with - in place of / (eg. stable)
673 # branch: branch (eg. stable)
674 node: '{virtual-slave}'
675 project-type: 'multijob'
686 gs-pathname: '{gs-pathname}'
690 use-build-blocker: true
701 condition: SUCCESSFUL
703 - name: 'apex-build-{stream}'
704 current-parameters: false
705 predefined-parameters: |
706 GERRIT_BRANCH=$GERRIT_BRANCH
707 GERRIT_REFSPEC=$GERRIT_REFSPEC
708 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
709 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
710 node-parameters: false
711 kill-phase-on: FAILURE
716 condition: SUCCESSFUL
718 - name: 'apex-deploy-virtual-{stream}'
719 current-parameters: false
720 predefined-parameters: |
721 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
723 GERRIT_BRANCH=$GERRIT_BRANCH
724 GERRIT_REFSPEC=$GERRIT_REFSPEC
725 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
726 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
728 node-parameters: true
729 kill-phase-on: FAILURE
733 name: create snapshot
734 condition: SUCCESSFUL
736 - name: 'apex-create-snapshot'
737 current-parameters: false
738 predefined-parameters: |
740 node-parameters: true
741 kill-phase-on: FAILURE
745 name: upload snapshot
746 condition: SUCCESSFUL
748 - name: 'apex-upload-snapshot'
749 current-parameters: false
750 predefined-parameters: |
752 node-parameters: true
753 kill-phase-on: FAILURE
759 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
761 project-type: 'multijob'
774 - '{project}-defaults'
779 gs-pathname: '{gs-pathname}'
781 name: DEPLOY_SCENARIO
782 default: 'os-nosdn-nofeature-ha'
783 description: "Scenario to deploy with."
786 default: https://gerrit.opnfv.org/gerrit/$PROJECT
787 description: 'Git URL to use on this Jenkins Slave'
790 default: /root/.ssh/id_rsa
791 description: 'SSH key to use for Apex'
796 use-build-blocker: true
801 - 'apex-.*-promote.*'
803 - 'apex-.+-baremetal-.+'
810 - description-setter:
811 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
813 name: 'Baremetal Deploy'
814 condition: SUCCESSFUL
816 - name: 'apex-deploy-baremetal-{stream}'
817 node-parameters: true
818 current-parameters: true
819 predefined-parameters: |
821 GERRIT_BRANCH=$GERRIT_BRANCH
823 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
824 kill-phase-on: FAILURE
831 - name: 'yardstick-apex-baremetal-daily-{stream}'
832 node-parameters: true
833 current-parameters: false
834 predefined-parameters:
835 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
840 # Dovetail Danube test job
842 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
844 project-type: 'multijob'
851 - '{project}-defaults'
854 branch: 'stable/danube'
856 gs-pathname: '/danube'
858 name: DEPLOY_SCENARIO
859 default: 'os-nosdn-nofeature-ha'
860 description: "Scenario to deploy with."
865 use-build-blocker: true
870 - 'apex-.*-promote.*'
874 - timed: '' # '0 1 * * *'
877 - description-setter:
878 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
880 name: 'Baremetal Deploy'
881 condition: SUCCESSFUL
883 - name: 'apex-deploy-baremetal-danube'
884 node-parameters: true
885 current-parameters: true
886 predefined-parameters: |
888 GERRIT_BRANCH=$GERRIT_BRANCH
890 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
891 kill-phase-on: FAILURE
898 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
899 node-parameters: true
900 current-parameters: false
901 predefined-parameters:
902 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
907 ########################
909 ########################
916 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
918 name: ARTIFACT_VERSION
920 description: "Artifact version type"
922 name: BUILD_DIRECTORY
923 default: $WORKSPACE/.build
924 description: "Directory where the build artifact will be located upon the completion of the build."
926 name: CACHE_DIRECTORY
927 default: $HOME/opnfv/apex-cache{gs-pathname}
928 description: "Directory where the cache to be used during the build is located."
929 # yamllint disable rule:line-length
932 default: https://gerrit.opnfv.org/gerrit/$PROJECT
933 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
934 # yamllint enable rule:line-length
937 default: '{gs-pathname}'
938 description: "Version directory where opnfv artifacts are stored in gs repository"
941 default: $GS_BASE{gs-pathname}
942 description: "URL to Google Storage."
946 description: "Flag to know if we should promote/upload snapshot artifacts."
948 ########################
950 ########################
951 {% for stream in scenarios %}
952 # {{ stream }} Builder
954 name: apex-builder-{{ stream }}
957 name: Baremetal Deploy and Test Phase
958 condition: SUCCESSFUL
960 {%- for scenario in scenarios[stream] %}
961 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
962 node-parameters: false
963 current-parameters: false
964 predefined-parameters: |
973 name: 'apex-upload-artifact'
976 !include-raw: ./apex-upload-artifact.sh
979 name: 'apex-download-artifact'
982 !include-raw: ./apex-download-artifact.sh
988 !include-raw: ./apex-deploy.sh
990 #######################
992 ########################
996 - timed: '0 0 1-31/2 * *'
999 name: 'apex-euphrates'
1001 - timed: '0 0 2-30/2 * *'
1006 - timed: '0 3 1 1 7'