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}'
95 pattern: 'apex/tests/**'
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}'
169 - description-setter:
170 description: "Built on $NODE_NAME"
173 condition: SUCCESSFUL
175 - name: 'apex-verify-unit-tests-{stream}'
176 current-parameters: false
177 predefined-parameters: |
178 GERRIT_BRANCH=$GERRIT_BRANCH
179 GERRIT_REFSPEC=$GERRIT_REFSPEC
180 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
181 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
182 node-parameters: false
183 kill-phase-on: FAILURE
188 condition: SUCCESSFUL
190 - name: 'apex-build-{stream}'
191 current-parameters: false
192 predefined-parameters: |
193 ARTIFACT_VERSION=$ARTIFACT_VERSION
194 GERRIT_BRANCH=$GERRIT_BRANCH
195 GERRIT_REFSPEC=$GERRIT_REFSPEC
196 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
197 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
198 node-parameters: false
199 kill-phase-on: FAILURE
204 condition: SUCCESSFUL
206 - name: 'apex-deploy-virtual-{stream}'
207 current-parameters: false
208 predefined-parameters: |
209 ARTIFACT_VERSION=$ARTIFACT_VERSION
210 DEPLOY_SCENARIO={verify-scenario}
212 GERRIT_BRANCH=$GERRIT_BRANCH
213 GERRIT_REFSPEC=$GERRIT_REFSPEC
214 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
215 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
216 node-parameters: true
217 kill-phase-on: FAILURE
222 condition: SUCCESSFUL
224 - name: 'functest-apex-virtual-suite-{stream}'
225 current-parameters: false
226 predefined-parameters: |
227 DEPLOY_SCENARIO={verify-scenario}
228 FUNCTEST_SUITE_NAME=healthcheck
229 GERRIT_BRANCH=$GERRIT_BRANCH
230 GERRIT_REFSPEC=$GERRIT_REFSPEC
231 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
232 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
233 node-parameters: true
238 # Verify Scenario Gate
240 name: 'apex-verify-gate-{stream}'
242 node: '{virtual-slave}'
246 project-type: 'multijob'
250 gs-pathname: '{gs-pathname}/dev'
256 default: https://gerrit.opnfv.org/gerrit/$PROJECT
257 description: "Used for overriding the GIT URL coming from parameters macro."
259 name: ARTIFACT_VERSION
261 description: "Used for overriding the ARTIFACT_VERSION"
268 server-name: 'gerrit.opnfv.org'
270 - comment-added-contains-event:
271 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
273 - project-compare-type: 'ANT'
274 project-pattern: 'apex'
276 - branch-compare-type: 'ANT'
277 branch-pattern: '**/{branch}'
298 condition: SUCCESSFUL
300 - name: 'apex-deploy-virtual-{stream}'
301 current-parameters: false
302 predefined-parameters: |
303 ARTIFACT_VERSION=$ARTIFACT_VERSION
306 GERRIT_BRANCH=$GERRIT_BRANCH
307 GERRIT_REFSPEC=$GERRIT_REFSPEC
308 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
309 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
310 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
311 node-parameters: true
312 kill-phase-on: FAILURE
317 condition: SUCCESSFUL
319 - name: 'functest-apex-virtual-suite-{stream}'
320 current-parameters: false
321 predefined-parameters: |
322 DEPLOY_SCENARIO={verify-scenario}
323 FUNCTEST_SUITE_NAME=healthcheck
324 GERRIT_BRANCH=$GERRIT_BRANCH
325 GERRIT_REFSPEC=$GERRIT_REFSPEC
326 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
327 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
328 node-parameters: true
334 name: 'apex-runner-cperf-{stream}'
337 project-type: 'multijob'
344 gs-pathname: '{gs-pathname}'
350 default: https://gerrit.opnfv.org/gerrit/$PROJECT
351 description: "Used for overriding the GIT URL coming from parameters macro."
359 use-build-blocker: false
369 - description-setter:
370 description: "Deployed on $NODE_NAME"
372 name: 'Baremetal Deploy'
375 - name: 'apex-deploy-baremetal-{stream}'
376 node-parameters: false
377 current-parameters: true
378 predefined-parameters: |
379 GERRIT_BRANCH=$GERRIT_BRANCH
382 DEPLOY_SCENARIO={verify-scenario}
383 kill-phase-on: FAILURE
388 condition: SUCCESSFUL
390 - name: 'cperf-apex-intel-pod2-daily-master'
391 node-parameters: true
392 current-parameters: false
393 predefined-parameters:
394 DEPLOY_SCENARIO={verify-scenario}
401 name: 'apex-build-{stream}'
403 # Job template for builds
405 # Required Variables:
406 # stream: branch with - in place of / (eg. stable)
407 # branch: branch (eg. stable)
408 node: '{build-slave}'
415 - '{project}-defaults'
420 gs-pathname: '{gs-pathname}'
433 max-per-node: {concurrent-builds}
437 use-build-blocker: true
440 - 'apex-verify-iso-{stream}'
445 properties-content: ARTIFACT_TYPE=rpm
446 - 'apex-upload-artifact'
450 name: 'apex-verify-iso-{stream}'
452 # Job template for builds
454 # Required Variables:
455 # stream: branch with - in place of / (eg. stable)
456 # branch: branch (eg. stable)
457 node: '{virtual-slave}'
468 gs-pathname: '{gs-pathname}'
471 default: https://gerrit.opnfv.org/gerrit/$PROJECT
472 description: "Used for overriding the GIT URL coming from parameters macro."
487 properties-content: ARTIFACT_TYPE=iso
488 - 'apex-upload-artifact'
492 name: 'apex-deploy-{platform}-{stream}'
494 node: 'apex-{platform}-{stream}'
509 - '{project}-{platform}-{stream}-defaults'
514 gs-pathname: '{gs-pathname}'
516 name: DEPLOY_SCENARIO
517 default: '{verify-scenario}'
518 description: "Scenario to deploy with."
522 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
527 use-build-blocker: true
541 - description-setter:
542 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
543 - 'apex-download-artifact'
545 - 'apex-workspace-cleanup'
548 # Baremetal Deploy and Test
550 name: 'apex-{scenario}-baremetal-{scenario_stream}'
552 project-type: 'multijob'
560 - '{project}-defaults'
561 - '{project}-baremetal-{scenario_stream}-defaults'
566 gs-pathname: '{gs-pathname}'
568 name: DEPLOY_SCENARIO
569 default: '{scenario}'
570 description: "Scenario to deploy with."
574 use-build-blocker: true
579 - 'apex-.*-promote.*'
581 - 'apex-.+-baremetal-.+'
587 - description-setter:
588 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
590 name: 'Baremetal Deploy'
591 condition: SUCCESSFUL
593 - name: 'apex-deploy-baremetal-{scenario_stream}'
594 node-parameters: true
595 current-parameters: true
596 predefined-parameters: |
598 GERRIT_BRANCH=$GERRIT_BRANCH
600 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
601 kill-phase-on: FAILURE
605 name: 'OPNFV Test Suite'
607 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
608 node-parameters: true
609 current-parameters: false
610 predefined-parameters:
611 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
619 !include-raw-escape: ./update-build-result.groovy
623 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
625 project-type: 'multijob'
630 - '{project}-defaults'
631 - '{project}-baremetal-{scenario_stream}-defaults'
636 gs-pathname: '{gs-pathname}'
638 name: DEPLOY_SCENARIO
639 default: '{scenario}'
640 description: "Scenario to deploy with."
644 use-build-blocker: true
649 - 'apex-.*-promote.*'
651 - 'apex-testsuite-.+-baremetal-.+'
657 - description-setter:
658 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
663 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
664 node-parameters: true
665 current-parameters: false
666 predefined-parameters:
667 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
675 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
676 node-parameters: true
677 current-parameters: false
678 predefined-parameters:
679 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
687 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
688 node-parameters: true
689 current-parameters: false
690 predefined-parameters:
691 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
693 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
700 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
701 node-parameters: true
702 current-parameters: false
703 predefined-parameters:
704 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
708 # Build status is always success due conditional plugin prefetching
709 # build status before multijob phases execute
710 # - conditional-step:
711 # condition-kind: current-status
712 # condition-worst: SUCCESS
713 # condtion-best: SUCCESS
714 # on-evaluation-failure: mark-unstable
716 # - shell: 'echo "Tests Passed"'
718 {% for stream in scenarios %}
721 name: 'apex-daily-{{ stream }}'
723 # Job template for daily build
725 # Required Variables:
726 # stream: branch with - in place of / (eg. stable)
727 # branch: branch (eg. stable)
728 project-type: 'multijob'
730 node: '{{ build_slave[stream] }}'
738 - '{project}-defaults'
739 - '{project}-baremetal-{{ stream }}-defaults'
742 branch: '{{ branch[stream] }}'
744 gs-pathname: '{{ gspathname[stream] }}'
750 - 'apex-{{ stream }}'
755 condition: SUCCESSFUL
757 - name: 'apex-build-{{ stream }}'
758 current-parameters: false
759 predefined-parameters: |
760 GERRIT_BRANCH=$GERRIT_BRANCH
762 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
763 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
764 node-parameters: true
765 kill-phase-on: FAILURE
769 name: 'Verify and upload ISO'
770 condition: SUCCESSFUL
772 - name: 'apex-verify-iso-{{ stream }}'
773 current-parameters: false
774 predefined-parameters: |
775 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
776 GERRIT_BRANCH=$GERRIT_BRANCH
778 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
779 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
780 node-parameters: true
781 kill-phase-on: FAILURE
785 name: Baremetal Deploy and Test Phase
786 condition: SUCCESSFUL
788 {% for scenario in scenarios[stream] %}
789 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
790 node-parameters: false
791 current-parameters: false
792 predefined-parameters: |
802 name: 'apex-create-snapshot'
804 # Job template for clean
806 # Required Variables:
807 # stream: branch with - in place of / (eg. stable)
813 !include-raw-escape: ./apex-snapshot-create.sh
817 name: 'apex-upload-snapshot'
819 # Job template for clean
821 # Required Variables:
822 # stream: branch with - in place of / (eg. stable)
828 properties-content: ARTIFACT_TYPE=snapshot
829 - 'apex-upload-artifact'
833 name: 'apex-csit-promote-daily-{stream}'
835 # Job template for promoting CSIT Snapshots
837 # Required Variables:
838 # stream: branch with - in place of / (eg. stable)
839 # branch: branch (eg. stable)
840 node: '{virtual-slave}'
841 project-type: 'multijob'
852 gs-pathname: '{gs-pathname}'
856 use-build-blocker: true
865 - timed: '0 12 * * 0'
870 condition: SUCCESSFUL
872 - name: 'apex-build-{stream}'
873 current-parameters: false
874 predefined-parameters: |
875 GERRIT_BRANCH=$GERRIT_BRANCH
876 GERRIT_REFSPEC=$GERRIT_REFSPEC
877 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
878 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
879 node-parameters: false
880 kill-phase-on: FAILURE
885 condition: SUCCESSFUL
887 - name: 'apex-deploy-virtual-{stream}'
888 current-parameters: false
889 predefined-parameters: |
890 DEPLOY_SCENARIO=os-odl_l3-csit-noha
892 GERRIT_BRANCH=$GERRIT_BRANCH
893 GERRIT_REFSPEC=$GERRIT_REFSPEC
894 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
895 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
897 node-parameters: true
898 kill-phase-on: FAILURE
903 condition: SUCCESSFUL
905 - name: 'functest-apex-virtual-suite-{stream}'
906 current-parameters: false
907 predefined-parameters: |
908 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
909 FUNCTEST_SUITE_NAME=tempest_smoke_serial
910 GERRIT_BRANCH=$GERRIT_BRANCH
911 GERRIT_REFSPEC=$GERRIT_REFSPEC
912 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
913 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
914 node-parameters: true
915 kill-phase-on: FAILURE
919 name: create snapshot
920 condition: SUCCESSFUL
922 - name: 'apex-create-snapshot'
923 current-parameters: false
924 predefined-parameters: |
926 node-parameters: true
927 kill-phase-on: FAILURE
931 name: upload snapshot
932 condition: SUCCESSFUL
934 - name: 'apex-upload-snapshot'
935 current-parameters: false
936 predefined-parameters: |
938 node-parameters: true
939 kill-phase-on: FAILURE
945 name: 'apex-fdio-promote-daily-{stream}'
947 # Job template for promoting CSIT Snapshots
949 # Required Variables:
950 # stream: branch with - in place of / (eg. stable)
951 # branch: branch (eg. stable)
952 node: '{virtual-slave}'
953 project-type: 'multijob'
964 gs-pathname: '{gs-pathname}'
968 use-build-blocker: true
979 condition: SUCCESSFUL
981 - name: 'apex-build-{stream}'
982 current-parameters: false
983 predefined-parameters: |
984 GERRIT_BRANCH=$GERRIT_BRANCH
985 GERRIT_REFSPEC=$GERRIT_REFSPEC
986 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
987 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
988 node-parameters: false
989 kill-phase-on: FAILURE
994 condition: SUCCESSFUL
996 - name: 'apex-deploy-virtual-{stream}'
997 current-parameters: false
998 predefined-parameters: |
999 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
1001 GERRIT_BRANCH=$GERRIT_BRANCH
1002 GERRIT_REFSPEC=$GERRIT_REFSPEC
1003 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1004 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1006 node-parameters: true
1007 kill-phase-on: FAILURE
1011 name: create snapshot
1012 condition: SUCCESSFUL
1014 - name: 'apex-create-snapshot'
1015 current-parameters: false
1016 predefined-parameters: |
1018 node-parameters: true
1019 kill-phase-on: FAILURE
1023 name: upload snapshot
1024 condition: SUCCESSFUL
1026 - name: 'apex-upload-snapshot'
1027 current-parameters: false
1028 predefined-parameters: |
1030 node-parameters: true
1031 kill-phase-on: FAILURE
1035 ########################
1037 ########################
1039 name: apex-parameter
1044 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1046 name: ARTIFACT_VERSION
1048 description: "Artifact version type"
1050 name: BUILD_DIRECTORY
1051 default: $WORKSPACE/.build
1052 description: "Directory where the build artifact will be located upon the completion of the build."
1054 name: CACHE_DIRECTORY
1055 default: $HOME/opnfv/apex-cache{gs-pathname}
1056 description: "Directory where the cache to be used during the build is located."
1059 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1060 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1063 default: '{gs-pathname}'
1064 description: "Version directory where opnfv artifacts are stored in gs repository"
1067 default: $GS_BASE{gs-pathname}
1068 description: "URL to Google Storage."
1072 description: "Flag to know if we should promote/upload snapshot artifacts."
1074 ########################
1076 ########################
1078 name: 'apex-unit-test'
1081 !include-raw: ./apex-unit-test.sh
1087 !include-raw: ./apex-build.sh
1090 name: 'apex-workspace-cleanup'
1093 !include-raw: ./apex-workspace-cleanup.sh
1096 name: 'apex-iso-verify'
1099 !include-raw: ./apex-iso-verify.sh
1103 name: 'apex-upload-artifact'
1106 !include-raw: ./apex-upload-artifact.sh
1109 name: 'apex-download-artifact'
1112 !include-raw: ./apex-download-artifact.sh
1118 !include-raw: ./apex-deploy.sh
1120 #######################
1122 ########################
1126 - timed: '0 12 * * *'
1130 - timed: '0 3 1 1 7'