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-deploy-test-baremetal-{stream}'
17 - 'apex-upload-snapshot'
18 - 'apex-create-snapshot'
19 # stream: branch with - in place of / (eg. stable-arno)
20 # branch: branch (eg. stable/arno)
25 build-slave: 'apex-build-master'
26 virtual-slave: 'apex-virtual-master'
27 baremetal-slave: 'apex-baremetal-master'
28 verify-scenario: 'os-odl-nofeature-ha'
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'
45 name: 'apex-verify-unit-tests-{stream}'
53 gs-pathname: '{gs-pathname}'
63 server-name: 'gerrit.opnfv.org'
65 - patchset-created-event:
66 exclude-drafts: 'false'
67 exclude-trivial-rebase: 'false'
68 exclude-no-code-change: 'true'
69 - draft-published-event
70 - comment-added-contains-event:
71 comment-contains-value: 'recheck'
72 - comment-added-contains-event:
73 comment-contains-value: 'reverify'
75 - project-compare-type: 'ANT'
76 project-pattern: 'apex'
78 - branch-compare-type: 'ANT'
79 branch-pattern: '**/{branch}'
92 !include-raw-escape: ./apex-unit-test.sh
96 name: 'apex-verify-{stream}'
98 node: '{virtual-slave}'
102 project-type: 'multijob'
106 gs-pathname: '{gs-pathname}/dev'
111 name: ARTIFACT_VERSION
113 description: "Used for overriding the ARTIFACT_VERSION"
119 server-name: 'gerrit.opnfv.org'
121 - patchset-created-event:
122 exclude-drafts: 'false'
123 exclude-trivial-rebase: 'false'
124 exclude-no-code-change: 'true'
125 - draft-published-event
126 - comment-added-contains-event:
127 comment-contains-value: 'recheck'
128 - comment-added-contains-event:
129 comment-contains-value: 'reverify'
131 - project-compare-type: 'ANT'
132 project-pattern: 'apex'
134 - branch-compare-type: 'ANT'
135 branch-pattern: '**/{branch}'
149 use-build-blocker: true
162 - description-setter:
163 description: "Built on $NODE_NAME"
166 condition: SUCCESSFUL
168 - name: 'apex-verify-unit-tests-{stream}'
169 current-parameters: false
170 predefined-parameters: |
171 GERRIT_BRANCH=$GERRIT_BRANCH
172 GERRIT_REFSPEC=$GERRIT_REFSPEC
173 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
174 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
175 node-parameters: false
176 kill-phase-on: FAILURE
181 condition: SUCCESSFUL
183 - name: 'apex-build-{stream}'
184 current-parameters: false
185 predefined-parameters: |
186 ARTIFACT_VERSION=$ARTIFACT_VERSION
187 GERRIT_BRANCH=$GERRIT_BRANCH
188 GERRIT_REFSPEC=$GERRIT_REFSPEC
189 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
190 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
191 node-parameters: false
192 kill-phase-on: FAILURE
197 condition: SUCCESSFUL
199 - name: 'apex-deploy-virtual-{stream}'
200 current-parameters: false
201 predefined-parameters: |
202 ARTIFACT_VERSION=$ARTIFACT_VERSION
203 DEPLOY_SCENARIO={verify-scenario}
205 GERRIT_BRANCH=$GERRIT_BRANCH
206 GERRIT_REFSPEC=$GERRIT_REFSPEC
207 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
208 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
209 node-parameters: true
210 kill-phase-on: FAILURE
215 condition: SUCCESSFUL
217 - name: 'functest-apex-virtual-suite-{stream}'
218 current-parameters: false
219 predefined-parameters: |
220 DEPLOY_SCENARIO={verify-scenario}
221 FUNCTEST_SUITE_NAME=healthcheck
222 GERRIT_BRANCH=$GERRIT_BRANCH
223 GERRIT_REFSPEC=$GERRIT_REFSPEC
224 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
225 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
226 node-parameters: true
227 kill-phase-on: FAILURE
231 # Verify Scenario Gate
233 name: 'apex-verify-gate-{stream}'
235 node: '{virtual-slave}'
239 project-type: 'multijob'
243 gs-pathname: '{gs-pathname}/dev'
249 default: https://gerrit.opnfv.org/gerrit/$PROJECT
250 description: "Used for overriding the GIT URL coming from parameters macro."
252 name: ARTIFACT_VERSION
254 description: "Used for overriding the ARTIFACT_VERSION"
261 server-name: 'gerrit.opnfv.org'
263 - comment-added-contains-event:
264 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
266 - project-compare-type: 'ANT'
267 project-pattern: 'apex'
269 - branch-compare-type: 'ANT'
270 branch-pattern: '**/{branch}'
284 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 node-parameters: true
313 kill-phase-on: FAILURE
318 condition: SUCCESSFUL
320 - name: 'functest-apex-virtual-suite-{stream}'
321 current-parameters: false
322 predefined-parameters: |
323 DEPLOY_SCENARIO={verify-scenario}
324 FUNCTEST_SUITE_NAME=healthcheck
325 GERRIT_BRANCH=$GERRIT_BRANCH
326 GERRIT_REFSPEC=$GERRIT_REFSPEC
327 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
328 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
329 node-parameters: true
330 kill-phase-on: FAILURE
335 name: 'apex-runner-cperf-{stream}'
338 project-type: 'multijob'
345 gs-pathname: '{gs-pathname}'
351 default: https://gerrit.opnfv.org/gerrit/$PROJECT
352 description: "Used for overriding the GIT URL coming from parameters macro."
360 use-build-blocker: false
370 - description-setter:
371 description: "Deployed on $NODE_NAME"
373 name: 'Baremetal Deploy'
376 - name: 'apex-deploy-baremetal-{stream}'
377 node-parameters: false
378 current-parameters: true
379 predefined-parameters: |
381 DEPLOY_SCENARIO={verify-scenario}
382 kill-phase-on: FAILURE
389 - name: 'functest-apex-baremetal-daily-{stream}'
390 node-parameters: true
391 current-parameters: false
392 predefined-parameters:
393 DEPLOY_SCENARIO={verify-scenario}
400 name: 'apex-build-{stream}'
402 # Job template for builds
404 # Required Variables:
405 # stream: branch with - in place of / (eg. stable)
406 # branch: branch (eg. stable)
407 node: '{build-slave}'
414 - '{project}-defaults'
419 gs-pathname: '{gs-pathname}'
439 properties-content: ARTIFACT_TYPE=rpm
440 - 'apex-upload-artifact'
444 name: 'apex-verify-iso-{stream}'
446 # Job template for builds
448 # Required Variables:
449 # stream: branch with - in place of / (eg. stable)
450 # branch: branch (eg. stable)
451 node: '{virtual-slave}'
462 gs-pathname: '{gs-pathname}'
465 default: https://gerrit.opnfv.org/gerrit/$PROJECT
466 description: "Used for overriding the GIT URL coming from parameters macro."
474 use-build-blocker: true
486 properties-content: ARTIFACT_TYPE=iso
487 - 'apex-upload-artifact'
491 name: 'apex-deploy-{platform}-{stream}'
493 # Job template for virtual deployment
495 # Required Variables:
496 # stream: branch with - in place of / (eg. stable)
497 # branch: branch (eg. stable)
498 node: 'apex-{platform}-{stream}'
517 gs-pathname: '{gs-pathname}'
519 name: DEPLOY_SCENARIO
520 default: '{verify-scenario}'
521 description: "Scenario to deploy with."
525 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
530 use-build-blocker: true
540 - description-setter:
541 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
542 - 'apex-download-artifact'
544 - 'apex-workspace-cleanup'
547 # Baremetal Deploy and Test
549 name: 'apex-deploy-test-baremetal-{stream}'
551 # Job template for daily build
553 # Required Variables:
554 # stream: branch with - in place of / (eg. stable)
555 # branch: branch (eg. stable)
556 project-type: 'multijob'
564 - '{project}-defaults'
565 - '{project}-baremetal-{stream}-defaults'
570 gs-pathname: '{gs-pathname}'
572 name: DEPLOY_SCENARIO
573 default: '{verify-scenario}'
574 description: "Scenario to deploy with."
578 use-build-blocker: true
584 - 'apex-.*-promote.*'
586 - description-setter:
587 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
589 name: 'Baremetal Deploy'
592 - name: 'apex-deploy-baremetal-{stream}'
593 node-parameters: true
594 current-parameters: true
595 predefined-parameters: |
597 kill-phase-on: FAILURE
604 - name: 'functest-apex-baremetal-daily-{stream}'
605 node-parameters: true
606 current-parameters: false
607 predefined-parameters:
608 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
616 - name: 'yardstick-apex-baremetal-daily-{stream}'
617 node-parameters: true
618 current-parameters: false
619 predefined-parameters:
620 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
625 {% for stream in scenarios %}
628 name: 'apex-daily-{{ stream }}'
630 # Job template for daily build
632 # Required Variables:
633 # stream: branch with - in place of / (eg. stable)
634 # branch: branch (eg. stable)
635 project-type: 'multijob'
637 node: '{{ build_slave[stream] }}'
645 - '{project}-defaults'
646 - '{project}-baremetal-{{ stream }}-defaults'
649 branch: '{{ branch[stream] }}'
651 gs-pathname: '{{ gspathname[stream] }}'
657 - 'apex-{{ stream }}'
662 condition: SUCCESSFUL
664 - name: 'apex-build-{{ stream }}'
665 current-parameters: false
666 predefined-parameters: |
667 GERRIT_BRANCH=$GERRIT_BRANCH
668 GERRIT_REFSPEC=$GERRIT_REFSPEC
669 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
670 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
671 node-parameters: true
672 kill-phase-on: FAILURE
676 name: 'Verify and upload ISO'
677 condition: SUCCESSFUL
679 - name: 'apex-verify-iso-{{ stream }}'
680 current-parameters: false
681 predefined-parameters: |
682 BUILD_DIRECTORY=apex-build-{{ stream }}/.build
683 GERRIT_BRANCH=$GERRIT_BRANCH
684 GERRIT_REFSPEC=$GERRIT_REFSPEC
685 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
686 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
687 node-parameters: true
688 kill-phase-on: FAILURE
692 name: Baremetal Deploy and Test Phase
693 condition: SUCCESSFUL
695 {% for scenario in scenarios[stream] %}
696 - name: 'apex-deploy-test-baremetal-{{ stream }}'
697 node-parameters: false
698 current-parameters: false
699 predefined-parameters: |
700 DEPLOY_SCENARIO={{scenario}}
710 name: 'apex-create-snapshot'
712 # Job template for clean
714 # Required Variables:
715 # stream: branch with - in place of / (eg. stable)
721 !include-raw-escape: ./apex-snapshot-create.sh
725 name: 'apex-upload-snapshot'
727 # Job template for clean
729 # Required Variables:
730 # stream: branch with - in place of / (eg. stable)
736 properties-content: ARTIFACT_TYPE=snapshot
737 - 'apex-upload-artifact'
741 name: 'apex-csit-promote-daily-{stream}'
743 # Job template for promoting CSIT Snapshots
745 # Required Variables:
746 # stream: branch with - in place of / (eg. stable)
747 # branch: branch (eg. stable)
748 node: '{virtual-slave}'
749 project-type: 'multijob'
760 gs-pathname: '{gs-pathname}'
764 use-build-blocker: true
774 - timed: '0 12 * * 0'
779 condition: SUCCESSFUL
781 - name: 'apex-build-{stream}'
782 current-parameters: false
783 predefined-parameters: |
784 GERRIT_BRANCH=$GERRIT_BRANCH
785 GERRIT_REFSPEC=$GERRIT_REFSPEC
786 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
787 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
788 node-parameters: false
789 kill-phase-on: FAILURE
794 condition: SUCCESSFUL
796 - name: 'apex-deploy-virtual-{stream}'
797 current-parameters: false
798 predefined-parameters: |
799 DEPLOY_SCENARIO=os-odl_l3-csit-noha
801 GERRIT_BRANCH=$GERRIT_BRANCH
802 GERRIT_REFSPEC=$GERRIT_REFSPEC
803 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
804 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
805 node-parameters: true
806 kill-phase-on: FAILURE
811 condition: SUCCESSFUL
813 - name: 'functest-apex-virtual-suite-{stream}'
814 current-parameters: false
815 predefined-parameters: |
816 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
817 FUNCTEST_SUITE_NAME=tempest_smoke_serial
818 GERRIT_BRANCH=$GERRIT_BRANCH
819 GERRIT_REFSPEC=$GERRIT_REFSPEC
820 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
821 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
822 node-parameters: true
823 kill-phase-on: FAILURE
827 name: create snapshot
828 condition: SUCCESSFUL
830 - name: 'apex-create-snapshot'
831 current-parameters: true
832 node-parameters: true
833 kill-phase-on: FAILURE
837 name: upload snapshot
838 condition: SUCCESSFUL
840 - name: 'apex-upload-snapshot'
841 current-parameters: true
842 node-parameters: true
843 kill-phase-on: FAILURE
849 name: 'apex-fdio-promote-daily-{stream}'
851 # Job template for promoting CSIT Snapshots
853 # Required Variables:
854 # stream: branch with - in place of / (eg. stable)
855 # branch: branch (eg. stable)
856 node: '{virtual-slave}'
857 project-type: 'multijob'
868 gs-pathname: '{gs-pathname}'
872 use-build-blocker: true
884 condition: SUCCESSFUL
886 - name: 'apex-build-{stream}'
887 current-parameters: false
888 predefined-parameters: |
889 GERRIT_BRANCH=$GERRIT_BRANCH
890 GERRIT_REFSPEC=$GERRIT_REFSPEC
891 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
892 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
893 node-parameters: false
894 kill-phase-on: FAILURE
899 condition: SUCCESSFUL
901 - name: 'apex-deploy-virtual-{stream}'
902 current-parameters: false
903 predefined-parameters: |
904 DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
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: true
911 kill-phase-on: FAILURE
915 name: create snapshot
916 condition: SUCCESSFUL
918 - name: 'apex-create-snapshot'
919 current-parameters: true
920 node-parameters: true
921 kill-phase-on: FAILURE
925 name: upload snapshot
926 condition: SUCCESSFUL
928 - name: 'apex-upload-snapshot'
929 current-parameters: true
930 node-parameters: true
931 kill-phase-on: FAILURE
936 name: 'apex-gs-clean-{stream}'
938 # Job template for clean
940 # Required Variables:
941 # stream: branch with - in place of / (eg. stable)
951 gs-pathname: '{gs-pathname}'
957 - 'apex-gs-clean-{stream}'
959 ########################
961 ########################
968 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
970 name: ARTIFACT_VERSION
972 description: "Artifact version type"
974 name: BUILD_DIRECTORY
975 default: $WORKSPACE/.build
976 description: "Directory where the build artifact will be located upon the completion of the build."
978 name: CACHE_DIRECTORY
979 default: $HOME/opnfv/apex-cache{gs-pathname}
980 description: "Directory where the cache to be used during the build is located."
983 default: https://gerrit.opnfv.org/gerrit/$PROJECT
984 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
987 default: '{gs-pathname}'
988 description: "Version directory where opnfv artifacts are stored in gs repository"
991 default: $GS_BASE{gs-pathname}
992 description: "URL to Google Storage."
994 ########################
996 ########################
998 name: 'apex-unit-test'
1001 !include-raw: ./apex-unit-test.sh
1007 !include-raw: ./apex-build.sh
1010 name: 'apex-workspace-cleanup'
1013 !include-raw: ./apex-workspace-cleanup.sh
1016 name: 'apex-iso-verify'
1019 !include-raw: ./apex-iso-verify.sh
1023 name: 'apex-upload-artifact'
1026 !include-raw: ./apex-upload-artifact.sh
1029 name: 'apex-download-artifact'
1032 !include-raw: ./apex-download-artifact.sh
1035 name: 'apex-gs-cleanup'
1038 !include-raw: ./apex-gs-cleanup.sh
1044 !include-raw: ./apex-deploy.sh
1046 #######################
1048 ########################
1052 - timed: '0 3 1 1 7'
1056 - timed: '0 12 * * *'
1058 name: 'apex-gs-clean-{stream}'
1060 - timed: '0 2 * * *'