5 - 'apex-verify-{stream}'
6 - 'apex-verify-gate-{stream}'
7 - 'apex-verify-unit-tests-{stream}'
8 - 'apex-runner-cperf-{stream}'
9 - 'apex-deploy-{platform}-{stream}'
12 - 'apex-csit-promote-daily-{stream}'
13 - 'apex-fdio-promote-daily-{stream}'
14 - 'apex-{scenario}-baremetal-{scenario_stream}'
15 - 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
16 - 'apex-upload-snapshot'
17 - 'apex-create-snapshot'
18 # stream: branch with - in place of / (eg. stable-arno)
19 # branch: branch (eg. stable/arno)
24 build-slave: 'apex-build-master'
25 virtual-slave: 'apex-virtual-master'
26 baremetal-slave: 'apex-baremetal-master'
27 verify-scenario: 'os-odl-nofeature-ha'
28 scenario_stream: 'master'
31 branch: 'stable/danube'
32 gs-pathname: '/danube'
33 build-slave: 'apex-build-danube'
34 virtual-slave: 'apex-virtual-danube'
35 baremetal-slave: 'apex-baremetal-danube'
36 verify-scenario: 'os-odl_l3-nofeature-ha'
37 scenario_stream: 'danube'
41 {%- for stream in scenarios %}
42 {%- for scenario in scenarios[stream] %}
54 name: 'apex-verify-unit-tests-{stream}'
62 gs-pathname: '{gs-pathname}'
72 server-name: 'gerrit.opnfv.org'
74 - patchset-created-event:
75 exclude-drafts: 'false'
76 exclude-trivial-rebase: 'false'
77 exclude-no-code-change: 'true'
78 - draft-published-event
79 - comment-added-contains-event:
80 comment-contains-value: 'recheck'
81 - comment-added-contains-event:
82 comment-contains-value: 'reverify'
84 - project-compare-type: 'ANT'
85 project-pattern: 'apex'
87 - branch-compare-type: 'ANT'
88 branch-pattern: '**/{branch}'
91 pattern: 'apex/tests/**'
101 !include-raw-escape: ./apex-unit-test.sh
105 name: 'apex-verify-{stream}'
107 node: '{virtual-slave}'
111 project-type: 'multijob'
115 gs-pathname: '{gs-pathname}/dev'
120 name: ARTIFACT_VERSION
122 description: "Used for overriding the ARTIFACT_VERSION"
128 server-name: 'gerrit.opnfv.org'
130 - patchset-created-event:
131 exclude-drafts: 'false'
132 exclude-trivial-rebase: 'false'
133 exclude-no-code-change: 'true'
134 - draft-published-event
135 - comment-added-contains-event:
136 comment-contains-value: 'recheck'
137 - comment-added-contains-event:
138 comment-contains-value: 'reverify'
140 - project-compare-type: 'ANT'
141 project-pattern: 'apex'
143 - branch-compare-type: 'ANT'
144 branch-pattern: '**/{branch}'
156 disable-strict-forbidden-file-verification: 'true'
157 forbidden-file-paths:
159 pattern: 'apex/tests/**'
163 use-build-blocker: true
173 - description-setter:
174 description: "Built on $NODE_NAME"
177 condition: SUCCESSFUL
179 - name: 'apex-verify-unit-tests-{stream}'
180 current-parameters: false
181 predefined-parameters: |
182 GERRIT_BRANCH=$GERRIT_BRANCH
183 GERRIT_REFSPEC=$GERRIT_REFSPEC
184 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
185 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
186 node-parameters: false
187 kill-phase-on: FAILURE
192 condition: SUCCESSFUL
194 - name: 'apex-build-{stream}'
195 current-parameters: false
196 predefined-parameters: |
197 ARTIFACT_VERSION=$ARTIFACT_VERSION
198 GERRIT_BRANCH=$GERRIT_BRANCH
199 GERRIT_REFSPEC=$GERRIT_REFSPEC
200 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
201 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
202 node-parameters: false
203 kill-phase-on: FAILURE
208 condition: SUCCESSFUL
210 - name: 'apex-deploy-virtual-{stream}'
211 current-parameters: false
212 predefined-parameters: |
213 ARTIFACT_VERSION=$ARTIFACT_VERSION
214 DEPLOY_SCENARIO={verify-scenario}
216 GERRIT_BRANCH=$GERRIT_BRANCH
217 GERRIT_REFSPEC=$GERRIT_REFSPEC
218 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
219 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
220 node-parameters: true
221 kill-phase-on: FAILURE
226 condition: SUCCESSFUL
228 - name: 'functest-apex-virtual-suite-{stream}'
229 current-parameters: false
230 predefined-parameters: |
231 DEPLOY_SCENARIO={verify-scenario}
232 FUNCTEST_SUITE_NAME=healthcheck
233 GERRIT_BRANCH=$GERRIT_BRANCH
234 GERRIT_REFSPEC=$GERRIT_REFSPEC
235 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
236 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
237 node-parameters: true
242 # Verify Scenario Gate
244 name: 'apex-verify-gate-{stream}'
246 node: '{virtual-slave}'
250 project-type: 'multijob'
254 gs-pathname: '{gs-pathname}/dev'
260 default: https://gerrit.opnfv.org/gerrit/$PROJECT
261 description: "Used for overriding the GIT URL coming from parameters macro."
263 name: ARTIFACT_VERSION
265 description: "Used for overriding the ARTIFACT_VERSION"
272 server-name: 'gerrit.opnfv.org'
274 - comment-added-contains-event:
275 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
277 - project-compare-type: 'ANT'
278 project-pattern: 'apex'
280 - branch-compare-type: 'ANT'
281 branch-pattern: '**/{branch}'
297 use-build-blocker: true
309 condition: SUCCESSFUL
311 - name: 'apex-deploy-virtual-{stream}'
312 current-parameters: false
313 predefined-parameters: |
314 ARTIFACT_VERSION=$ARTIFACT_VERSION
317 GERRIT_BRANCH=$GERRIT_BRANCH
318 GERRIT_REFSPEC=$GERRIT_REFSPEC
319 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
320 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
321 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
322 node-parameters: true
323 kill-phase-on: FAILURE
327 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo 'os-.*') > detected_scenario
329 properties-file: detected_scenario
332 condition: SUCCESSFUL
334 - name: 'functest-apex-virtual-suite-{stream}'
335 current-parameters: false
336 predefined-parameters: |
337 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
338 FUNCTEST_SUITE_NAME=healthcheck
339 GERRIT_BRANCH=$GERRIT_BRANCH
340 GERRIT_REFSPEC=$GERRIT_REFSPEC
341 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
342 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
343 node-parameters: true
349 name: 'apex-runner-cperf-{stream}'
352 project-type: 'multijob'
359 gs-pathname: '{gs-pathname}'
365 default: https://gerrit.opnfv.org/gerrit/$PROJECT
366 description: "Used for overriding the GIT URL coming from parameters macro."
374 use-build-blocker: false
384 - description-setter:
385 description: "Deployed on $NODE_NAME"
387 name: 'Baremetal Deploy'
390 - name: 'apex-deploy-baremetal-{stream}'
391 node-parameters: false
392 current-parameters: true
393 predefined-parameters: |
394 GERRIT_BRANCH=$GERRIT_BRANCH
397 DEPLOY_SCENARIO={verify-scenario}
398 kill-phase-on: FAILURE
403 condition: SUCCESSFUL
405 - name: 'cperf-apex-intel-pod2-daily-master'
406 node-parameters: true
407 current-parameters: false
408 predefined-parameters:
409 DEPLOY_SCENARIO={verify-scenario}
416 name: 'apex-deploy-{platform}-{stream}'
418 node: 'apex-{platform}-{stream}'
433 - '{project}-{platform}-{stream}-defaults'
438 gs-pathname: '{gs-pathname}'
440 name: DEPLOY_SCENARIO
441 default: '{verify-scenario}'
442 description: "Scenario to deploy with."
446 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
451 use-build-blocker: true
465 - description-setter:
466 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
467 - 'apex-download-artifact'
469 - 'apex-workspace-cleanup'
472 # Baremetal Deploy and Test
474 name: 'apex-{scenario}-baremetal-{scenario_stream}'
476 project-type: 'multijob'
484 - '{project}-defaults'
485 - '{project}-baremetal-{scenario_stream}-defaults'
490 gs-pathname: '{gs-pathname}'
492 name: DEPLOY_SCENARIO
493 default: '{scenario}'
494 description: "Scenario to deploy with."
498 use-build-blocker: true
503 - 'apex-.*-promote.*'
505 - 'apex-.+-baremetal-.+'
511 - description-setter:
512 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
514 name: 'Baremetal Deploy'
515 condition: SUCCESSFUL
517 - name: 'apex-deploy-baremetal-{scenario_stream}'
518 node-parameters: true
519 current-parameters: true
520 predefined-parameters: |
522 GERRIT_BRANCH=$GERRIT_BRANCH
524 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
525 kill-phase-on: FAILURE
529 name: 'OPNFV Test Suite'
531 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
532 node-parameters: true
533 current-parameters: false
534 predefined-parameters:
535 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
543 !include-raw-escape: ./update-build-result.groovy
547 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
549 project-type: 'multijob'
554 - '{project}-defaults'
555 - '{project}-baremetal-{scenario_stream}-defaults'
560 gs-pathname: '{gs-pathname}'
562 name: DEPLOY_SCENARIO
563 default: '{scenario}'
564 description: "Scenario to deploy with."
568 use-build-blocker: true
573 - 'apex-.*-promote.*'
575 - 'apex-testsuite-.+-baremetal-.+'
581 - description-setter:
582 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
587 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
588 node-parameters: true
589 current-parameters: false
590 predefined-parameters:
591 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
599 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
600 node-parameters: true
601 current-parameters: false
602 predefined-parameters:
603 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
611 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
612 node-parameters: true
613 current-parameters: false
614 predefined-parameters:
615 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
617 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
624 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
625 node-parameters: true
626 current-parameters: false
627 predefined-parameters:
628 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
629 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
633 # Build status is always success due conditional plugin prefetching
634 # build status before multijob phases execute
635 # - conditional-step:
636 # condition-kind: current-status
637 # condition-worst: SUCCESS
638 # condtion-best: SUCCESS
639 # on-evaluation-failure: mark-unstable
641 # - shell: 'echo "Tests Passed"'
643 {% for stream in scenarios %}
646 name: 'apex-daily-{{ stream }}'
648 # Job template for daily build
650 # Required Variables:
651 # stream: branch with - in place of / (eg. stable)
652 # branch: branch (eg. stable)
653 project-type: 'multijob'
655 node: '{{ build_slave[stream] }}'
663 - '{project}-defaults'
664 - '{project}-baremetal-{{ stream }}-defaults'
667 branch: '{{ branch[stream] }}'
669 gs-pathname: '{{ gspathname[stream] }}'
675 - 'apex-{{ stream }}'
680 condition: SUCCESSFUL
682 - name: 'apex-build-{{ stream }}'
683 current-parameters: false
684 predefined-parameters: |
685 GERRIT_BRANCH=$GERRIT_BRANCH
687 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
688 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
689 node-parameters: true
690 kill-phase-on: FAILURE
694 name: 'Verify and upload ISO'
695 condition: SUCCESSFUL
697 - name: 'apex-verify-iso-{{ stream }}'
698 current-parameters: false
699 predefined-parameters: |
700 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
701 GERRIT_BRANCH=$GERRIT_BRANCH
703 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
704 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
705 node-parameters: true
706 kill-phase-on: FAILURE
710 name: Baremetal Deploy and Test Phase
711 condition: SUCCESSFUL
713 {% for scenario in scenarios[stream] %}
714 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
715 node-parameters: false
716 current-parameters: false
717 predefined-parameters: |
727 name: 'apex-create-snapshot'
729 # Job template for clean
731 # Required Variables:
732 # stream: branch with - in place of / (eg. stable)
738 !include-raw-escape: ./apex-snapshot-create.sh
742 name: 'apex-upload-snapshot'
744 # Job template for clean
746 # Required Variables:
747 # stream: branch with - in place of / (eg. stable)
753 properties-content: ARTIFACT_TYPE=snapshot
754 - 'apex-upload-artifact'
758 name: 'apex-csit-promote-daily-{stream}'
760 # Job template for promoting CSIT Snapshots
762 # Required Variables:
763 # stream: branch with - in place of / (eg. stable)
764 # branch: branch (eg. stable)
765 node: '{virtual-slave}'
766 project-type: 'multijob'
777 gs-pathname: '{gs-pathname}'
781 use-build-blocker: true
790 - timed: '0 12 * * 0'
795 condition: SUCCESSFUL
797 - name: 'apex-build-{stream}'
798 current-parameters: false
799 predefined-parameters: |
800 GERRIT_BRANCH=$GERRIT_BRANCH
801 GERRIT_REFSPEC=$GERRIT_REFSPEC
802 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
803 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
804 node-parameters: false
805 kill-phase-on: FAILURE
810 condition: SUCCESSFUL
812 - name: 'apex-deploy-virtual-{stream}'
813 current-parameters: false
814 predefined-parameters: |
815 DEPLOY_SCENARIO=os-odl_l3-csit-noha
817 GERRIT_BRANCH=$GERRIT_BRANCH
818 GERRIT_REFSPEC=$GERRIT_REFSPEC
819 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
820 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
822 node-parameters: true
823 kill-phase-on: FAILURE
828 condition: SUCCESSFUL
830 - name: 'functest-apex-virtual-suite-{stream}'
831 current-parameters: false
832 predefined-parameters: |
833 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
834 FUNCTEST_SUITE_NAME=tempest_smoke_serial
835 GERRIT_BRANCH=$GERRIT_BRANCH
836 GERRIT_REFSPEC=$GERRIT_REFSPEC
837 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
838 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
839 node-parameters: true
840 kill-phase-on: FAILURE
844 name: create snapshot
845 condition: SUCCESSFUL
847 - name: 'apex-create-snapshot'
848 current-parameters: false
849 predefined-parameters: |
851 node-parameters: true
852 kill-phase-on: FAILURE
856 name: upload snapshot
857 condition: SUCCESSFUL
859 - name: 'apex-upload-snapshot'
860 current-parameters: false
861 predefined-parameters: |
863 node-parameters: true
864 kill-phase-on: FAILURE
870 name: 'apex-fdio-promote-daily-{stream}'
872 # Job template for promoting CSIT Snapshots
874 # Required Variables:
875 # stream: branch with - in place of / (eg. stable)
876 # branch: branch (eg. stable)
877 node: '{virtual-slave}'
878 project-type: 'multijob'
889 gs-pathname: '{gs-pathname}'
893 use-build-blocker: true
904 condition: SUCCESSFUL
906 - name: 'apex-build-{stream}'
907 current-parameters: false
908 predefined-parameters: |
909 GERRIT_BRANCH=$GERRIT_BRANCH
910 GERRIT_REFSPEC=$GERRIT_REFSPEC
911 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
912 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
913 node-parameters: false
914 kill-phase-on: FAILURE
919 condition: SUCCESSFUL
921 - name: 'apex-deploy-virtual-{stream}'
922 current-parameters: false
923 predefined-parameters: |
924 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
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
931 node-parameters: true
932 kill-phase-on: FAILURE
936 name: create snapshot
937 condition: SUCCESSFUL
939 - name: 'apex-create-snapshot'
940 current-parameters: false
941 predefined-parameters: |
943 node-parameters: true
944 kill-phase-on: FAILURE
948 name: upload snapshot
949 condition: SUCCESSFUL
951 - name: 'apex-upload-snapshot'
952 current-parameters: false
953 predefined-parameters: |
955 node-parameters: true
956 kill-phase-on: FAILURE
960 ########################
962 ########################
969 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
971 name: ARTIFACT_VERSION
973 description: "Artifact version type"
975 name: BUILD_DIRECTORY
976 default: $WORKSPACE/.build
977 description: "Directory where the build artifact will be located upon the completion of the build."
979 name: CACHE_DIRECTORY
980 default: $HOME/opnfv/apex-cache{gs-pathname}
981 description: "Directory where the cache to be used during the build is located."
984 default: https://gerrit.opnfv.org/gerrit/$PROJECT
985 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
988 default: '{gs-pathname}'
989 description: "Version directory where opnfv artifacts are stored in gs repository"
992 default: $GS_BASE{gs-pathname}
993 description: "URL to Google Storage."
997 description: "Flag to know if we should promote/upload snapshot artifacts."
999 ########################
1001 ########################
1003 name: 'apex-unit-test'
1006 !include-raw: ./apex-unit-test.sh
1009 name: 'apex-workspace-cleanup'
1012 !include-raw: ./apex-workspace-cleanup.sh
1016 name: 'apex-upload-artifact'
1019 !include-raw: ./apex-upload-artifact.sh
1022 name: 'apex-download-artifact'
1025 !include-raw: ./apex-download-artifact.sh
1031 !include-raw: ./apex-deploy.sh
1033 #######################
1035 ########################
1039 - timed: '0 12 * * *'
1043 - timed: '0 3 1 1 7'