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
539 - description-setter:
540 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
541 - 'apex-download-artifact'
543 - 'apex-workspace-cleanup'
546 # Baremetal Deploy and Test
548 name: 'apex-{scenario}-baremetal-{scenario_stream}'
550 project-type: 'multijob'
558 - '{project}-defaults'
559 - '{project}-baremetal-{scenario_stream}-defaults'
564 gs-pathname: '{gs-pathname}'
566 name: DEPLOY_SCENARIO
567 default: '{scenario}'
568 description: "Scenario to deploy with."
572 use-build-blocker: true
577 - 'apex-.*-promote.*'
579 - 'apex-.+-baremetal-.+'
585 - description-setter:
586 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
588 name: 'Baremetal Deploy'
589 condition: SUCCESSFUL
591 - name: 'apex-deploy-baremetal-{scenario_stream}'
592 node-parameters: true
593 current-parameters: true
594 predefined-parameters: |
596 GERRIT_BRANCH=$GERRIT_BRANCH
598 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
599 kill-phase-on: FAILURE
603 name: 'OPNFV Test Suite'
605 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
606 node-parameters: true
607 current-parameters: false
608 predefined-parameters:
609 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
617 !include-raw-escape: ./update-build-result.groovy
621 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
623 project-type: 'multijob'
628 - '{project}-defaults'
629 - '{project}-baremetal-{scenario_stream}-defaults'
634 gs-pathname: '{gs-pathname}'
636 name: DEPLOY_SCENARIO
637 default: '{scenario}'
638 description: "Scenario to deploy with."
642 use-build-blocker: true
647 - 'apex-.*-promote.*'
649 - 'apex-testsuite-.+-baremetal-.+'
655 - description-setter:
656 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
661 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
662 node-parameters: true
663 current-parameters: false
664 predefined-parameters:
665 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
673 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
674 node-parameters: true
675 current-parameters: false
676 predefined-parameters:
677 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
685 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
686 node-parameters: true
687 current-parameters: false
688 predefined-parameters:
689 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
691 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
698 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
699 node-parameters: true
700 current-parameters: false
701 predefined-parameters:
702 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
706 # Build status is always success due conditional plugin prefetching
707 # build status before multijob phases execute
708 # - conditional-step:
709 # condition-kind: current-status
710 # condition-worst: SUCCESS
711 # condtion-best: SUCCESS
712 # on-evaluation-failure: mark-unstable
714 # - shell: 'echo "Tests Passed"'
716 {% for stream in scenarios %}
719 name: 'apex-daily-{{ stream }}'
721 # Job template for daily build
723 # Required Variables:
724 # stream: branch with - in place of / (eg. stable)
725 # branch: branch (eg. stable)
726 project-type: 'multijob'
728 node: '{{ build_slave[stream] }}'
736 - '{project}-defaults'
737 - '{project}-baremetal-{{ stream }}-defaults'
740 branch: '{{ branch[stream] }}'
742 gs-pathname: '{{ gspathname[stream] }}'
748 - 'apex-{{ stream }}'
753 condition: SUCCESSFUL
755 - name: 'apex-build-{{ stream }}'
756 current-parameters: false
757 predefined-parameters: |
758 GERRIT_BRANCH=$GERRIT_BRANCH
760 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
761 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
762 node-parameters: true
763 kill-phase-on: FAILURE
767 name: 'Verify and upload ISO'
768 condition: SUCCESSFUL
770 - name: 'apex-verify-iso-{{ stream }}'
771 current-parameters: false
772 predefined-parameters: |
773 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
774 GERRIT_BRANCH=$GERRIT_BRANCH
776 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
777 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
778 node-parameters: true
779 kill-phase-on: FAILURE
783 name: Baremetal Deploy and Test Phase
784 condition: SUCCESSFUL
786 {% for scenario in scenarios[stream] %}
787 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
788 node-parameters: false
789 current-parameters: false
790 predefined-parameters: |
800 name: 'apex-create-snapshot'
802 # Job template for clean
804 # Required Variables:
805 # stream: branch with - in place of / (eg. stable)
811 !include-raw-escape: ./apex-snapshot-create.sh
815 name: 'apex-upload-snapshot'
817 # Job template for clean
819 # Required Variables:
820 # stream: branch with - in place of / (eg. stable)
826 properties-content: ARTIFACT_TYPE=snapshot
827 - 'apex-upload-artifact'
831 name: 'apex-csit-promote-daily-{stream}'
833 # Job template for promoting CSIT Snapshots
835 # Required Variables:
836 # stream: branch with - in place of / (eg. stable)
837 # branch: branch (eg. stable)
838 node: '{virtual-slave}'
839 project-type: 'multijob'
850 gs-pathname: '{gs-pathname}'
854 use-build-blocker: true
863 - timed: '0 12 * * 0'
868 condition: SUCCESSFUL
870 - name: 'apex-build-{stream}'
871 current-parameters: false
872 predefined-parameters: |
873 GERRIT_BRANCH=$GERRIT_BRANCH
874 GERRIT_REFSPEC=$GERRIT_REFSPEC
875 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
876 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
877 node-parameters: false
878 kill-phase-on: FAILURE
883 condition: SUCCESSFUL
885 - name: 'apex-deploy-virtual-{stream}'
886 current-parameters: false
887 predefined-parameters: |
888 DEPLOY_SCENARIO=os-odl_l3-csit-noha
890 GERRIT_BRANCH=$GERRIT_BRANCH
891 GERRIT_REFSPEC=$GERRIT_REFSPEC
892 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
893 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
895 node-parameters: true
896 kill-phase-on: FAILURE
901 condition: SUCCESSFUL
903 - name: 'functest-apex-virtual-suite-{stream}'
904 current-parameters: false
905 predefined-parameters: |
906 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
907 FUNCTEST_SUITE_NAME=tempest_smoke_serial
908 GERRIT_BRANCH=$GERRIT_BRANCH
909 GERRIT_REFSPEC=$GERRIT_REFSPEC
910 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
911 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
912 node-parameters: true
913 kill-phase-on: FAILURE
917 name: create snapshot
918 condition: SUCCESSFUL
920 - name: 'apex-create-snapshot'
921 current-parameters: false
922 predefined-parameters: |
924 node-parameters: true
925 kill-phase-on: FAILURE
929 name: upload snapshot
930 condition: SUCCESSFUL
932 - name: 'apex-upload-snapshot'
933 current-parameters: false
934 predefined-parameters: |
936 node-parameters: true
937 kill-phase-on: FAILURE
943 name: 'apex-fdio-promote-daily-{stream}'
945 # Job template for promoting CSIT Snapshots
947 # Required Variables:
948 # stream: branch with - in place of / (eg. stable)
949 # branch: branch (eg. stable)
950 node: '{virtual-slave}'
951 project-type: 'multijob'
962 gs-pathname: '{gs-pathname}'
966 use-build-blocker: true
977 condition: SUCCESSFUL
979 - name: 'apex-build-{stream}'
980 current-parameters: false
981 predefined-parameters: |
982 GERRIT_BRANCH=$GERRIT_BRANCH
983 GERRIT_REFSPEC=$GERRIT_REFSPEC
984 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
985 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
986 node-parameters: false
987 kill-phase-on: FAILURE
992 condition: SUCCESSFUL
994 - name: 'apex-deploy-virtual-{stream}'
995 current-parameters: false
996 predefined-parameters: |
997 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
999 GERRIT_BRANCH=$GERRIT_BRANCH
1000 GERRIT_REFSPEC=$GERRIT_REFSPEC
1001 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1002 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1004 node-parameters: true
1005 kill-phase-on: FAILURE
1009 name: create snapshot
1010 condition: SUCCESSFUL
1012 - name: 'apex-create-snapshot'
1013 current-parameters: false
1014 predefined-parameters: |
1016 node-parameters: true
1017 kill-phase-on: FAILURE
1021 name: upload snapshot
1022 condition: SUCCESSFUL
1024 - name: 'apex-upload-snapshot'
1025 current-parameters: false
1026 predefined-parameters: |
1028 node-parameters: true
1029 kill-phase-on: FAILURE
1033 ########################
1035 ########################
1037 name: apex-parameter
1042 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1044 name: ARTIFACT_VERSION
1046 description: "Artifact version type"
1048 name: BUILD_DIRECTORY
1049 default: $WORKSPACE/.build
1050 description: "Directory where the build artifact will be located upon the completion of the build."
1052 name: CACHE_DIRECTORY
1053 default: $HOME/opnfv/apex-cache{gs-pathname}
1054 description: "Directory where the cache to be used during the build is located."
1057 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1058 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1061 default: '{gs-pathname}'
1062 description: "Version directory where opnfv artifacts are stored in gs repository"
1065 default: $GS_BASE{gs-pathname}
1066 description: "URL to Google Storage."
1070 description: "Flag to know if we should promote/upload snapshot artifacts."
1072 ########################
1074 ########################
1076 name: 'apex-unit-test'
1079 !include-raw: ./apex-unit-test.sh
1085 !include-raw: ./apex-build.sh
1088 name: 'apex-workspace-cleanup'
1091 !include-raw: ./apex-workspace-cleanup.sh
1094 name: 'apex-iso-verify'
1097 !include-raw: ./apex-iso-verify.sh
1101 name: 'apex-upload-artifact'
1104 !include-raw: ./apex-upload-artifact.sh
1107 name: 'apex-download-artifact'
1110 !include-raw: ./apex-download-artifact.sh
1116 !include-raw: ./apex-deploy.sh
1118 #######################
1120 ########################
1124 - timed: '0 12 * * *'
1128 - timed: '0 3 1 1 7'