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
299 condition: SUCCESSFUL
301 - name: 'apex-deploy-virtual-{stream}'
302 current-parameters: false
303 predefined-parameters: |
304 ARTIFACT_VERSION=$ARTIFACT_VERSION
307 GERRIT_BRANCH=$GERRIT_BRANCH
308 GERRIT_REFSPEC=$GERRIT_REFSPEC
309 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
310 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
311 node-parameters: true
312 kill-phase-on: FAILURE
317 condition: SUCCESSFUL
319 - name: 'functest-apex-virtual-suite-{stream}'
320 current-parameters: false
321 predefined-parameters: |
322 DEPLOY_SCENARIO={verify-scenario}
323 FUNCTEST_SUITE_NAME=healthcheck
324 GERRIT_BRANCH=$GERRIT_BRANCH
325 GERRIT_REFSPEC=$GERRIT_REFSPEC
326 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
327 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
328 node-parameters: true
329 kill-phase-on: FAILURE
334 name: 'apex-runner-cperf-{stream}'
337 project-type: 'multijob'
344 gs-pathname: '{gs-pathname}'
350 default: https://gerrit.opnfv.org/gerrit/$PROJECT
351 description: "Used for overriding the GIT URL coming from parameters macro."
359 use-build-blocker: false
369 - description-setter:
370 description: "Deployed on $NODE_NAME"
372 name: 'Baremetal Deploy'
375 - name: 'apex-deploy-baremetal-{stream}'
376 node-parameters: false
377 current-parameters: true
378 predefined-parameters: |
380 DEPLOY_SCENARIO={verify-scenario}
381 kill-phase-on: FAILURE
388 - name: 'functest-apex-baremetal-daily-{stream}'
389 node-parameters: true
390 current-parameters: false
391 predefined-parameters:
392 DEPLOY_SCENARIO={verify-scenario}
399 name: 'apex-build-{stream}'
401 # Job template for builds
403 # Required Variables:
404 # stream: branch with - in place of / (eg. stable)
405 # branch: branch (eg. stable)
406 node: '{build-slave}'
413 - '{project}-defaults'
418 gs-pathname: '{gs-pathname}'
438 properties-content: ARTIFACT_TYPE=rpm
439 - 'apex-upload-artifact'
443 name: 'apex-verify-iso-{stream}'
445 # Job template for builds
447 # Required Variables:
448 # stream: branch with - in place of / (eg. stable)
449 # branch: branch (eg. stable)
450 node: '{virtual-slave}'
461 gs-pathname: '{gs-pathname}'
464 default: https://gerrit.opnfv.org/gerrit/$PROJECT
465 description: "Used for overriding the GIT URL coming from parameters macro."
473 use-build-blocker: true
485 properties-content: ARTIFACT_TYPE=iso
486 - 'apex-upload-artifact'
490 name: 'apex-deploy-{platform}-{stream}'
492 # Job template for virtual deployment
494 # Required Variables:
495 # stream: branch with - in place of / (eg. stable)
496 # branch: branch (eg. stable)
497 node: 'apex-{platform}-{stream}'
516 gs-pathname: '{gs-pathname}'
518 name: DEPLOY_SCENARIO
519 default: '{verify-scenario}'
520 description: "Scenario to deploy with."
524 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
529 use-build-blocker: true
539 - description-setter:
540 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
541 - 'apex-download-artifact'
543 - 'apex-workspace-cleanup'
546 # Baremetal Deploy and Test
548 name: 'apex-deploy-test-baremetal-{stream}'
550 # Job template for daily build
552 # Required Variables:
553 # stream: branch with - in place of / (eg. stable)
554 # branch: branch (eg. stable)
555 project-type: 'multijob'
563 - '{project}-defaults'
564 - '{project}-baremetal-{stream}-defaults'
569 gs-pathname: '{gs-pathname}'
571 name: DEPLOY_SCENARIO
572 default: '{verify-scenario}'
573 description: "Scenario to deploy with."
577 use-build-blocker: true
583 - 'apex-.*-promote.*'
585 - description-setter:
586 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
588 name: 'Baremetal Deploy'
591 - name: 'apex-deploy-baremetal-{stream}'
592 node-parameters: true
593 current-parameters: true
594 predefined-parameters: |
596 kill-phase-on: FAILURE
603 - name: 'functest-apex-baremetal-daily-{stream}'
604 node-parameters: true
605 current-parameters: false
606 predefined-parameters:
607 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
615 - name: 'yardstick-apex-baremetal-daily-{stream}'
616 node-parameters: true
617 current-parameters: false
618 predefined-parameters:
619 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
624 {% for stream in scenarios %}
627 name: 'apex-daily-{{ stream }}'
629 # Job template for daily build
631 # Required Variables:
632 # stream: branch with - in place of / (eg. stable)
633 # branch: branch (eg. stable)
634 project-type: 'multijob'
636 node: '{{ build_slave[stream] }}'
644 - '{project}-defaults'
645 - '{project}-baremetal-{{ stream }}-defaults'
648 branch: '{{ branch[stream] }}'
650 gs-pathname: '{{ gspathname[stream] }}'
656 - 'apex-{{ stream }}'
661 condition: SUCCESSFUL
663 - name: 'apex-build-{{ stream }}'
664 current-parameters: false
665 predefined-parameters: |
666 GERRIT_BRANCH=$GERRIT_BRANCH
667 GERRIT_REFSPEC=$GERRIT_REFSPEC
668 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
669 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
670 node-parameters: true
671 kill-phase-on: FAILURE
675 name: 'Verify and upload ISO'
676 condition: SUCCESSFUL
678 - name: 'apex-verify-iso-{{ stream }}'
679 current-parameters: false
680 predefined-parameters: |
681 BUILD_DIRECTORY=apex-build-{{ stream }}/.build
682 GERRIT_BRANCH=$GERRIT_BRANCH
683 GERRIT_REFSPEC=$GERRIT_REFSPEC
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: Baremetal Deploy and Test Phase
692 condition: SUCCESSFUL
694 {% for scenario in scenarios[stream] %}
695 - name: 'apex-deploy-test-baremetal-{{ stream }}'
696 node-parameters: false
697 current-parameters: false
698 predefined-parameters: |
699 DEPLOY_SCENARIO={{scenario}}
709 name: 'apex-create-snapshot'
711 # Job template for clean
713 # Required Variables:
714 # stream: branch with - in place of / (eg. stable)
720 !include-raw-escape: ./apex-snapshot-create.sh
724 name: 'apex-upload-snapshot'
726 # Job template for clean
728 # Required Variables:
729 # stream: branch with - in place of / (eg. stable)
735 properties-content: ARTIFACT_TYPE=snapshot
736 - 'apex-upload-artifact'
740 name: 'apex-csit-promote-daily-{stream}'
742 # Job template for promoting CSIT Snapshots
744 # Required Variables:
745 # stream: branch with - in place of / (eg. stable)
746 # branch: branch (eg. stable)
747 node: '{virtual-slave}'
748 project-type: 'multijob'
759 gs-pathname: '{gs-pathname}'
763 use-build-blocker: true
772 - timed: '0 12 * * 0'
777 condition: SUCCESSFUL
779 - name: 'apex-build-{stream}'
780 current-parameters: false
781 predefined-parameters: |
782 GERRIT_BRANCH=$GERRIT_BRANCH
783 GERRIT_REFSPEC=$GERRIT_REFSPEC
784 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
785 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
786 node-parameters: false
787 kill-phase-on: FAILURE
792 condition: SUCCESSFUL
794 - name: 'apex-deploy-virtual-{stream}'
795 current-parameters: false
796 predefined-parameters: |
797 DEPLOY_SCENARIO=os-odl_l3-csit-noha
799 GERRIT_BRANCH=$GERRIT_BRANCH
800 GERRIT_REFSPEC=$GERRIT_REFSPEC
801 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
802 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
803 node-parameters: true
804 kill-phase-on: FAILURE
809 condition: SUCCESSFUL
811 - name: 'functest-apex-virtual-suite-{stream}'
812 current-parameters: false
813 predefined-parameters: |
814 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
815 FUNCTEST_SUITE_NAME=tempest_smoke_serial
816 GERRIT_BRANCH=$GERRIT_BRANCH
817 GERRIT_REFSPEC=$GERRIT_REFSPEC
818 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
819 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
820 node-parameters: true
821 kill-phase-on: FAILURE
825 name: create snapshot
826 condition: SUCCESSFUL
828 - name: 'apex-create-snapshot'
829 current-parameters: true
830 node-parameters: true
831 kill-phase-on: FAILURE
835 name: upload snapshot
836 condition: SUCCESSFUL
838 - name: 'apex-upload-snapshot'
839 current-parameters: true
840 node-parameters: true
841 kill-phase-on: FAILURE
847 name: 'apex-fdio-promote-daily-{stream}'
849 # Job template for promoting CSIT Snapshots
851 # Required Variables:
852 # stream: branch with - in place of / (eg. stable)
853 # branch: branch (eg. stable)
854 node: '{virtual-slave}'
855 project-type: 'multijob'
866 gs-pathname: '{gs-pathname}'
870 use-build-blocker: true
881 condition: SUCCESSFUL
883 - name: 'apex-build-{stream}'
884 current-parameters: false
885 predefined-parameters: |
886 GERRIT_BRANCH=$GERRIT_BRANCH
887 GERRIT_REFSPEC=$GERRIT_REFSPEC
888 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
889 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
890 node-parameters: false
891 kill-phase-on: FAILURE
896 condition: SUCCESSFUL
898 - name: 'apex-deploy-virtual-{stream}'
899 current-parameters: false
900 predefined-parameters: |
901 DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
903 GERRIT_BRANCH=$GERRIT_BRANCH
904 GERRIT_REFSPEC=$GERRIT_REFSPEC
905 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
906 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
907 node-parameters: true
908 kill-phase-on: FAILURE
912 name: create snapshot
913 condition: SUCCESSFUL
915 - name: 'apex-create-snapshot'
916 current-parameters: true
917 node-parameters: true
918 kill-phase-on: FAILURE
922 name: upload snapshot
923 condition: SUCCESSFUL
925 - name: 'apex-upload-snapshot'
926 current-parameters: true
927 node-parameters: true
928 kill-phase-on: FAILURE
933 name: 'apex-gs-clean-{stream}'
935 # Job template for clean
937 # Required Variables:
938 # stream: branch with - in place of / (eg. stable)
948 gs-pathname: '{gs-pathname}'
954 - 'apex-gs-clean-{stream}'
956 ########################
958 ########################
965 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
967 name: ARTIFACT_VERSION
969 description: "Artifact version type"
971 name: BUILD_DIRECTORY
972 default: $WORKSPACE/.build
973 description: "Directory where the build artifact will be located upon the completion of the build."
975 name: CACHE_DIRECTORY
976 default: $HOME/opnfv/apex-cache{gs-pathname}
977 description: "Directory where the cache to be used during the build is located."
980 default: https://gerrit.opnfv.org/gerrit/$PROJECT
981 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
984 default: '{gs-pathname}'
985 description: "Version directory where opnfv artifacts are stored in gs repository"
988 default: $GS_BASE{gs-pathname}
989 description: "URL to Google Storage."
991 ########################
993 ########################
995 name: 'apex-unit-test'
998 !include-raw: ./apex-unit-test.sh
1004 !include-raw: ./apex-build.sh
1007 name: 'apex-workspace-cleanup'
1010 !include-raw: ./apex-workspace-cleanup.sh
1013 name: 'apex-iso-verify'
1016 !include-raw: ./apex-iso-verify.sh
1020 name: 'apex-upload-artifact'
1023 !include-raw: ./apex-upload-artifact.sh
1026 name: 'apex-download-artifact'
1029 !include-raw: ./apex-download-artifact.sh
1032 name: 'apex-gs-cleanup'
1035 !include-raw: ./apex-gs-cleanup.sh
1041 !include-raw: ./apex-deploy.sh
1043 #######################
1045 ########################
1049 - timed: '0 3 1 1 7'
1053 - timed: '0 12 * * *'
1055 name: 'apex-gs-clean-{stream}'
1057 - timed: '0 2 * * *'