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'
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'
603 condition: SUCCESSFUL
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 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
619 project-type: 'multijob'
624 - '{project}-defaults'
625 - '{project}-baremetal-{scenario_stream}-defaults'
630 gs-pathname: '{gs-pathname}'
632 name: DEPLOY_SCENARIO
633 default: '{scenario}'
634 description: "Scenario to deploy with."
638 use-build-blocker: true
643 - 'apex-.*-promote.*'
645 - 'apex-testsuite-.+-baremetal-.+'
651 - description-setter:
652 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
657 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
658 node-parameters: true
659 current-parameters: false
660 predefined-parameters:
661 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
669 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
670 node-parameters: true
671 current-parameters: false
672 predefined-parameters:
673 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
681 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
682 node-parameters: true
683 current-parameters: false
684 predefined-parameters:
685 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
687 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
691 condition-kind: current-status
692 condition-worst: SUCCESS
693 condtion-best: SUCCESS
694 on-evaluation-failure: mark-unstable
696 - shell: 'echo "Tests Passed"'
697 # Build status is always success due conditional plugin prefetching
698 # build status before multijob phases execute
699 # - conditional-step:
700 # condition-kind: current-status
701 # condition-worst: SUCCESS
702 # condtion-best: SUCCESS
703 # on-evaluation-failure: mark-unstable
705 # - shell: 'echo "Tests Passed"'
710 !include-raw-escape: ./update-build-result.groovy
712 {% for stream in scenarios %}
715 name: 'apex-daily-{{ stream }}'
717 # Job template for daily build
719 # Required Variables:
720 # stream: branch with - in place of / (eg. stable)
721 # branch: branch (eg. stable)
722 project-type: 'multijob'
724 node: '{{ build_slave[stream] }}'
732 - '{project}-defaults'
733 - '{project}-baremetal-{{ stream }}-defaults'
736 branch: '{{ branch[stream] }}'
738 gs-pathname: '{{ gspathname[stream] }}'
744 - 'apex-{{ stream }}'
749 condition: SUCCESSFUL
751 - name: 'apex-build-{{ stream }}'
752 current-parameters: false
753 predefined-parameters: |
754 GERRIT_BRANCH=$GERRIT_BRANCH
756 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
757 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
758 node-parameters: true
759 kill-phase-on: FAILURE
763 name: 'Verify and upload ISO'
764 condition: SUCCESSFUL
766 - name: 'apex-verify-iso-{{ stream }}'
767 current-parameters: false
768 predefined-parameters: |
769 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
770 GERRIT_BRANCH=$GERRIT_BRANCH
772 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
773 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
774 node-parameters: true
775 kill-phase-on: FAILURE
779 name: Baremetal Deploy and Test Phase
780 condition: SUCCESSFUL
782 {% for scenario in scenarios[stream] %}
783 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
784 node-parameters: false
785 current-parameters: false
786 predefined-parameters: |
796 name: 'apex-create-snapshot'
798 # Job template for clean
800 # Required Variables:
801 # stream: branch with - in place of / (eg. stable)
807 !include-raw-escape: ./apex-snapshot-create.sh
811 name: 'apex-upload-snapshot'
813 # Job template for clean
815 # Required Variables:
816 # stream: branch with - in place of / (eg. stable)
822 properties-content: ARTIFACT_TYPE=snapshot
823 - 'apex-upload-artifact'
827 name: 'apex-csit-promote-daily-{stream}'
829 # Job template for promoting CSIT Snapshots
831 # Required Variables:
832 # stream: branch with - in place of / (eg. stable)
833 # branch: branch (eg. stable)
834 node: '{virtual-slave}'
835 project-type: 'multijob'
846 gs-pathname: '{gs-pathname}'
850 use-build-blocker: true
859 - timed: '0 12 * * 0'
864 condition: SUCCESSFUL
866 - name: 'apex-build-{stream}'
867 current-parameters: false
868 predefined-parameters: |
869 GERRIT_BRANCH=$GERRIT_BRANCH
870 GERRIT_REFSPEC=$GERRIT_REFSPEC
871 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
872 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
873 node-parameters: false
874 kill-phase-on: FAILURE
879 condition: SUCCESSFUL
881 - name: 'apex-deploy-virtual-{stream}'
882 current-parameters: false
883 predefined-parameters: |
884 DEPLOY_SCENARIO=os-odl_l3-csit-noha
886 GERRIT_BRANCH=$GERRIT_BRANCH
887 GERRIT_REFSPEC=$GERRIT_REFSPEC
888 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
889 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
891 node-parameters: true
892 kill-phase-on: FAILURE
897 condition: SUCCESSFUL
899 - name: 'functest-apex-virtual-suite-{stream}'
900 current-parameters: false
901 predefined-parameters: |
902 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
903 FUNCTEST_SUITE_NAME=tempest_smoke_serial
904 GERRIT_BRANCH=$GERRIT_BRANCH
905 GERRIT_REFSPEC=$GERRIT_REFSPEC
906 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
907 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
908 node-parameters: true
909 kill-phase-on: FAILURE
913 name: create snapshot
914 condition: SUCCESSFUL
916 - name: 'apex-create-snapshot'
917 current-parameters: false
918 predefined-parameters: |
920 node-parameters: true
921 kill-phase-on: FAILURE
925 name: upload snapshot
926 condition: SUCCESSFUL
928 - name: 'apex-upload-snapshot'
929 current-parameters: false
930 predefined-parameters: |
932 node-parameters: true
933 kill-phase-on: FAILURE
939 name: 'apex-fdio-promote-daily-{stream}'
941 # Job template for promoting CSIT Snapshots
943 # Required Variables:
944 # stream: branch with - in place of / (eg. stable)
945 # branch: branch (eg. stable)
946 node: '{virtual-slave}'
947 project-type: 'multijob'
958 gs-pathname: '{gs-pathname}'
962 use-build-blocker: true
973 condition: SUCCESSFUL
975 - name: 'apex-build-{stream}'
976 current-parameters: false
977 predefined-parameters: |
978 GERRIT_BRANCH=$GERRIT_BRANCH
979 GERRIT_REFSPEC=$GERRIT_REFSPEC
980 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
981 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
982 node-parameters: false
983 kill-phase-on: FAILURE
988 condition: SUCCESSFUL
990 - name: 'apex-deploy-virtual-{stream}'
991 current-parameters: false
992 predefined-parameters: |
993 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
995 GERRIT_BRANCH=$GERRIT_BRANCH
996 GERRIT_REFSPEC=$GERRIT_REFSPEC
997 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
998 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1000 node-parameters: true
1001 kill-phase-on: FAILURE
1005 name: create snapshot
1006 condition: SUCCESSFUL
1008 - name: 'apex-create-snapshot'
1009 current-parameters: false
1010 predefined-parameters: |
1012 node-parameters: true
1013 kill-phase-on: FAILURE
1017 name: upload snapshot
1018 condition: SUCCESSFUL
1020 - name: 'apex-upload-snapshot'
1021 current-parameters: false
1022 predefined-parameters: |
1024 node-parameters: true
1025 kill-phase-on: FAILURE
1029 ########################
1031 ########################
1033 name: apex-parameter
1038 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1040 name: ARTIFACT_VERSION
1042 description: "Artifact version type"
1044 name: BUILD_DIRECTORY
1045 default: $WORKSPACE/.build
1046 description: "Directory where the build artifact will be located upon the completion of the build."
1048 name: CACHE_DIRECTORY
1049 default: $HOME/opnfv/apex-cache{gs-pathname}
1050 description: "Directory where the cache to be used during the build is located."
1053 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1054 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1057 default: '{gs-pathname}'
1058 description: "Version directory where opnfv artifacts are stored in gs repository"
1061 default: $GS_BASE{gs-pathname}
1062 description: "URL to Google Storage."
1066 description: "Flag to know if we should promote/upload snapshot artifacts."
1068 ########################
1070 ########################
1072 name: 'apex-unit-test'
1075 !include-raw: ./apex-unit-test.sh
1081 !include-raw: ./apex-build.sh
1084 name: 'apex-workspace-cleanup'
1087 !include-raw: ./apex-workspace-cleanup.sh
1090 name: 'apex-iso-verify'
1093 !include-raw: ./apex-iso-verify.sh
1097 name: 'apex-upload-artifact'
1100 !include-raw: ./apex-upload-artifact.sh
1103 name: 'apex-download-artifact'
1106 !include-raw: ./apex-download-artifact.sh
1112 !include-raw: ./apex-deploy.sh
1114 #######################
1116 ########################
1120 - timed: '0 12 * * *'
1124 - timed: '0 3 1 1 7'