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}'
145 disable-strict-forbidden-file-verification: 'false'
146 forbidden-file-paths:
148 pattern: 'apex/tests/**'
154 use-build-blocker: true
164 - description-setter:
165 description: "Built on $NODE_NAME"
168 condition: SUCCESSFUL
170 - name: 'apex-verify-unit-tests-{stream}'
171 current-parameters: false
172 predefined-parameters: |
173 GERRIT_BRANCH=$GERRIT_BRANCH
174 GERRIT_REFSPEC=$GERRIT_REFSPEC
175 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
176 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
177 node-parameters: false
178 kill-phase-on: FAILURE
183 condition: SUCCESSFUL
185 - name: 'apex-build-{stream}'
186 current-parameters: false
187 predefined-parameters: |
188 ARTIFACT_VERSION=$ARTIFACT_VERSION
189 GERRIT_BRANCH=$GERRIT_BRANCH
190 GERRIT_REFSPEC=$GERRIT_REFSPEC
191 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
192 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
193 node-parameters: false
194 kill-phase-on: FAILURE
199 condition: SUCCESSFUL
201 - name: 'apex-deploy-virtual-{stream}'
202 current-parameters: false
203 predefined-parameters: |
204 ARTIFACT_VERSION=$ARTIFACT_VERSION
205 DEPLOY_SCENARIO={verify-scenario}
207 GERRIT_BRANCH=$GERRIT_BRANCH
208 GERRIT_REFSPEC=$GERRIT_REFSPEC
209 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
210 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
211 node-parameters: true
212 kill-phase-on: FAILURE
217 condition: SUCCESSFUL
219 - name: 'functest-apex-virtual-suite-{stream}'
220 current-parameters: false
221 predefined-parameters: |
222 DEPLOY_SCENARIO={verify-scenario}
223 FUNCTEST_SUITE_NAME=healthcheck
224 GERRIT_BRANCH=$GERRIT_BRANCH
225 GERRIT_REFSPEC=$GERRIT_REFSPEC
226 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
227 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
228 node-parameters: true
233 # Verify Scenario Gate
235 name: 'apex-verify-gate-{stream}'
237 node: '{virtual-slave}'
241 project-type: 'multijob'
245 gs-pathname: '{gs-pathname}/dev'
251 default: https://gerrit.opnfv.org/gerrit/$PROJECT
252 description: "Used for overriding the GIT URL coming from parameters macro."
254 name: ARTIFACT_VERSION
256 description: "Used for overriding the ARTIFACT_VERSION"
263 server-name: 'gerrit.opnfv.org'
265 - comment-added-contains-event:
266 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
268 - project-compare-type: 'ANT'
269 project-pattern: 'apex'
271 - branch-compare-type: 'ANT'
272 branch-pattern: '**/{branch}'
288 use-build-blocker: true
300 condition: SUCCESSFUL
302 - name: 'apex-deploy-virtual-{stream}'
303 current-parameters: false
304 predefined-parameters: |
305 ARTIFACT_VERSION=$ARTIFACT_VERSION
308 GERRIT_BRANCH=$GERRIT_BRANCH
309 GERRIT_REFSPEC=$GERRIT_REFSPEC
310 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
311 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
312 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
313 node-parameters: true
314 kill-phase-on: FAILURE
318 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo 'os-.*') > detected_scenario
320 properties-file: detected_scenario
323 condition: SUCCESSFUL
325 - name: 'functest-apex-virtual-suite-{stream}'
326 current-parameters: false
327 predefined-parameters: |
328 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
329 FUNCTEST_SUITE_NAME=healthcheck
330 GERRIT_BRANCH=$GERRIT_BRANCH
331 GERRIT_REFSPEC=$GERRIT_REFSPEC
332 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
333 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
334 node-parameters: true
340 name: 'apex-runner-cperf-{stream}'
343 project-type: 'multijob'
350 gs-pathname: '{gs-pathname}'
356 default: https://gerrit.opnfv.org/gerrit/$PROJECT
357 description: "Used for overriding the GIT URL coming from parameters macro."
365 use-build-blocker: false
375 - description-setter:
376 description: "Deployed on $NODE_NAME"
378 name: 'Baremetal Deploy'
381 - name: 'apex-deploy-baremetal-{stream}'
382 node-parameters: false
383 current-parameters: true
384 predefined-parameters: |
385 GERRIT_BRANCH=$GERRIT_BRANCH
388 DEPLOY_SCENARIO={verify-scenario}
389 kill-phase-on: FAILURE
394 condition: SUCCESSFUL
396 - name: 'cperf-apex-intel-pod2-daily-master'
397 node-parameters: true
398 current-parameters: false
399 predefined-parameters:
400 DEPLOY_SCENARIO={verify-scenario}
407 name: 'apex-deploy-{platform}-{stream}'
409 node: 'apex-{platform}-{stream}'
424 - '{project}-{platform}-{stream}-defaults'
429 gs-pathname: '{gs-pathname}'
431 name: DEPLOY_SCENARIO
432 default: '{verify-scenario}'
433 description: "Scenario to deploy with."
437 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
442 use-build-blocker: true
456 - description-setter:
457 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
458 - 'apex-download-artifact'
460 - 'apex-workspace-cleanup'
463 # Baremetal Deploy and Test
465 name: 'apex-{scenario}-baremetal-{scenario_stream}'
467 project-type: 'multijob'
475 - '{project}-defaults'
476 - '{project}-baremetal-{scenario_stream}-defaults'
481 gs-pathname: '{gs-pathname}'
483 name: DEPLOY_SCENARIO
484 default: '{scenario}'
485 description: "Scenario to deploy with."
489 use-build-blocker: true
494 - 'apex-.*-promote.*'
496 - 'apex-.+-baremetal-.+'
502 - description-setter:
503 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
505 name: 'Baremetal Deploy'
506 condition: SUCCESSFUL
508 - name: 'apex-deploy-baremetal-{scenario_stream}'
509 node-parameters: true
510 current-parameters: true
511 predefined-parameters: |
513 GERRIT_BRANCH=$GERRIT_BRANCH
515 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
516 kill-phase-on: FAILURE
520 name: 'OPNFV Test Suite'
522 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
523 node-parameters: true
524 current-parameters: false
525 predefined-parameters:
526 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
534 !include-raw-escape: ./update-build-result.groovy
538 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
540 project-type: 'multijob'
545 - '{project}-defaults'
546 - '{project}-baremetal-{scenario_stream}-defaults'
551 gs-pathname: '{gs-pathname}'
553 name: DEPLOY_SCENARIO
554 default: '{scenario}'
555 description: "Scenario to deploy with."
559 use-build-blocker: true
564 - 'apex-.*-promote.*'
566 - 'apex-testsuite-.+-baremetal-.+'
572 - description-setter:
573 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
578 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
579 node-parameters: true
580 current-parameters: false
581 predefined-parameters:
582 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
590 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
591 node-parameters: true
592 current-parameters: false
593 predefined-parameters:
594 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
602 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
603 node-parameters: true
604 current-parameters: false
605 predefined-parameters:
606 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
608 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
615 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
616 node-parameters: true
617 current-parameters: false
618 predefined-parameters:
619 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
620 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
624 # Build status is always success due conditional plugin prefetching
625 # build status before multijob phases execute
626 # - conditional-step:
627 # condition-kind: current-status
628 # condition-worst: SUCCESS
629 # condtion-best: SUCCESS
630 # on-evaluation-failure: mark-unstable
632 # - shell: 'echo "Tests Passed"'
634 {% for stream in scenarios %}
637 name: 'apex-daily-{{ stream }}'
639 # Job template for daily build
641 # Required Variables:
642 # stream: branch with - in place of / (eg. stable)
643 # branch: branch (eg. stable)
644 project-type: 'multijob'
646 node: '{{ build_slave[stream] }}'
654 - '{project}-defaults'
655 - '{project}-baremetal-{{ stream }}-defaults'
658 branch: '{{ branch[stream] }}'
660 gs-pathname: '{{ gspathname[stream] }}'
666 - 'apex-{{ stream }}'
671 condition: SUCCESSFUL
673 - name: 'apex-build-{{ stream }}'
674 current-parameters: false
675 predefined-parameters: |
676 GERRIT_BRANCH=$GERRIT_BRANCH
678 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
679 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
680 node-parameters: true
681 kill-phase-on: FAILURE
685 name: 'Verify and upload ISO'
686 condition: SUCCESSFUL
688 - name: 'apex-verify-iso-{{ stream }}'
689 current-parameters: false
690 predefined-parameters: |
691 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
692 GERRIT_BRANCH=$GERRIT_BRANCH
694 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
695 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
696 node-parameters: true
697 kill-phase-on: FAILURE
701 name: Baremetal Deploy and Test Phase
702 condition: SUCCESSFUL
704 {% for scenario in scenarios[stream] %}
705 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
706 node-parameters: false
707 current-parameters: false
708 predefined-parameters: |
718 name: 'apex-create-snapshot'
720 # Job template for clean
722 # Required Variables:
723 # stream: branch with - in place of / (eg. stable)
729 !include-raw-escape: ./apex-snapshot-create.sh
733 name: 'apex-upload-snapshot'
735 # Job template for clean
737 # Required Variables:
738 # stream: branch with - in place of / (eg. stable)
744 properties-content: ARTIFACT_TYPE=snapshot
745 - 'apex-upload-artifact'
749 name: 'apex-csit-promote-daily-{stream}'
751 # Job template for promoting CSIT Snapshots
753 # Required Variables:
754 # stream: branch with - in place of / (eg. stable)
755 # branch: branch (eg. stable)
756 node: '{virtual-slave}'
757 project-type: 'multijob'
768 gs-pathname: '{gs-pathname}'
772 use-build-blocker: true
781 - timed: '0 12 * * 0'
786 condition: SUCCESSFUL
788 - name: 'apex-build-{stream}'
789 current-parameters: false
790 predefined-parameters: |
791 GERRIT_BRANCH=$GERRIT_BRANCH
792 GERRIT_REFSPEC=$GERRIT_REFSPEC
793 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
794 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
795 node-parameters: false
796 kill-phase-on: FAILURE
801 condition: SUCCESSFUL
803 - name: 'apex-deploy-virtual-{stream}'
804 current-parameters: false
805 predefined-parameters: |
806 DEPLOY_SCENARIO=os-odl_l3-csit-noha
808 GERRIT_BRANCH=$GERRIT_BRANCH
809 GERRIT_REFSPEC=$GERRIT_REFSPEC
810 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
811 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
813 node-parameters: true
814 kill-phase-on: FAILURE
819 condition: SUCCESSFUL
821 - name: 'functest-apex-virtual-suite-{stream}'
822 current-parameters: false
823 predefined-parameters: |
824 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
825 FUNCTEST_SUITE_NAME=tempest_smoke_serial
826 GERRIT_BRANCH=$GERRIT_BRANCH
827 GERRIT_REFSPEC=$GERRIT_REFSPEC
828 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
829 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
830 node-parameters: true
831 kill-phase-on: FAILURE
835 name: create snapshot
836 condition: SUCCESSFUL
838 - name: 'apex-create-snapshot'
839 current-parameters: false
840 predefined-parameters: |
842 node-parameters: true
843 kill-phase-on: FAILURE
847 name: upload snapshot
848 condition: SUCCESSFUL
850 - name: 'apex-upload-snapshot'
851 current-parameters: false
852 predefined-parameters: |
854 node-parameters: true
855 kill-phase-on: FAILURE
861 name: 'apex-fdio-promote-daily-{stream}'
863 # Job template for promoting CSIT Snapshots
865 # Required Variables:
866 # stream: branch with - in place of / (eg. stable)
867 # branch: branch (eg. stable)
868 node: '{virtual-slave}'
869 project-type: 'multijob'
880 gs-pathname: '{gs-pathname}'
884 use-build-blocker: true
895 condition: SUCCESSFUL
897 - name: 'apex-build-{stream}'
898 current-parameters: false
899 predefined-parameters: |
900 GERRIT_BRANCH=$GERRIT_BRANCH
901 GERRIT_REFSPEC=$GERRIT_REFSPEC
902 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
903 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
904 node-parameters: false
905 kill-phase-on: FAILURE
910 condition: SUCCESSFUL
912 - name: 'apex-deploy-virtual-{stream}'
913 current-parameters: false
914 predefined-parameters: |
915 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
917 GERRIT_BRANCH=$GERRIT_BRANCH
918 GERRIT_REFSPEC=$GERRIT_REFSPEC
919 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
920 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
922 node-parameters: true
923 kill-phase-on: FAILURE
927 name: create snapshot
928 condition: SUCCESSFUL
930 - name: 'apex-create-snapshot'
931 current-parameters: false
932 predefined-parameters: |
934 node-parameters: true
935 kill-phase-on: FAILURE
939 name: upload snapshot
940 condition: SUCCESSFUL
942 - name: 'apex-upload-snapshot'
943 current-parameters: false
944 predefined-parameters: |
946 node-parameters: true
947 kill-phase-on: FAILURE
951 ########################
953 ########################
960 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
962 name: ARTIFACT_VERSION
964 description: "Artifact version type"
966 name: BUILD_DIRECTORY
967 default: $WORKSPACE/.build
968 description: "Directory where the build artifact will be located upon the completion of the build."
970 name: CACHE_DIRECTORY
971 default: $HOME/opnfv/apex-cache{gs-pathname}
972 description: "Directory where the cache to be used during the build is located."
975 default: https://gerrit.opnfv.org/gerrit/$PROJECT
976 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
979 default: '{gs-pathname}'
980 description: "Version directory where opnfv artifacts are stored in gs repository"
983 default: $GS_BASE{gs-pathname}
984 description: "URL to Google Storage."
988 description: "Flag to know if we should promote/upload snapshot artifacts."
990 ########################
992 ########################
994 name: 'apex-unit-test'
997 !include-raw: ./apex-unit-test.sh
1000 name: 'apex-workspace-cleanup'
1003 !include-raw: ./apex-workspace-cleanup.sh
1007 name: 'apex-upload-artifact'
1010 !include-raw: ./apex-upload-artifact.sh
1013 name: 'apex-download-artifact'
1016 !include-raw: ./apex-download-artifact.sh
1022 !include-raw: ./apex-deploy.sh
1024 #######################
1026 ########################
1030 - timed: '0 12 * * *'
1034 - timed: '0 3 1 1 7'