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}'
160 use-build-blocker: true
170 - description-setter:
171 description: "Built on $NODE_NAME"
174 condition: SUCCESSFUL
176 - name: 'apex-verify-unit-tests-{stream}'
177 current-parameters: false
178 predefined-parameters: |
179 GERRIT_BRANCH=$GERRIT_BRANCH
180 GERRIT_REFSPEC=$GERRIT_REFSPEC
181 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
182 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
183 node-parameters: false
184 kill-phase-on: FAILURE
189 condition: SUCCESSFUL
191 - name: 'apex-build-{stream}'
192 current-parameters: false
193 predefined-parameters: |
194 ARTIFACT_VERSION=$ARTIFACT_VERSION
195 GERRIT_BRANCH=$GERRIT_BRANCH
196 GERRIT_REFSPEC=$GERRIT_REFSPEC
197 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
198 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
199 node-parameters: false
200 kill-phase-on: FAILURE
205 condition: SUCCESSFUL
207 - name: 'apex-deploy-virtual-{stream}'
208 current-parameters: false
209 predefined-parameters: |
210 ARTIFACT_VERSION=$ARTIFACT_VERSION
211 DEPLOY_SCENARIO={verify-scenario}
213 GERRIT_BRANCH=$GERRIT_BRANCH
214 GERRIT_REFSPEC=$GERRIT_REFSPEC
215 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
216 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
217 node-parameters: true
218 kill-phase-on: FAILURE
223 condition: SUCCESSFUL
225 - name: 'functest-apex-virtual-suite-{stream}'
226 current-parameters: false
227 predefined-parameters: |
228 DEPLOY_SCENARIO={verify-scenario}
229 FUNCTEST_SUITE_NAME=healthcheck
230 GERRIT_BRANCH=$GERRIT_BRANCH
231 GERRIT_REFSPEC=$GERRIT_REFSPEC
232 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
233 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
234 node-parameters: true
239 # Verify Scenario Gate
241 name: 'apex-verify-gate-{stream}'
243 node: '{virtual-slave}'
247 project-type: 'multijob'
251 gs-pathname: '{gs-pathname}/dev'
257 default: https://gerrit.opnfv.org/gerrit/$PROJECT
258 description: "Used for overriding the GIT URL coming from parameters macro."
260 name: ARTIFACT_VERSION
262 description: "Used for overriding the ARTIFACT_VERSION"
269 server-name: 'gerrit.opnfv.org'
271 - comment-added-contains-event:
272 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
274 - project-compare-type: 'ANT'
275 project-pattern: 'apex'
277 - branch-compare-type: 'ANT'
278 branch-pattern: '**/{branch}'
294 use-build-blocker: true
306 condition: SUCCESSFUL
308 - name: 'apex-deploy-virtual-{stream}'
309 current-parameters: false
310 predefined-parameters: |
311 ARTIFACT_VERSION=$ARTIFACT_VERSION
314 GERRIT_BRANCH=$GERRIT_BRANCH
315 GERRIT_REFSPEC=$GERRIT_REFSPEC
316 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
317 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
318 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
319 node-parameters: true
320 kill-phase-on: FAILURE
324 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo 'os-.*') > detected_scenario
326 properties-file: detected_scenario
329 condition: SUCCESSFUL
331 - name: 'functest-apex-virtual-suite-{stream}'
332 current-parameters: false
333 predefined-parameters: |
334 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
335 FUNCTEST_SUITE_NAME=healthcheck
336 GERRIT_BRANCH=$GERRIT_BRANCH
337 GERRIT_REFSPEC=$GERRIT_REFSPEC
338 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
339 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
340 node-parameters: true
346 name: 'apex-runner-cperf-{stream}'
349 project-type: 'multijob'
356 gs-pathname: '{gs-pathname}'
362 default: https://gerrit.opnfv.org/gerrit/$PROJECT
363 description: "Used for overriding the GIT URL coming from parameters macro."
371 use-build-blocker: false
381 - description-setter:
382 description: "Deployed on $NODE_NAME"
384 name: 'Baremetal Deploy'
387 - name: 'apex-deploy-baremetal-{stream}'
388 node-parameters: false
389 current-parameters: true
390 predefined-parameters: |
391 GERRIT_BRANCH=$GERRIT_BRANCH
394 DEPLOY_SCENARIO={verify-scenario}
395 kill-phase-on: FAILURE
400 condition: SUCCESSFUL
402 - name: 'cperf-apex-intel-pod2-daily-master'
403 node-parameters: true
404 current-parameters: false
405 predefined-parameters:
406 DEPLOY_SCENARIO={verify-scenario}
413 name: 'apex-deploy-{platform}-{stream}'
415 node: 'apex-{platform}-{stream}'
430 - '{project}-{platform}-{stream}-defaults'
435 gs-pathname: '{gs-pathname}'
437 name: DEPLOY_SCENARIO
438 default: '{verify-scenario}'
439 description: "Scenario to deploy with."
443 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
448 use-build-blocker: true
462 - description-setter:
463 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
464 - 'apex-download-artifact'
466 - 'apex-workspace-cleanup'
469 # Baremetal Deploy and Test
471 name: 'apex-{scenario}-baremetal-{scenario_stream}'
473 project-type: 'multijob'
481 - '{project}-defaults'
482 - '{project}-baremetal-{scenario_stream}-defaults'
487 gs-pathname: '{gs-pathname}'
489 name: DEPLOY_SCENARIO
490 default: '{scenario}'
491 description: "Scenario to deploy with."
495 use-build-blocker: true
500 - 'apex-.*-promote.*'
502 - 'apex-.+-baremetal-.+'
508 - description-setter:
509 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
511 name: 'Baremetal Deploy'
512 condition: SUCCESSFUL
514 - name: 'apex-deploy-baremetal-{scenario_stream}'
515 node-parameters: true
516 current-parameters: true
517 predefined-parameters: |
519 GERRIT_BRANCH=$GERRIT_BRANCH
521 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
522 kill-phase-on: FAILURE
526 name: 'OPNFV Test Suite'
528 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
529 node-parameters: true
530 current-parameters: false
531 predefined-parameters:
532 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
540 !include-raw-escape: ./update-build-result.groovy
544 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
546 project-type: 'multijob'
551 - '{project}-defaults'
552 - '{project}-baremetal-{scenario_stream}-defaults'
557 gs-pathname: '{gs-pathname}'
559 name: DEPLOY_SCENARIO
560 default: '{scenario}'
561 description: "Scenario to deploy with."
565 use-build-blocker: true
570 - 'apex-.*-promote.*'
572 - 'apex-testsuite-.+-baremetal-.+'
578 - description-setter:
579 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
584 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
585 node-parameters: true
586 current-parameters: false
587 predefined-parameters:
588 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
596 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
597 node-parameters: true
598 current-parameters: false
599 predefined-parameters:
600 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
608 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
609 node-parameters: true
610 current-parameters: false
611 predefined-parameters:
612 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
614 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
621 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
622 node-parameters: true
623 current-parameters: false
624 predefined-parameters:
625 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
626 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
630 # Build status is always success due conditional plugin prefetching
631 # build status before multijob phases execute
632 # - conditional-step:
633 # condition-kind: current-status
634 # condition-worst: SUCCESS
635 # condtion-best: SUCCESS
636 # on-evaluation-failure: mark-unstable
638 # - shell: 'echo "Tests Passed"'
640 {% for stream in scenarios %}
643 name: 'apex-daily-{{ stream }}'
645 # Job template for daily build
647 # Required Variables:
648 # stream: branch with - in place of / (eg. stable)
649 # branch: branch (eg. stable)
650 project-type: 'multijob'
652 node: '{{ build_slave[stream] }}'
660 - '{project}-defaults'
661 - '{project}-baremetal-{{ stream }}-defaults'
664 branch: '{{ branch[stream] }}'
666 gs-pathname: '{{ gspathname[stream] }}'
672 - 'apex-{{ stream }}'
677 condition: SUCCESSFUL
679 - name: 'apex-build-{{ stream }}'
680 current-parameters: false
681 predefined-parameters: |
682 GERRIT_BRANCH=$GERRIT_BRANCH
684 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
685 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
686 node-parameters: true
687 kill-phase-on: FAILURE
691 name: 'Verify and upload ISO'
692 condition: SUCCESSFUL
694 - name: 'apex-verify-iso-{{ stream }}'
695 current-parameters: false
696 predefined-parameters: |
697 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
698 GERRIT_BRANCH=$GERRIT_BRANCH
700 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
701 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
702 node-parameters: true
703 kill-phase-on: FAILURE
707 name: Baremetal Deploy and Test Phase
708 condition: SUCCESSFUL
710 {% for scenario in scenarios[stream] %}
711 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
712 node-parameters: false
713 current-parameters: false
714 predefined-parameters: |
724 name: 'apex-create-snapshot'
726 # Job template for clean
728 # Required Variables:
729 # stream: branch with - in place of / (eg. stable)
735 !include-raw-escape: ./apex-snapshot-create.sh
739 name: 'apex-upload-snapshot'
741 # Job template for clean
743 # Required Variables:
744 # stream: branch with - in place of / (eg. stable)
750 properties-content: ARTIFACT_TYPE=snapshot
751 - 'apex-upload-artifact'
755 name: 'apex-csit-promote-daily-{stream}'
757 # Job template for promoting CSIT Snapshots
759 # Required Variables:
760 # stream: branch with - in place of / (eg. stable)
761 # branch: branch (eg. stable)
762 node: '{virtual-slave}'
763 project-type: 'multijob'
774 gs-pathname: '{gs-pathname}'
778 use-build-blocker: true
787 - timed: '0 12 * * 0'
792 condition: SUCCESSFUL
794 - name: 'apex-build-{stream}'
795 current-parameters: false
796 predefined-parameters: |
797 GERRIT_BRANCH=$GERRIT_BRANCH
798 GERRIT_REFSPEC=$GERRIT_REFSPEC
799 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
800 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
801 node-parameters: false
802 kill-phase-on: FAILURE
807 condition: SUCCESSFUL
809 - name: 'apex-deploy-virtual-{stream}'
810 current-parameters: false
811 predefined-parameters: |
812 DEPLOY_SCENARIO=os-odl_l3-csit-noha
814 GERRIT_BRANCH=$GERRIT_BRANCH
815 GERRIT_REFSPEC=$GERRIT_REFSPEC
816 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
817 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
819 node-parameters: true
820 kill-phase-on: FAILURE
825 condition: SUCCESSFUL
827 - name: 'functest-apex-virtual-suite-{stream}'
828 current-parameters: false
829 predefined-parameters: |
830 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
831 FUNCTEST_SUITE_NAME=tempest_smoke_serial
832 GERRIT_BRANCH=$GERRIT_BRANCH
833 GERRIT_REFSPEC=$GERRIT_REFSPEC
834 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
835 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
836 node-parameters: true
837 kill-phase-on: FAILURE
841 name: create snapshot
842 condition: SUCCESSFUL
844 - name: 'apex-create-snapshot'
845 current-parameters: false
846 predefined-parameters: |
848 node-parameters: true
849 kill-phase-on: FAILURE
853 name: upload snapshot
854 condition: SUCCESSFUL
856 - name: 'apex-upload-snapshot'
857 current-parameters: false
858 predefined-parameters: |
860 node-parameters: true
861 kill-phase-on: FAILURE
867 name: 'apex-fdio-promote-daily-{stream}'
869 # Job template for promoting CSIT Snapshots
871 # Required Variables:
872 # stream: branch with - in place of / (eg. stable)
873 # branch: branch (eg. stable)
874 node: '{virtual-slave}'
875 project-type: 'multijob'
886 gs-pathname: '{gs-pathname}'
890 use-build-blocker: true
901 condition: SUCCESSFUL
903 - name: 'apex-build-{stream}'
904 current-parameters: false
905 predefined-parameters: |
906 GERRIT_BRANCH=$GERRIT_BRANCH
907 GERRIT_REFSPEC=$GERRIT_REFSPEC
908 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
909 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
910 node-parameters: false
911 kill-phase-on: FAILURE
916 condition: SUCCESSFUL
918 - name: 'apex-deploy-virtual-{stream}'
919 current-parameters: false
920 predefined-parameters: |
921 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
923 GERRIT_BRANCH=$GERRIT_BRANCH
924 GERRIT_REFSPEC=$GERRIT_REFSPEC
925 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
926 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
928 node-parameters: true
929 kill-phase-on: FAILURE
933 name: create snapshot
934 condition: SUCCESSFUL
936 - name: 'apex-create-snapshot'
937 current-parameters: false
938 predefined-parameters: |
940 node-parameters: true
941 kill-phase-on: FAILURE
945 name: upload snapshot
946 condition: SUCCESSFUL
948 - name: 'apex-upload-snapshot'
949 current-parameters: false
950 predefined-parameters: |
952 node-parameters: true
953 kill-phase-on: FAILURE
957 ########################
959 ########################
966 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
968 name: ARTIFACT_VERSION
970 description: "Artifact version type"
972 name: BUILD_DIRECTORY
973 default: $WORKSPACE/.build
974 description: "Directory where the build artifact will be located upon the completion of the build."
976 name: CACHE_DIRECTORY
977 default: $HOME/opnfv/apex-cache{gs-pathname}
978 description: "Directory where the cache to be used during the build is located."
981 default: https://gerrit.opnfv.org/gerrit/$PROJECT
982 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
985 default: '{gs-pathname}'
986 description: "Version directory where opnfv artifacts are stored in gs repository"
989 default: $GS_BASE{gs-pathname}
990 description: "URL to Google Storage."
994 description: "Flag to know if we should promote/upload snapshot artifacts."
996 ########################
998 ########################
1000 name: 'apex-unit-test'
1003 !include-raw: ./apex-unit-test.sh
1006 name: 'apex-workspace-cleanup'
1009 !include-raw: ./apex-workspace-cleanup.sh
1013 name: 'apex-upload-artifact'
1016 !include-raw: ./apex-upload-artifact.sh
1019 name: 'apex-download-artifact'
1022 !include-raw: ./apex-download-artifact.sh
1028 !include-raw: ./apex-deploy.sh
1030 #######################
1032 ########################
1036 - timed: '0 12 * * *'
1040 - timed: '0 3 1 1 7'