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: 'true'
149 forbidden-file-paths:
151 pattern: 'apex/tests/**'
158 use-build-blocker: true
168 - description-setter:
169 description: "Built on $NODE_NAME"
172 condition: SUCCESSFUL
174 - name: 'apex-verify-unit-tests-{stream}'
175 current-parameters: false
176 predefined-parameters: |
177 GERRIT_BRANCH=$GERRIT_BRANCH
178 GERRIT_REFSPEC=$GERRIT_REFSPEC
179 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
180 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
181 node-parameters: false
182 kill-phase-on: FAILURE
187 condition: SUCCESSFUL
189 - name: 'apex-build-{stream}'
190 current-parameters: false
191 predefined-parameters: |
192 ARTIFACT_VERSION=$ARTIFACT_VERSION
193 GERRIT_BRANCH=$GERRIT_BRANCH
194 GERRIT_REFSPEC=$GERRIT_REFSPEC
195 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
196 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
197 node-parameters: false
198 kill-phase-on: FAILURE
203 condition: SUCCESSFUL
205 - name: 'apex-deploy-virtual-{stream}'
206 current-parameters: false
207 predefined-parameters: |
208 ARTIFACT_VERSION=$ARTIFACT_VERSION
209 DEPLOY_SCENARIO={verify-scenario}
211 GERRIT_BRANCH=$GERRIT_BRANCH
212 GERRIT_REFSPEC=$GERRIT_REFSPEC
213 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
214 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
215 node-parameters: true
216 kill-phase-on: FAILURE
221 condition: SUCCESSFUL
223 - name: 'functest-apex-virtual-suite-{stream}'
224 current-parameters: false
225 predefined-parameters: |
226 DEPLOY_SCENARIO={verify-scenario}
227 FUNCTEST_SUITE_NAME=healthcheck
228 GERRIT_BRANCH=$GERRIT_BRANCH
229 GERRIT_REFSPEC=$GERRIT_REFSPEC
230 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
231 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
232 node-parameters: true
237 # Verify Scenario Gate
239 name: 'apex-verify-gate-{stream}'
241 node: '{virtual-slave}'
245 project-type: 'multijob'
249 gs-pathname: '{gs-pathname}/dev'
255 default: https://gerrit.opnfv.org/gerrit/$PROJECT
256 description: "Used for overriding the GIT URL coming from parameters macro."
258 name: ARTIFACT_VERSION
260 description: "Used for overriding the ARTIFACT_VERSION"
267 server-name: 'gerrit.opnfv.org'
269 - comment-added-contains-event:
270 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
272 - project-compare-type: 'ANT'
273 project-pattern: 'apex'
275 - branch-compare-type: 'ANT'
276 branch-pattern: '**/{branch}'
292 use-build-blocker: true
304 condition: SUCCESSFUL
306 - name: 'apex-deploy-virtual-{stream}'
307 current-parameters: false
308 predefined-parameters: |
309 ARTIFACT_VERSION=$ARTIFACT_VERSION
312 GERRIT_BRANCH=$GERRIT_BRANCH
313 GERRIT_REFSPEC=$GERRIT_REFSPEC
314 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
315 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
316 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
317 node-parameters: true
318 kill-phase-on: FAILURE
322 echo DEPLOY_SCENARIO=$(echo $GERRIT_EVENT_COMMENT_TEXT | grep start-gate-scenario | grep -Eo 'os-.*') > detected_scenario
324 properties-file: detected_scenario
327 condition: SUCCESSFUL
329 - name: 'functest-apex-virtual-suite-{stream}'
330 current-parameters: false
331 predefined-parameters: |
332 DEPLOY_SCENARIO=$DEPLOY_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-deploy-{platform}-{stream}'
413 node: 'apex-{platform}-{stream}'
428 - '{project}-{platform}-{stream}-defaults'
433 gs-pathname: '{gs-pathname}'
435 name: DEPLOY_SCENARIO
436 default: '{verify-scenario}'
437 description: "Scenario to deploy with."
441 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
446 use-build-blocker: true
460 - description-setter:
461 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
462 - 'apex-download-artifact'
464 - 'apex-workspace-cleanup'
467 # Baremetal Deploy and Test
469 name: 'apex-{scenario}-baremetal-{scenario_stream}'
471 project-type: 'multijob'
479 - '{project}-defaults'
480 - '{project}-baremetal-{scenario_stream}-defaults'
485 gs-pathname: '{gs-pathname}'
487 name: DEPLOY_SCENARIO
488 default: '{scenario}'
489 description: "Scenario to deploy with."
493 use-build-blocker: true
498 - 'apex-.*-promote.*'
500 - 'apex-.+-baremetal-.+'
506 - description-setter:
507 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
509 name: 'Baremetal Deploy'
510 condition: SUCCESSFUL
512 - name: 'apex-deploy-baremetal-{scenario_stream}'
513 node-parameters: true
514 current-parameters: true
515 predefined-parameters: |
517 GERRIT_BRANCH=$GERRIT_BRANCH
519 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
520 kill-phase-on: FAILURE
524 name: 'OPNFV Test Suite'
526 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
527 node-parameters: true
528 current-parameters: false
529 predefined-parameters:
530 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
538 !include-raw-escape: ./update-build-result.groovy
542 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
544 project-type: 'multijob'
549 - '{project}-defaults'
550 - '{project}-baremetal-{scenario_stream}-defaults'
555 gs-pathname: '{gs-pathname}'
557 name: DEPLOY_SCENARIO
558 default: '{scenario}'
559 description: "Scenario to deploy with."
563 use-build-blocker: true
568 - 'apex-.*-promote.*'
570 - 'apex-testsuite-.+-baremetal-.+'
576 - description-setter:
577 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
582 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
583 node-parameters: true
584 current-parameters: false
585 predefined-parameters:
586 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
594 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
595 node-parameters: true
596 current-parameters: false
597 predefined-parameters:
598 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
606 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
607 node-parameters: true
608 current-parameters: false
609 predefined-parameters:
610 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
612 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
619 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
620 node-parameters: true
621 current-parameters: false
622 predefined-parameters:
623 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
624 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
628 # Build status is always success due conditional plugin prefetching
629 # build status before multijob phases execute
630 # - conditional-step:
631 # condition-kind: current-status
632 # condition-worst: SUCCESS
633 # condtion-best: SUCCESS
634 # on-evaluation-failure: mark-unstable
636 # - shell: 'echo "Tests Passed"'
638 {% for stream in scenarios %}
641 name: 'apex-daily-{{ stream }}'
643 # Job template for daily build
645 # Required Variables:
646 # stream: branch with - in place of / (eg. stable)
647 # branch: branch (eg. stable)
648 project-type: 'multijob'
650 node: '{{ build_slave[stream] }}'
658 - '{project}-defaults'
659 - '{project}-baremetal-{{ stream }}-defaults'
662 branch: '{{ branch[stream] }}'
664 gs-pathname: '{{ gspathname[stream] }}'
670 - 'apex-{{ stream }}'
675 condition: SUCCESSFUL
677 - name: 'apex-build-{{ stream }}'
678 current-parameters: false
679 predefined-parameters: |
680 GERRIT_BRANCH=$GERRIT_BRANCH
682 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
683 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
684 node-parameters: true
685 kill-phase-on: FAILURE
689 name: 'Verify and upload ISO'
690 condition: SUCCESSFUL
692 - name: 'apex-verify-iso-{{ stream }}'
693 current-parameters: false
694 predefined-parameters: |
695 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
696 GERRIT_BRANCH=$GERRIT_BRANCH
698 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
699 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
700 node-parameters: true
701 kill-phase-on: FAILURE
705 name: Baremetal Deploy and Test Phase
706 condition: SUCCESSFUL
708 {% for scenario in scenarios[stream] %}
709 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
710 node-parameters: false
711 current-parameters: false
712 predefined-parameters: |
722 name: 'apex-create-snapshot'
724 # Job template for clean
726 # Required Variables:
727 # stream: branch with - in place of / (eg. stable)
733 !include-raw-escape: ./apex-snapshot-create.sh
737 name: 'apex-upload-snapshot'
739 # Job template for clean
741 # Required Variables:
742 # stream: branch with - in place of / (eg. stable)
748 properties-content: ARTIFACT_TYPE=snapshot
749 - 'apex-upload-artifact'
753 name: 'apex-csit-promote-daily-{stream}'
755 # Job template for promoting CSIT Snapshots
757 # Required Variables:
758 # stream: branch with - in place of / (eg. stable)
759 # branch: branch (eg. stable)
760 node: '{virtual-slave}'
761 project-type: 'multijob'
772 gs-pathname: '{gs-pathname}'
776 use-build-blocker: true
785 - timed: '0 12 * * 0'
790 condition: SUCCESSFUL
792 - name: 'apex-build-{stream}'
793 current-parameters: false
794 predefined-parameters: |
795 GERRIT_BRANCH=$GERRIT_BRANCH
796 GERRIT_REFSPEC=$GERRIT_REFSPEC
797 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
798 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
799 node-parameters: false
800 kill-phase-on: FAILURE
805 condition: SUCCESSFUL
807 - name: 'apex-deploy-virtual-{stream}'
808 current-parameters: false
809 predefined-parameters: |
810 DEPLOY_SCENARIO=os-odl_l3-csit-noha
812 GERRIT_BRANCH=$GERRIT_BRANCH
813 GERRIT_REFSPEC=$GERRIT_REFSPEC
814 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
815 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
817 node-parameters: true
818 kill-phase-on: FAILURE
823 condition: SUCCESSFUL
825 - name: 'functest-apex-virtual-suite-{stream}'
826 current-parameters: false
827 predefined-parameters: |
828 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
829 FUNCTEST_SUITE_NAME=tempest_smoke_serial
830 GERRIT_BRANCH=$GERRIT_BRANCH
831 GERRIT_REFSPEC=$GERRIT_REFSPEC
832 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
833 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
834 node-parameters: true
835 kill-phase-on: FAILURE
839 name: create snapshot
840 condition: SUCCESSFUL
842 - name: 'apex-create-snapshot'
843 current-parameters: false
844 predefined-parameters: |
846 node-parameters: true
847 kill-phase-on: FAILURE
851 name: upload snapshot
852 condition: SUCCESSFUL
854 - name: 'apex-upload-snapshot'
855 current-parameters: false
856 predefined-parameters: |
858 node-parameters: true
859 kill-phase-on: FAILURE
865 name: 'apex-fdio-promote-daily-{stream}'
867 # Job template for promoting CSIT Snapshots
869 # Required Variables:
870 # stream: branch with - in place of / (eg. stable)
871 # branch: branch (eg. stable)
872 node: '{virtual-slave}'
873 project-type: 'multijob'
884 gs-pathname: '{gs-pathname}'
888 use-build-blocker: true
899 condition: SUCCESSFUL
901 - name: 'apex-build-{stream}'
902 current-parameters: false
903 predefined-parameters: |
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: false
909 kill-phase-on: FAILURE
914 condition: SUCCESSFUL
916 - name: 'apex-deploy-virtual-{stream}'
917 current-parameters: false
918 predefined-parameters: |
919 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
921 GERRIT_BRANCH=$GERRIT_BRANCH
922 GERRIT_REFSPEC=$GERRIT_REFSPEC
923 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
924 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
926 node-parameters: true
927 kill-phase-on: FAILURE
931 name: create snapshot
932 condition: SUCCESSFUL
934 - name: 'apex-create-snapshot'
935 current-parameters: false
936 predefined-parameters: |
938 node-parameters: true
939 kill-phase-on: FAILURE
943 name: upload snapshot
944 condition: SUCCESSFUL
946 - name: 'apex-upload-snapshot'
947 current-parameters: false
948 predefined-parameters: |
950 node-parameters: true
951 kill-phase-on: FAILURE
955 ########################
957 ########################
964 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
966 name: ARTIFACT_VERSION
968 description: "Artifact version type"
970 name: BUILD_DIRECTORY
971 default: $WORKSPACE/.build
972 description: "Directory where the build artifact will be located upon the completion of the build."
974 name: CACHE_DIRECTORY
975 default: $HOME/opnfv/apex-cache{gs-pathname}
976 description: "Directory where the cache to be used during the build is located."
979 default: https://gerrit.opnfv.org/gerrit/$PROJECT
980 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
983 default: '{gs-pathname}'
984 description: "Version directory where opnfv artifacts are stored in gs repository"
987 default: $GS_BASE{gs-pathname}
988 description: "URL to Google Storage."
992 description: "Flag to know if we should promote/upload snapshot artifacts."
994 ########################
996 ########################
998 name: 'apex-unit-test'
1001 !include-raw: ./apex-unit-test.sh
1004 name: 'apex-workspace-cleanup'
1007 !include-raw: ./apex-workspace-cleanup.sh
1011 name: 'apex-upload-artifact'
1014 !include-raw: ./apex-upload-artifact.sh
1017 name: 'apex-download-artifact'
1020 !include-raw: ./apex-download-artifact.sh
1026 !include-raw: ./apex-deploy.sh
1028 #######################
1030 ########################
1034 - timed: '0 12 * * *'
1038 - timed: '0 3 1 1 7'