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}'
296 use-build-blocker: true
308 condition: SUCCESSFUL
310 - name: 'apex-deploy-virtual-{stream}'
311 current-parameters: false
312 predefined-parameters: |
313 ARTIFACT_VERSION=$ARTIFACT_VERSION
316 GERRIT_BRANCH=$GERRIT_BRANCH
317 GERRIT_REFSPEC=$GERRIT_REFSPEC
318 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
319 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
320 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
321 node-parameters: true
322 kill-phase-on: FAILURE
327 condition: SUCCESSFUL
329 - name: 'functest-apex-virtual-suite-{stream}'
330 current-parameters: false
331 predefined-parameters: |
332 DEPLOY_SCENARIO={verify-scenario}
333 FUNCTEST_SUITE_NAME=healthcheck
334 GERRIT_BRANCH=$GERRIT_BRANCH
335 GERRIT_REFSPEC=$GERRIT_REFSPEC
336 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
337 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
338 node-parameters: true
344 name: 'apex-runner-cperf-{stream}'
347 project-type: 'multijob'
354 gs-pathname: '{gs-pathname}'
360 default: https://gerrit.opnfv.org/gerrit/$PROJECT
361 description: "Used for overriding the GIT URL coming from parameters macro."
369 use-build-blocker: false
379 - description-setter:
380 description: "Deployed on $NODE_NAME"
382 name: 'Baremetal Deploy'
385 - name: 'apex-deploy-baremetal-{stream}'
386 node-parameters: false
387 current-parameters: true
388 predefined-parameters: |
389 GERRIT_BRANCH=$GERRIT_BRANCH
392 DEPLOY_SCENARIO={verify-scenario}
393 kill-phase-on: FAILURE
398 condition: SUCCESSFUL
400 - name: 'cperf-apex-intel-pod2-daily-master'
401 node-parameters: true
402 current-parameters: false
403 predefined-parameters:
404 DEPLOY_SCENARIO={verify-scenario}
411 name: 'apex-build-{stream}'
413 # Job template for builds
415 # Required Variables:
416 # stream: branch with - in place of / (eg. stable)
417 # branch: branch (eg. stable)
418 node: '{build-slave}'
425 - '{project}-defaults'
430 gs-pathname: '{gs-pathname}'
443 max-per-node: {concurrent-builds}
447 use-build-blocker: true
450 - 'apex-verify-iso-{stream}'
455 properties-content: ARTIFACT_TYPE=rpm
456 - 'apex-upload-artifact'
460 name: 'apex-verify-iso-{stream}'
462 # Job template for builds
464 # Required Variables:
465 # stream: branch with - in place of / (eg. stable)
466 # branch: branch (eg. stable)
467 node: '{virtual-slave}'
478 gs-pathname: '{gs-pathname}'
481 default: https://gerrit.opnfv.org/gerrit/$PROJECT
482 description: "Used for overriding the GIT URL coming from parameters macro."
497 properties-content: ARTIFACT_TYPE=iso
498 - 'apex-upload-artifact'
502 name: 'apex-deploy-{platform}-{stream}'
504 node: 'apex-{platform}-{stream}'
519 - '{project}-{platform}-{stream}-defaults'
524 gs-pathname: '{gs-pathname}'
526 name: DEPLOY_SCENARIO
527 default: '{verify-scenario}'
528 description: "Scenario to deploy with."
532 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
537 use-build-blocker: true
551 - description-setter:
552 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
553 - 'apex-download-artifact'
555 - 'apex-workspace-cleanup'
558 # Baremetal Deploy and Test
560 name: 'apex-{scenario}-baremetal-{scenario_stream}'
562 project-type: 'multijob'
570 - '{project}-defaults'
571 - '{project}-baremetal-{scenario_stream}-defaults'
576 gs-pathname: '{gs-pathname}'
578 name: DEPLOY_SCENARIO
579 default: '{scenario}'
580 description: "Scenario to deploy with."
584 use-build-blocker: true
589 - 'apex-.*-promote.*'
591 - 'apex-.+-baremetal-.+'
597 - description-setter:
598 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
600 name: 'Baremetal Deploy'
601 condition: SUCCESSFUL
603 - name: 'apex-deploy-baremetal-{scenario_stream}'
604 node-parameters: true
605 current-parameters: true
606 predefined-parameters: |
608 GERRIT_BRANCH=$GERRIT_BRANCH
610 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
611 kill-phase-on: FAILURE
615 name: 'OPNFV Test Suite'
617 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
618 node-parameters: true
619 current-parameters: false
620 predefined-parameters:
621 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
629 !include-raw-escape: ./update-build-result.groovy
633 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
635 project-type: 'multijob'
640 - '{project}-defaults'
641 - '{project}-baremetal-{scenario_stream}-defaults'
646 gs-pathname: '{gs-pathname}'
648 name: DEPLOY_SCENARIO
649 default: '{scenario}'
650 description: "Scenario to deploy with."
654 use-build-blocker: true
659 - 'apex-.*-promote.*'
661 - 'apex-testsuite-.+-baremetal-.+'
667 - description-setter:
668 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
673 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
674 node-parameters: true
675 current-parameters: false
676 predefined-parameters:
677 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
685 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
686 node-parameters: true
687 current-parameters: false
688 predefined-parameters:
689 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
697 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
698 node-parameters: true
699 current-parameters: false
700 predefined-parameters:
701 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
703 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
710 # - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
711 # node-parameters: true
712 # current-parameters: false
713 # predefined-parameters:
714 # DEPLOY_SCENARIO=$DEPLOY_SCENARIO
715 # kill-phase-on: NEVER
716 # abort-all-job: false
717 # git-revision: false
718 # Build status is always success due conditional plugin prefetching
719 # build status before multijob phases execute
720 # - conditional-step:
721 # condition-kind: current-status
722 # condition-worst: SUCCESS
723 # condtion-best: SUCCESS
724 # on-evaluation-failure: mark-unstable
726 # - shell: 'echo "Tests Passed"'
728 {% for stream in scenarios %}
731 name: 'apex-daily-{{ stream }}'
733 # Job template for daily build
735 # Required Variables:
736 # stream: branch with - in place of / (eg. stable)
737 # branch: branch (eg. stable)
738 project-type: 'multijob'
740 node: '{{ build_slave[stream] }}'
748 - '{project}-defaults'
749 - '{project}-baremetal-{{ stream }}-defaults'
752 branch: '{{ branch[stream] }}'
754 gs-pathname: '{{ gspathname[stream] }}'
760 - 'apex-{{ stream }}'
765 condition: SUCCESSFUL
767 - name: 'apex-build-{{ stream }}'
768 current-parameters: false
769 predefined-parameters: |
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: 'Verify and upload ISO'
780 condition: SUCCESSFUL
782 - name: 'apex-verify-iso-{{ stream }}'
783 current-parameters: false
784 predefined-parameters: |
785 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
786 GERRIT_BRANCH=$GERRIT_BRANCH
788 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
789 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
790 node-parameters: true
791 kill-phase-on: FAILURE
795 name: Baremetal Deploy and Test Phase
796 condition: SUCCESSFUL
798 {% for scenario in scenarios[stream] %}
799 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
800 node-parameters: false
801 current-parameters: false
802 predefined-parameters: |
812 name: 'apex-create-snapshot'
814 # Job template for clean
816 # Required Variables:
817 # stream: branch with - in place of / (eg. stable)
823 !include-raw-escape: ./apex-snapshot-create.sh
827 name: 'apex-upload-snapshot'
829 # Job template for clean
831 # Required Variables:
832 # stream: branch with - in place of / (eg. stable)
838 properties-content: ARTIFACT_TYPE=snapshot
839 - 'apex-upload-artifact'
843 name: 'apex-csit-promote-daily-{stream}'
845 # Job template for promoting CSIT Snapshots
847 # Required Variables:
848 # stream: branch with - in place of / (eg. stable)
849 # branch: branch (eg. stable)
850 node: '{virtual-slave}'
851 project-type: 'multijob'
862 gs-pathname: '{gs-pathname}'
866 use-build-blocker: true
875 - timed: '0 12 * * 0'
880 condition: SUCCESSFUL
882 - name: 'apex-build-{stream}'
883 current-parameters: false
884 predefined-parameters: |
885 GERRIT_BRANCH=$GERRIT_BRANCH
886 GERRIT_REFSPEC=$GERRIT_REFSPEC
887 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
888 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
889 node-parameters: false
890 kill-phase-on: FAILURE
895 condition: SUCCESSFUL
897 - name: 'apex-deploy-virtual-{stream}'
898 current-parameters: false
899 predefined-parameters: |
900 DEPLOY_SCENARIO=os-odl_l3-csit-noha
902 GERRIT_BRANCH=$GERRIT_BRANCH
903 GERRIT_REFSPEC=$GERRIT_REFSPEC
904 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
905 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
907 node-parameters: true
908 kill-phase-on: FAILURE
913 condition: SUCCESSFUL
915 - name: 'functest-apex-virtual-suite-{stream}'
916 current-parameters: false
917 predefined-parameters: |
918 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
919 FUNCTEST_SUITE_NAME=tempest_smoke_serial
920 GERRIT_BRANCH=$GERRIT_BRANCH
921 GERRIT_REFSPEC=$GERRIT_REFSPEC
922 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
923 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
924 node-parameters: true
925 kill-phase-on: FAILURE
929 name: create snapshot
930 condition: SUCCESSFUL
932 - name: 'apex-create-snapshot'
933 current-parameters: false
934 predefined-parameters: |
936 node-parameters: true
937 kill-phase-on: FAILURE
941 name: upload snapshot
942 condition: SUCCESSFUL
944 - name: 'apex-upload-snapshot'
945 current-parameters: false
946 predefined-parameters: |
948 node-parameters: true
949 kill-phase-on: FAILURE
955 name: 'apex-fdio-promote-daily-{stream}'
957 # Job template for promoting CSIT Snapshots
959 # Required Variables:
960 # stream: branch with - in place of / (eg. stable)
961 # branch: branch (eg. stable)
962 node: '{virtual-slave}'
963 project-type: 'multijob'
974 gs-pathname: '{gs-pathname}'
978 use-build-blocker: true
989 condition: SUCCESSFUL
991 - name: 'apex-build-{stream}'
992 current-parameters: false
993 predefined-parameters: |
994 GERRIT_BRANCH=$GERRIT_BRANCH
995 GERRIT_REFSPEC=$GERRIT_REFSPEC
996 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
997 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
998 node-parameters: false
999 kill-phase-on: FAILURE
1003 name: deploy-virtual
1004 condition: SUCCESSFUL
1006 - name: 'apex-deploy-virtual-{stream}'
1007 current-parameters: false
1008 predefined-parameters: |
1009 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
1011 GERRIT_BRANCH=$GERRIT_BRANCH
1012 GERRIT_REFSPEC=$GERRIT_REFSPEC
1013 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
1014 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
1016 node-parameters: true
1017 kill-phase-on: FAILURE
1021 name: create snapshot
1022 condition: SUCCESSFUL
1024 - name: 'apex-create-snapshot'
1025 current-parameters: false
1026 predefined-parameters: |
1028 node-parameters: true
1029 kill-phase-on: FAILURE
1033 name: upload snapshot
1034 condition: SUCCESSFUL
1036 - name: 'apex-upload-snapshot'
1037 current-parameters: false
1038 predefined-parameters: |
1040 node-parameters: true
1041 kill-phase-on: FAILURE
1045 ########################
1047 ########################
1049 name: apex-parameter
1054 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1056 name: ARTIFACT_VERSION
1058 description: "Artifact version type"
1060 name: BUILD_DIRECTORY
1061 default: $WORKSPACE/.build
1062 description: "Directory where the build artifact will be located upon the completion of the build."
1064 name: CACHE_DIRECTORY
1065 default: $HOME/opnfv/apex-cache{gs-pathname}
1066 description: "Directory where the cache to be used during the build is located."
1069 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1070 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1073 default: '{gs-pathname}'
1074 description: "Version directory where opnfv artifacts are stored in gs repository"
1077 default: $GS_BASE{gs-pathname}
1078 description: "URL to Google Storage."
1082 description: "Flag to know if we should promote/upload snapshot artifacts."
1084 ########################
1086 ########################
1088 name: 'apex-unit-test'
1091 !include-raw: ./apex-unit-test.sh
1097 !include-raw: ./apex-build.sh
1100 name: 'apex-workspace-cleanup'
1103 !include-raw: ./apex-workspace-cleanup.sh
1106 name: 'apex-iso-verify'
1109 !include-raw: ./apex-iso-verify.sh
1113 name: 'apex-upload-artifact'
1116 !include-raw: ./apex-upload-artifact.sh
1119 name: 'apex-download-artifact'
1122 !include-raw: ./apex-download-artifact.sh
1128 !include-raw: ./apex-deploy.sh
1130 #######################
1132 ########################
1136 - timed: '0 12 * * *'
1140 - timed: '0 3 1 1 7'