5 - 'apex-verify-{stream}'
6 - 'apex-verify-gate-{stream}'
7 - 'apex-verify-unit-tests-{stream}'
8 - 'apex-runner-cperf-{stream}'
9 - 'apex-build-{stream}'
10 - 'apex-deploy-{platform}-{stream}'
13 - 'apex-csit-promote-daily-{stream}'
14 - 'apex-fdio-promote-daily-{stream}'
15 - 'apex-verify-iso-{stream}'
16 - 'apex-{scenario}-baremetal-{scenario_stream}'
17 - 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
18 - 'apex-upload-snapshot'
19 - 'apex-create-snapshot'
20 # stream: branch with - in place of / (eg. stable-arno)
21 # branch: branch (eg. stable/arno)
26 build-slave: 'apex-build-master'
27 virtual-slave: 'apex-virtual-master'
28 baremetal-slave: 'apex-baremetal-master'
29 verify-scenario: 'os-odl-nofeature-ha'
31 scenario_stream: 'master'
34 branch: 'stable/danube'
35 gs-pathname: '/danube'
36 build-slave: 'apex-build-danube'
37 virtual-slave: 'apex-virtual-danube'
38 baremetal-slave: 'apex-baremetal-danube'
39 verify-scenario: 'os-odl_l3-nofeature-ha'
41 scenario_stream: 'danube'
45 {%- for stream in scenarios %}
46 {%- for scenario in scenarios[stream] %}
58 name: 'apex-verify-unit-tests-{stream}'
66 gs-pathname: '{gs-pathname}'
76 server-name: 'gerrit.opnfv.org'
78 - patchset-created-event:
79 exclude-drafts: 'false'
80 exclude-trivial-rebase: 'false'
81 exclude-no-code-change: 'true'
82 - draft-published-event
83 - comment-added-contains-event:
84 comment-contains-value: 'recheck'
85 - comment-added-contains-event:
86 comment-contains-value: 'reverify'
88 - project-compare-type: 'ANT'
89 project-pattern: 'apex'
91 - branch-compare-type: 'ANT'
92 branch-pattern: '**/{branch}'
105 !include-raw-escape: ./apex-unit-test.sh
109 name: 'apex-verify-{stream}'
111 node: '{virtual-slave}'
115 project-type: 'multijob'
119 gs-pathname: '{gs-pathname}/dev'
124 name: ARTIFACT_VERSION
126 description: "Used for overriding the ARTIFACT_VERSION"
132 server-name: 'gerrit.opnfv.org'
134 - patchset-created-event:
135 exclude-drafts: 'false'
136 exclude-trivial-rebase: 'false'
137 exclude-no-code-change: 'true'
138 - draft-published-event
139 - comment-added-contains-event:
140 comment-contains-value: 'recheck'
141 - comment-added-contains-event:
142 comment-contains-value: 'reverify'
144 - project-compare-type: 'ANT'
145 project-pattern: 'apex'
147 - branch-compare-type: 'ANT'
148 branch-pattern: '**/{branch}'
167 - description-setter:
168 description: "Built on $NODE_NAME"
171 condition: SUCCESSFUL
173 - name: 'apex-verify-unit-tests-{stream}'
174 current-parameters: false
175 predefined-parameters: |
176 GERRIT_BRANCH=$GERRIT_BRANCH
177 GERRIT_REFSPEC=$GERRIT_REFSPEC
178 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
179 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
180 node-parameters: false
181 kill-phase-on: FAILURE
186 condition: SUCCESSFUL
188 - name: 'apex-build-{stream}'
189 current-parameters: false
190 predefined-parameters: |
191 ARTIFACT_VERSION=$ARTIFACT_VERSION
192 GERRIT_BRANCH=$GERRIT_BRANCH
193 GERRIT_REFSPEC=$GERRIT_REFSPEC
194 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
195 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
196 node-parameters: false
197 kill-phase-on: FAILURE
202 condition: SUCCESSFUL
204 - name: 'apex-deploy-virtual-{stream}'
205 current-parameters: false
206 predefined-parameters: |
207 ARTIFACT_VERSION=$ARTIFACT_VERSION
208 DEPLOY_SCENARIO={verify-scenario}
210 GERRIT_BRANCH=$GERRIT_BRANCH
211 GERRIT_REFSPEC=$GERRIT_REFSPEC
212 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
213 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
214 node-parameters: true
215 kill-phase-on: FAILURE
220 condition: SUCCESSFUL
222 - name: 'functest-apex-virtual-suite-{stream}'
223 current-parameters: false
224 predefined-parameters: |
225 DEPLOY_SCENARIO={verify-scenario}
226 FUNCTEST_SUITE_NAME=healthcheck
227 GERRIT_BRANCH=$GERRIT_BRANCH
228 GERRIT_REFSPEC=$GERRIT_REFSPEC
229 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
230 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
231 node-parameters: true
236 # Verify Scenario Gate
238 name: 'apex-verify-gate-{stream}'
240 node: '{virtual-slave}'
244 project-type: 'multijob'
248 gs-pathname: '{gs-pathname}/dev'
254 default: https://gerrit.opnfv.org/gerrit/$PROJECT
255 description: "Used for overriding the GIT URL coming from parameters macro."
257 name: ARTIFACT_VERSION
259 description: "Used for overriding the ARTIFACT_VERSION"
266 server-name: 'gerrit.opnfv.org'
268 - comment-added-contains-event:
269 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
271 - project-compare-type: 'ANT'
272 project-pattern: 'apex'
274 - branch-compare-type: 'ANT'
275 branch-pattern: '**/{branch}'
296 condition: SUCCESSFUL
298 - name: 'apex-deploy-virtual-{stream}'
299 current-parameters: false
300 predefined-parameters: |
301 ARTIFACT_VERSION=$ARTIFACT_VERSION
304 GERRIT_BRANCH=$GERRIT_BRANCH
305 GERRIT_REFSPEC=$GERRIT_REFSPEC
306 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
307 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
308 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
309 node-parameters: true
310 kill-phase-on: FAILURE
315 condition: SUCCESSFUL
317 - name: 'functest-apex-virtual-suite-{stream}'
318 current-parameters: false
319 predefined-parameters: |
320 DEPLOY_SCENARIO={verify-scenario}
321 FUNCTEST_SUITE_NAME=healthcheck
322 GERRIT_BRANCH=$GERRIT_BRANCH
323 GERRIT_REFSPEC=$GERRIT_REFSPEC
324 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
325 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
326 node-parameters: true
332 name: 'apex-runner-cperf-{stream}'
335 project-type: 'multijob'
342 gs-pathname: '{gs-pathname}'
348 default: https://gerrit.opnfv.org/gerrit/$PROJECT
349 description: "Used for overriding the GIT URL coming from parameters macro."
357 use-build-blocker: false
367 - description-setter:
368 description: "Deployed on $NODE_NAME"
370 name: 'Baremetal Deploy'
373 - name: 'apex-deploy-baremetal-{stream}'
374 node-parameters: false
375 current-parameters: true
376 predefined-parameters: |
377 GERRIT_BRANCH=$GERRIT_BRANCH
380 DEPLOY_SCENARIO={verify-scenario}
381 kill-phase-on: FAILURE
386 condition: SUCCESSFUL
388 - name: 'cperf-apex-intel-pod2-daily-master'
389 node-parameters: true
390 current-parameters: false
391 predefined-parameters:
392 DEPLOY_SCENARIO={verify-scenario}
399 name: 'apex-build-{stream}'
401 # Job template for builds
403 # Required Variables:
404 # stream: branch with - in place of / (eg. stable)
405 # branch: branch (eg. stable)
406 node: '{build-slave}'
413 - '{project}-defaults'
418 gs-pathname: '{gs-pathname}'
431 max-per-node: {concurrent-builds}
435 use-build-blocker: true
438 - 'apex-verify-iso-{stream}'
443 properties-content: ARTIFACT_TYPE=rpm
444 - 'apex-upload-artifact'
448 name: 'apex-verify-iso-{stream}'
450 # Job template for builds
452 # Required Variables:
453 # stream: branch with - in place of / (eg. stable)
454 # branch: branch (eg. stable)
455 node: '{virtual-slave}'
466 gs-pathname: '{gs-pathname}'
469 default: https://gerrit.opnfv.org/gerrit/$PROJECT
470 description: "Used for overriding the GIT URL coming from parameters macro."
485 properties-content: ARTIFACT_TYPE=iso
486 - 'apex-upload-artifact'
490 name: 'apex-deploy-{platform}-{stream}'
492 node: 'apex-{platform}-{stream}'
507 - '{project}-{platform}-{stream}-defaults'
512 gs-pathname: '{gs-pathname}'
514 name: DEPLOY_SCENARIO
515 default: '{verify-scenario}'
516 description: "Scenario to deploy with."
520 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
525 use-build-blocker: true
538 - description-setter:
539 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
540 - 'apex-download-artifact'
542 - 'apex-workspace-cleanup'
545 # Baremetal Deploy and Test
547 name: 'apex-{scenario}-baremetal-{scenario_stream}'
549 project-type: 'multijob'
557 - '{project}-defaults'
558 - '{project}-baremetal-{scenario_stream}-defaults'
563 gs-pathname: '{gs-pathname}'
565 name: DEPLOY_SCENARIO
566 default: '{scenario}'
567 description: "Scenario to deploy with."
571 use-build-blocker: true
576 - 'apex-.*-promote.*'
578 - 'apex-.+-baremetal-.+'
584 - description-setter:
585 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
587 name: 'Baremetal Deploy'
588 condition: SUCCESSFUL
590 - name: 'apex-deploy-baremetal-{scenario_stream}'
591 node-parameters: true
592 current-parameters: true
593 predefined-parameters: |
595 GERRIT_BRANCH=$GERRIT_BRANCH
597 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
598 kill-phase-on: FAILURE
602 name: 'OPNFV Test Suite'
604 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
605 node-parameters: true
606 current-parameters: false
607 predefined-parameters:
608 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
616 !include-raw-escape: ./update-build-result.groovy
620 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
622 project-type: 'multijob'
627 - '{project}-defaults'
628 - '{project}-baremetal-{scenario_stream}-defaults'
633 gs-pathname: '{gs-pathname}'
635 name: DEPLOY_SCENARIO
636 default: '{scenario}'
637 description: "Scenario to deploy with."
641 use-build-blocker: true
646 - 'apex-.*-promote.*'
648 - 'apex-testsuite-.+-baremetal-.+'
654 - description-setter:
655 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
660 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
661 node-parameters: true
662 current-parameters: false
663 predefined-parameters:
664 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
672 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
673 node-parameters: true
674 current-parameters: false
675 predefined-parameters:
676 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
684 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
685 node-parameters: true
686 current-parameters: false
687 predefined-parameters:
688 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
690 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
693 # Build status is always success due conditional plugin prefetching
694 # build status before multijob phases execute
695 # - conditional-step:
696 # condition-kind: current-status
697 # condition-worst: SUCCESS
698 # condtion-best: SUCCESS
699 # on-evaluation-failure: mark-unstable
701 # - shell: 'echo "Tests Passed"'
703 {% for stream in scenarios %}
706 name: 'apex-daily-{{ stream }}'
708 # Job template for daily build
710 # Required Variables:
711 # stream: branch with - in place of / (eg. stable)
712 # branch: branch (eg. stable)
713 project-type: 'multijob'
715 node: '{{ build_slave[stream] }}'
723 - '{project}-defaults'
724 - '{project}-baremetal-{{ stream }}-defaults'
727 branch: '{{ branch[stream] }}'
729 gs-pathname: '{{ gspathname[stream] }}'
735 - 'apex-{{ stream }}'
740 condition: SUCCESSFUL
742 - name: 'apex-build-{{ stream }}'
743 current-parameters: false
744 predefined-parameters: |
745 GERRIT_BRANCH=$GERRIT_BRANCH
747 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
748 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
749 node-parameters: true
750 kill-phase-on: FAILURE
754 name: 'Verify and upload ISO'
755 condition: SUCCESSFUL
757 - name: 'apex-verify-iso-{{ stream }}'
758 current-parameters: false
759 predefined-parameters: |
760 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
761 GERRIT_BRANCH=$GERRIT_BRANCH
763 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
764 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
765 node-parameters: true
766 kill-phase-on: FAILURE
770 name: Baremetal Deploy and Test Phase
771 condition: SUCCESSFUL
773 {% for scenario in scenarios[stream] %}
774 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
775 node-parameters: false
776 current-parameters: false
777 predefined-parameters: |
787 name: 'apex-create-snapshot'
789 # Job template for clean
791 # Required Variables:
792 # stream: branch with - in place of / (eg. stable)
798 !include-raw-escape: ./apex-snapshot-create.sh
802 name: 'apex-upload-snapshot'
804 # Job template for clean
806 # Required Variables:
807 # stream: branch with - in place of / (eg. stable)
813 properties-content: ARTIFACT_TYPE=snapshot
814 - 'apex-upload-artifact'
818 name: 'apex-csit-promote-daily-{stream}'
820 # Job template for promoting CSIT Snapshots
822 # Required Variables:
823 # stream: branch with - in place of / (eg. stable)
824 # branch: branch (eg. stable)
825 node: '{virtual-slave}'
826 project-type: 'multijob'
837 gs-pathname: '{gs-pathname}'
841 use-build-blocker: true
850 - timed: '0 12 * * 0'
855 condition: SUCCESSFUL
857 - name: 'apex-build-{stream}'
858 current-parameters: false
859 predefined-parameters: |
860 GERRIT_BRANCH=$GERRIT_BRANCH
861 GERRIT_REFSPEC=$GERRIT_REFSPEC
862 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
863 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
864 node-parameters: false
865 kill-phase-on: FAILURE
870 condition: SUCCESSFUL
872 - name: 'apex-deploy-virtual-{stream}'
873 current-parameters: false
874 predefined-parameters: |
875 DEPLOY_SCENARIO=os-odl_l3-csit-noha
877 GERRIT_BRANCH=$GERRIT_BRANCH
878 GERRIT_REFSPEC=$GERRIT_REFSPEC
879 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
880 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
882 node-parameters: true
883 kill-phase-on: FAILURE
888 condition: SUCCESSFUL
890 - name: 'functest-apex-virtual-suite-{stream}'
891 current-parameters: false
892 predefined-parameters: |
893 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
894 FUNCTEST_SUITE_NAME=tempest_smoke_serial
895 GERRIT_BRANCH=$GERRIT_BRANCH
896 GERRIT_REFSPEC=$GERRIT_REFSPEC
897 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
898 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
899 node-parameters: true
900 kill-phase-on: FAILURE
904 name: create snapshot
905 condition: SUCCESSFUL
907 - name: 'apex-create-snapshot'
908 current-parameters: false
909 predefined-parameters: |
911 node-parameters: true
912 kill-phase-on: FAILURE
916 name: upload snapshot
917 condition: SUCCESSFUL
919 - name: 'apex-upload-snapshot'
920 current-parameters: false
921 predefined-parameters: |
923 node-parameters: true
924 kill-phase-on: FAILURE
930 name: 'apex-fdio-promote-daily-{stream}'
932 # Job template for promoting CSIT Snapshots
934 # Required Variables:
935 # stream: branch with - in place of / (eg. stable)
936 # branch: branch (eg. stable)
937 node: '{virtual-slave}'
938 project-type: 'multijob'
949 gs-pathname: '{gs-pathname}'
953 use-build-blocker: true
964 condition: SUCCESSFUL
966 - name: 'apex-build-{stream}'
967 current-parameters: false
968 predefined-parameters: |
969 GERRIT_BRANCH=$GERRIT_BRANCH
970 GERRIT_REFSPEC=$GERRIT_REFSPEC
971 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
972 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
973 node-parameters: false
974 kill-phase-on: FAILURE
979 condition: SUCCESSFUL
981 - name: 'apex-deploy-virtual-{stream}'
982 current-parameters: false
983 predefined-parameters: |
984 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
986 GERRIT_BRANCH=$GERRIT_BRANCH
987 GERRIT_REFSPEC=$GERRIT_REFSPEC
988 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
989 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
991 node-parameters: true
992 kill-phase-on: FAILURE
996 name: create snapshot
997 condition: SUCCESSFUL
999 - name: 'apex-create-snapshot'
1000 current-parameters: false
1001 predefined-parameters: |
1003 node-parameters: true
1004 kill-phase-on: FAILURE
1008 name: upload snapshot
1009 condition: SUCCESSFUL
1011 - name: 'apex-upload-snapshot'
1012 current-parameters: false
1013 predefined-parameters: |
1015 node-parameters: true
1016 kill-phase-on: FAILURE
1020 ########################
1022 ########################
1024 name: apex-parameter
1029 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1031 name: ARTIFACT_VERSION
1033 description: "Artifact version type"
1035 name: BUILD_DIRECTORY
1036 default: $WORKSPACE/.build
1037 description: "Directory where the build artifact will be located upon the completion of the build."
1039 name: CACHE_DIRECTORY
1040 default: $HOME/opnfv/apex-cache{gs-pathname}
1041 description: "Directory where the cache to be used during the build is located."
1044 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1045 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1048 default: '{gs-pathname}'
1049 description: "Version directory where opnfv artifacts are stored in gs repository"
1052 default: $GS_BASE{gs-pathname}
1053 description: "URL to Google Storage."
1057 description: "Flag to know if we should promote/upload snapshot artifacts."
1059 ########################
1061 ########################
1063 name: 'apex-unit-test'
1066 !include-raw: ./apex-unit-test.sh
1072 !include-raw: ./apex-build.sh
1075 name: 'apex-workspace-cleanup'
1078 !include-raw: ./apex-workspace-cleanup.sh
1081 name: 'apex-iso-verify'
1084 !include-raw: ./apex-iso-verify.sh
1088 name: 'apex-upload-artifact'
1091 !include-raw: ./apex-upload-artifact.sh
1094 name: 'apex-download-artifact'
1097 !include-raw: ./apex-download-artifact.sh
1103 !include-raw: ./apex-deploy.sh
1105 #######################
1107 ########################
1111 - timed: '0 12 * * *'
1115 - timed: '0 3 1 1 7'