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}'
164 use-build-blocker: true
174 - description-setter:
175 description: "Built on $NODE_NAME"
178 condition: SUCCESSFUL
180 - name: 'apex-verify-unit-tests-{stream}'
181 current-parameters: false
182 predefined-parameters: |
183 GERRIT_BRANCH=$GERRIT_BRANCH
184 GERRIT_REFSPEC=$GERRIT_REFSPEC
185 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
186 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
187 node-parameters: false
188 kill-phase-on: FAILURE
193 condition: SUCCESSFUL
195 - name: 'apex-build-{stream}'
196 current-parameters: false
197 predefined-parameters: |
198 ARTIFACT_VERSION=$ARTIFACT_VERSION
199 GERRIT_BRANCH=$GERRIT_BRANCH
200 GERRIT_REFSPEC=$GERRIT_REFSPEC
201 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
202 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
203 node-parameters: false
204 kill-phase-on: FAILURE
209 condition: SUCCESSFUL
211 - name: 'apex-deploy-virtual-{stream}'
212 current-parameters: false
213 predefined-parameters: |
214 ARTIFACT_VERSION=$ARTIFACT_VERSION
215 DEPLOY_SCENARIO={verify-scenario}
217 GERRIT_BRANCH=$GERRIT_BRANCH
218 GERRIT_REFSPEC=$GERRIT_REFSPEC
219 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
220 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
221 node-parameters: true
222 kill-phase-on: FAILURE
227 condition: SUCCESSFUL
229 - name: 'functest-apex-virtual-suite-{stream}'
230 current-parameters: false
231 predefined-parameters: |
232 DEPLOY_SCENARIO={verify-scenario}
233 FUNCTEST_SUITE_NAME=healthcheck
234 GERRIT_BRANCH=$GERRIT_BRANCH
235 GERRIT_REFSPEC=$GERRIT_REFSPEC
236 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
237 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
238 node-parameters: true
243 # Verify Scenario Gate
245 name: 'apex-verify-gate-{stream}'
247 node: '{virtual-slave}'
251 project-type: 'multijob'
255 gs-pathname: '{gs-pathname}/dev'
261 default: https://gerrit.opnfv.org/gerrit/$PROJECT
262 description: "Used for overriding the GIT URL coming from parameters macro."
264 name: ARTIFACT_VERSION
266 description: "Used for overriding the ARTIFACT_VERSION"
273 server-name: 'gerrit.opnfv.org'
275 - comment-added-contains-event:
276 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
278 - project-compare-type: 'ANT'
279 project-pattern: 'apex'
281 - branch-compare-type: 'ANT'
282 branch-pattern: '**/{branch}'
298 use-build-blocker: true
310 condition: SUCCESSFUL
312 - name: 'apex-deploy-virtual-{stream}'
313 current-parameters: false
314 predefined-parameters: |
315 ARTIFACT_VERSION=$ARTIFACT_VERSION
318 GERRIT_BRANCH=$GERRIT_BRANCH
319 GERRIT_REFSPEC=$GERRIT_REFSPEC
320 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
321 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
322 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
323 node-parameters: true
324 kill-phase-on: FAILURE
328 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo 'os-.*') > detected_scenario
330 properties-file: detected_scenario
333 condition: SUCCESSFUL
335 - name: 'functest-apex-virtual-suite-{stream}'
336 current-parameters: false
337 predefined-parameters: |
338 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
339 FUNCTEST_SUITE_NAME=healthcheck
340 GERRIT_BRANCH=$GERRIT_BRANCH
341 GERRIT_REFSPEC=$GERRIT_REFSPEC
342 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
343 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
344 node-parameters: true
350 name: 'apex-runner-cperf-{stream}'
353 project-type: 'multijob'
360 gs-pathname: '{gs-pathname}'
366 default: https://gerrit.opnfv.org/gerrit/$PROJECT
367 description: "Used for overriding the GIT URL coming from parameters macro."
375 use-build-blocker: false
385 - description-setter:
386 description: "Deployed on $NODE_NAME"
388 name: 'Baremetal Deploy'
391 - name: 'apex-deploy-baremetal-{stream}'
392 node-parameters: false
393 current-parameters: true
394 predefined-parameters: |
395 GERRIT_BRANCH=$GERRIT_BRANCH
398 DEPLOY_SCENARIO={verify-scenario}
399 kill-phase-on: FAILURE
404 condition: SUCCESSFUL
406 - name: 'cperf-apex-intel-pod2-daily-master'
407 node-parameters: true
408 current-parameters: false
409 predefined-parameters:
410 DEPLOY_SCENARIO={verify-scenario}
417 name: 'apex-build-{stream}'
419 # Job template for builds
421 # Required Variables:
422 # stream: branch with - in place of / (eg. stable)
423 # branch: branch (eg. stable)
424 node: '{build-slave}'
431 - '{project}-defaults'
436 gs-pathname: '{gs-pathname}'
449 max-per-node: {concurrent-builds}
453 use-build-blocker: true
456 - 'apex-verify-iso-{stream}'
461 properties-content: ARTIFACT_TYPE=rpm
462 - 'apex-upload-artifact'
466 name: 'apex-verify-iso-{stream}'
468 # Job template for builds
470 # Required Variables:
471 # stream: branch with - in place of / (eg. stable)
472 # branch: branch (eg. stable)
473 node: '{virtual-slave}'
484 gs-pathname: '{gs-pathname}'
487 default: https://gerrit.opnfv.org/gerrit/$PROJECT
488 description: "Used for overriding the GIT URL coming from parameters macro."
503 properties-content: ARTIFACT_TYPE=iso
504 - 'apex-upload-artifact'
508 name: 'apex-deploy-{platform}-{stream}'
510 node: 'apex-{platform}-{stream}'
525 - '{project}-{platform}-{stream}-defaults'
530 gs-pathname: '{gs-pathname}'
532 name: DEPLOY_SCENARIO
533 default: '{verify-scenario}'
534 description: "Scenario to deploy with."
538 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
543 use-build-blocker: true
557 - description-setter:
558 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
559 - 'apex-download-artifact'
561 - 'apex-workspace-cleanup'
564 # Baremetal Deploy and Test
566 name: 'apex-{scenario}-baremetal-{scenario_stream}'
568 project-type: 'multijob'
576 - '{project}-defaults'
577 - '{project}-baremetal-{scenario_stream}-defaults'
582 gs-pathname: '{gs-pathname}'
584 name: DEPLOY_SCENARIO
585 default: '{scenario}'
586 description: "Scenario to deploy with."
590 use-build-blocker: true
595 - 'apex-.*-promote.*'
597 - 'apex-.+-baremetal-.+'
603 - description-setter:
604 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
606 name: 'Baremetal Deploy'
607 condition: SUCCESSFUL
609 - name: 'apex-deploy-baremetal-{scenario_stream}'
610 node-parameters: true
611 current-parameters: true
612 predefined-parameters: |
614 GERRIT_BRANCH=$GERRIT_BRANCH
616 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
617 kill-phase-on: FAILURE
621 name: 'OPNFV Test Suite'
623 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
624 node-parameters: true
625 current-parameters: false
626 predefined-parameters:
627 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
635 !include-raw-escape: ./update-build-result.groovy
639 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
641 project-type: 'multijob'
646 - '{project}-defaults'
647 - '{project}-baremetal-{scenario_stream}-defaults'
652 gs-pathname: '{gs-pathname}'
654 name: DEPLOY_SCENARIO
655 default: '{scenario}'
656 description: "Scenario to deploy with."
660 use-build-blocker: true
665 - 'apex-.*-promote.*'
667 - 'apex-testsuite-.+-baremetal-.+'
673 - description-setter:
674 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
679 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
680 node-parameters: true
681 current-parameters: false
682 predefined-parameters:
683 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
691 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
692 node-parameters: true
693 current-parameters: false
694 predefined-parameters:
695 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
703 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
704 node-parameters: true
705 current-parameters: false
706 predefined-parameters:
707 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
709 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
716 # - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
717 # node-parameters: true
718 # current-parameters: false
719 # predefined-parameters:
720 # DEPLOY_SCENARIO=$DEPLOY_SCENARIO
721 # kill-phase-on: NEVER
722 # abort-all-job: false
723 # git-revision: false
724 # Build status is always success due conditional plugin prefetching
725 # build status before multijob phases execute
726 # - conditional-step:
727 # condition-kind: current-status
728 # condition-worst: SUCCESS
729 # condtion-best: SUCCESS
730 # on-evaluation-failure: mark-unstable
732 # - shell: 'echo "Tests Passed"'
734 {% for stream in scenarios %}
737 name: 'apex-daily-{{ stream }}'
739 # Job template for daily build
741 # Required Variables:
742 # stream: branch with - in place of / (eg. stable)
743 # branch: branch (eg. stable)
744 project-type: 'multijob'
746 node: '{{ build_slave[stream] }}'
754 - '{project}-defaults'
755 - '{project}-baremetal-{{ stream }}-defaults'
758 branch: '{{ branch[stream] }}'
760 gs-pathname: '{{ gspathname[stream] }}'
766 - 'apex-{{ stream }}'
771 condition: SUCCESSFUL
773 - name: 'apex-build-{{ stream }}'
774 current-parameters: false
775 predefined-parameters: |
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: 'Verify and upload ISO'
786 condition: SUCCESSFUL
788 - name: 'apex-verify-iso-{{ stream }}'
789 current-parameters: false
790 predefined-parameters: |
791 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
792 GERRIT_BRANCH=$GERRIT_BRANCH
794 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
795 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
796 node-parameters: true
797 kill-phase-on: FAILURE
801 name: Baremetal Deploy and Test Phase
802 condition: SUCCESSFUL
804 {% for scenario in scenarios[stream] %}
805 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
806 node-parameters: false
807 current-parameters: false
808 predefined-parameters: |
818 name: 'apex-create-snapshot'
820 # Job template for clean
822 # Required Variables:
823 # stream: branch with - in place of / (eg. stable)
829 !include-raw-escape: ./apex-snapshot-create.sh
833 name: 'apex-upload-snapshot'
835 # Job template for clean
837 # Required Variables:
838 # stream: branch with - in place of / (eg. stable)
844 properties-content: ARTIFACT_TYPE=snapshot
845 - 'apex-upload-artifact'
849 name: 'apex-csit-promote-daily-{stream}'
851 # Job template for promoting CSIT Snapshots
853 # Required Variables:
854 # stream: branch with - in place of / (eg. stable)
855 # branch: branch (eg. stable)
856 node: '{virtual-slave}'
857 project-type: 'multijob'
868 gs-pathname: '{gs-pathname}'
872 use-build-blocker: true
881 - timed: '0 12 * * 0'
886 condition: SUCCESSFUL
888 - name: 'apex-build-{stream}'
889 current-parameters: false
890 predefined-parameters: |
891 GERRIT_BRANCH=$GERRIT_BRANCH
892 GERRIT_REFSPEC=$GERRIT_REFSPEC
893 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
894 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
895 node-parameters: false
896 kill-phase-on: FAILURE
901 condition: SUCCESSFUL
903 - name: 'apex-deploy-virtual-{stream}'
904 current-parameters: false
905 predefined-parameters: |
906 DEPLOY_SCENARIO=os-odl_l3-csit-noha
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
913 node-parameters: true
914 kill-phase-on: FAILURE
919 condition: SUCCESSFUL
921 - name: 'functest-apex-virtual-suite-{stream}'
922 current-parameters: false
923 predefined-parameters: |
924 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
925 FUNCTEST_SUITE_NAME=tempest_smoke_serial
926 GERRIT_BRANCH=$GERRIT_BRANCH
927 GERRIT_REFSPEC=$GERRIT_REFSPEC
928 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
929 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
930 node-parameters: true
931 kill-phase-on: FAILURE
935 name: create snapshot
936 condition: SUCCESSFUL
938 - name: 'apex-create-snapshot'
939 current-parameters: false
940 predefined-parameters: |
942 node-parameters: true
943 kill-phase-on: FAILURE
947 name: upload snapshot
948 condition: SUCCESSFUL
950 - name: 'apex-upload-snapshot'
951 current-parameters: false
952 predefined-parameters: |
954 node-parameters: true
955 kill-phase-on: FAILURE
961 name: 'apex-fdio-promote-daily-{stream}'
963 # Job template for promoting CSIT Snapshots
965 # Required Variables:
966 # stream: branch with - in place of / (eg. stable)
967 # branch: branch (eg. stable)
968 node: '{virtual-slave}'
969 project-type: 'multijob'
980 gs-pathname: '{gs-pathname}'
984 use-build-blocker: true
995 condition: SUCCESSFUL
997 - name: 'apex-build-{stream}'
998 current-parameters: false
999 predefined-parameters: |
1000 GERRIT_BRANCH=$GERRIT_BRANCH
1001 GERRIT_REFSPEC=$GERRIT_REFSPEC
1002 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1003 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1004 node-parameters: false
1005 kill-phase-on: FAILURE
1009 name: deploy-virtual
1010 condition: SUCCESSFUL
1012 - name: 'apex-deploy-virtual-{stream}'
1013 current-parameters: false
1014 predefined-parameters: |
1015 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
1017 GERRIT_BRANCH=$GERRIT_BRANCH
1018 GERRIT_REFSPEC=$GERRIT_REFSPEC
1019 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1020 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1022 node-parameters: true
1023 kill-phase-on: FAILURE
1027 name: create snapshot
1028 condition: SUCCESSFUL
1030 - name: 'apex-create-snapshot'
1031 current-parameters: false
1032 predefined-parameters: |
1034 node-parameters: true
1035 kill-phase-on: FAILURE
1039 name: upload snapshot
1040 condition: SUCCESSFUL
1042 - name: 'apex-upload-snapshot'
1043 current-parameters: false
1044 predefined-parameters: |
1046 node-parameters: true
1047 kill-phase-on: FAILURE
1051 ########################
1053 ########################
1055 name: apex-parameter
1060 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1062 name: ARTIFACT_VERSION
1064 description: "Artifact version type"
1066 name: BUILD_DIRECTORY
1067 default: $WORKSPACE/.build
1068 description: "Directory where the build artifact will be located upon the completion of the build."
1070 name: CACHE_DIRECTORY
1071 default: $HOME/opnfv/apex-cache{gs-pathname}
1072 description: "Directory where the cache to be used during the build is located."
1075 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1076 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1079 default: '{gs-pathname}'
1080 description: "Version directory where opnfv artifacts are stored in gs repository"
1083 default: $GS_BASE{gs-pathname}
1084 description: "URL to Google Storage."
1088 description: "Flag to know if we should promote/upload snapshot artifacts."
1090 ########################
1092 ########################
1094 name: 'apex-unit-test'
1097 !include-raw: ./apex-unit-test.sh
1103 !include-raw: ./apex-build.sh
1106 name: 'apex-workspace-cleanup'
1109 !include-raw: ./apex-workspace-cleanup.sh
1112 name: 'apex-iso-verify'
1115 !include-raw: ./apex-iso-verify.sh
1119 name: 'apex-upload-artifact'
1122 !include-raw: ./apex-upload-artifact.sh
1125 name: 'apex-download-artifact'
1128 !include-raw: ./apex-download-artifact.sh
1134 !include-raw: ./apex-deploy.sh
1136 #######################
1138 ########################
1142 - timed: '0 12 * * *'
1146 - timed: '0 3 1 1 7'