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-run-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
161 - description-setter:
162 description: "Built on $NODE_NAME"
165 condition: SUCCESSFUL
167 - name: 'apex-verify-unit-tests-{stream}'
168 current-parameters: false
169 predefined-parameters: |
170 GERRIT_BRANCH=$GERRIT_BRANCH
171 GERRIT_REFSPEC=$GERRIT_REFSPEC
172 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
173 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
174 node-parameters: false
175 kill-phase-on: FAILURE
180 condition: SUCCESSFUL
182 - name: 'apex-build-{stream}'
183 current-parameters: false
184 predefined-parameters: |
185 ARTIFACT_VERSION=$ARTIFACT_VERSION
186 GERRIT_BRANCH=$GERRIT_BRANCH
187 GERRIT_REFSPEC=$GERRIT_REFSPEC
188 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
189 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
190 node-parameters: false
191 kill-phase-on: FAILURE
196 condition: SUCCESSFUL
198 - name: 'apex-deploy-virtual-{stream}'
199 current-parameters: false
200 predefined-parameters: |
201 ARTIFACT_VERSION=$ARTIFACT_VERSION
202 DEPLOY_SCENARIO={verify-scenario}
204 GERRIT_BRANCH=$GERRIT_BRANCH
205 GERRIT_REFSPEC=$GERRIT_REFSPEC
206 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
207 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
208 node-parameters: true
209 kill-phase-on: FAILURE
214 condition: SUCCESSFUL
216 - name: 'functest-apex-virtual-suite-{stream}'
217 current-parameters: false
218 predefined-parameters: |
219 DEPLOY_SCENARIO={verify-scenario}
220 FUNCTEST_SUITE_NAME=healthcheck
221 GERRIT_BRANCH=$GERRIT_BRANCH
222 GERRIT_REFSPEC=$GERRIT_REFSPEC
223 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
224 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
225 node-parameters: true
226 kill-phase-on: FAILURE
230 # Verify Scenario Gate
232 name: 'apex-verify-gate-{stream}'
234 node: '{virtual-slave}'
238 project-type: 'multijob'
242 gs-pathname: '{gs-pathname}/dev'
248 default: https://gerrit.opnfv.org/gerrit/$PROJECT
249 description: "Used for overriding the GIT URL coming from parameters macro."
251 name: ARTIFACT_VERSION
253 description: "Used for overriding the ARTIFACT_VERSION"
260 server-name: 'gerrit.opnfv.org'
262 - comment-added-contains-event:
263 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
265 - project-compare-type: 'ANT'
266 project-pattern: 'apex'
268 - branch-compare-type: 'ANT'
269 branch-pattern: '**/{branch}'
283 use-build-blocker: true
297 condition: SUCCESSFUL
299 - name: 'apex-deploy-virtual-{stream}'
300 current-parameters: false
301 predefined-parameters: |
302 ARTIFACT_VERSION=$ARTIFACT_VERSION
305 GERRIT_BRANCH=$GERRIT_BRANCH
306 GERRIT_REFSPEC=$GERRIT_REFSPEC
307 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
308 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
309 node-parameters: true
310 kill-phase-on: FAILURE
315 condition: SUCCESSFUL
317 - name: 'functest-apex-virtual-suite-{stream}'
318 current-parameters: false
319 predefined-parameters: |
320 DEPLOY_SCENARIO={verify-scenario}
321 FUNCTEST_SUITE_NAME=healthcheck
322 GERRIT_BRANCH=$GERRIT_BRANCH
323 GERRIT_REFSPEC=$GERRIT_REFSPEC
324 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
325 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
326 node-parameters: true
327 kill-phase-on: FAILURE
332 name: 'apex-runner-cperf-{stream}'
335 project-type: 'multijob'
342 gs-pathname: '{gs-pathname}'
348 default: https://gerrit.opnfv.org/gerrit/$PROJECT
349 description: "Used for overriding the GIT URL coming from parameters macro."
357 use-build-blocker: false
367 - description-setter:
368 description: "Deployed on $NODE_NAME"
370 name: 'Baremetal Deploy'
373 - name: 'apex-deploy-baremetal-{stream}'
374 node-parameters: false
375 current-parameters: true
376 predefined-parameters: |
378 DEPLOY_SCENARIO={verify-scenario}
379 kill-phase-on: FAILURE
386 - name: 'functest-apex-baremetal-daily-{stream}'
387 node-parameters: true
388 current-parameters: false
389 predefined-parameters:
390 DEPLOY_SCENARIO={verify-scenario}
397 name: 'apex-build-{stream}'
399 # Job template for builds
401 # Required Variables:
402 # stream: branch with - in place of / (eg. stable)
403 # branch: branch (eg. stable)
404 node: '{build-slave}'
411 - '{project}-defaults'
416 gs-pathname: '{gs-pathname}'
436 properties-content: ARTIFACT_TYPE=rpm
437 - 'apex-upload-artifact'
441 name: 'apex-verify-iso-{stream}'
443 # Job template for builds
445 # Required Variables:
446 # stream: branch with - in place of / (eg. stable)
447 # branch: branch (eg. stable)
448 node: '{virtual-slave}'
459 gs-pathname: '{gs-pathname}'
462 default: https://gerrit.opnfv.org/gerrit/$PROJECT
463 description: "Used for overriding the GIT URL coming from parameters macro."
471 use-build-blocker: true
483 properties-content: ARTIFACT_TYPE=iso
484 - 'apex-upload-artifact'
488 name: 'apex-deploy-{platform}-{stream}'
490 # Job template for virtual deployment
492 # Required Variables:
493 # stream: branch with - in place of / (eg. stable)
494 # branch: branch (eg. stable)
495 node: 'apex-{platform}-{stream}'
514 gs-pathname: '{gs-pathname}'
516 name: DEPLOY_SCENARIO
517 default: '{verify-scenario}'
518 description: "Scenario to deploy with."
522 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
527 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-run-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
582 - '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
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=$WORKSPACE/../apex-build-{{ stream }}/.build
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: Baremetal Deploy and Test Phase
692 condition: SUCCESSFUL
694 {% for scenario in scenarios[stream] %}
695 - name: 'apex-run-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 * * *'