4 build-slave: 'apex-build'
6 - 'apex-verify-{stream}'
7 - 'apex-verify-gate-{stream}'
8 - 'apex-verify-unit-tests-{stream}'
9 - 'apex-runner-cperf-{stream}'
10 - 'apex-build-{stream}'
11 - 'apex-deploy-{platform}-{stream}'
14 - 'apex-csit-promote-daily-{stream}'
15 - 'apex-fdio-promote-daily-{stream}'
16 - 'apex-verify-iso-{stream}'
17 - 'apex-deploy-test-baremetal-{stream}'
18 - 'apex-upload-snapshot'
19 - 'apex-create-snapshot'
20 # stream: branch with - in place of / (eg. stable-arno)
21 # branch: branch (eg. stable/arno)
26 build-slave: 'apex-build-master'
27 virtual-slave: 'apex-virtual-master'
28 baremetal-slave: 'apex-baremetal-master'
29 verify-scenario: 'os-odl-nofeature-ha'
32 branch: 'stable/danube'
33 gs-pathname: '/danube'
34 build-slave: 'apex-build-danube'
35 virtual-slave: 'apex-virtual-danube'
36 baremetal-slave: 'apex-baremetal-danube'
37 verify-scenario: 'os-odl_l3-nofeature-ha'
46 name: 'apex-verify-unit-tests-{stream}'
54 gs-pathname: '{gs-pathname}'
64 server-name: 'gerrit.opnfv.org'
66 - patchset-created-event:
67 exclude-drafts: 'false'
68 exclude-trivial-rebase: 'false'
69 exclude-no-code-change: 'true'
70 - draft-published-event
71 - comment-added-contains-event:
72 comment-contains-value: 'recheck'
73 - comment-added-contains-event:
74 comment-contains-value: 'reverify'
76 - project-compare-type: 'ANT'
77 project-pattern: 'apex'
79 - branch-compare-type: 'ANT'
80 branch-pattern: '**/{branch}'
93 !include-raw-escape: ./apex-unit-test.sh
97 name: 'apex-verify-{stream}'
99 node: '{virtual-slave}'
103 project-type: 'multijob'
107 gs-pathname: '{gs-pathname}/dev'
112 name: ARTIFACT_VERSION
114 description: "Used for overriding the ARTIFACT_VERSION"
120 server-name: 'gerrit.opnfv.org'
122 - patchset-created-event:
123 exclude-drafts: 'false'
124 exclude-trivial-rebase: 'false'
125 exclude-no-code-change: 'true'
126 - draft-published-event
127 - comment-added-contains-event:
128 comment-contains-value: 'recheck'
129 - comment-added-contains-event:
130 comment-contains-value: 'reverify'
132 - project-compare-type: 'ANT'
133 project-pattern: 'apex'
135 - branch-compare-type: 'ANT'
136 branch-pattern: '**/{branch}'
150 use-build-blocker: true
163 - description-setter:
164 description: "Built on $NODE_NAME"
167 condition: SUCCESSFUL
169 - name: 'apex-verify-unit-tests-{stream}'
170 current-parameters: false
171 predefined-parameters: |
172 GERRIT_BRANCH=$GERRIT_BRANCH
173 GERRIT_REFSPEC=$GERRIT_REFSPEC
174 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
175 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
176 node-parameters: false
177 kill-phase-on: FAILURE
182 condition: SUCCESSFUL
184 - name: 'apex-build-{stream}'
185 current-parameters: false
186 predefined-parameters: |
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 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: false
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: false
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."
256 server-name: 'gerrit.opnfv.org'
258 - comment-added-contains-event:
259 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
261 - project-compare-type: 'ANT'
262 project-pattern: 'apex'
264 - branch-compare-type: 'ANT'
265 branch-pattern: '**/{branch}'
279 use-build-blocker: true
295 condition: SUCCESSFUL
297 - name: 'apex-deploy-virtual-{stream}'
298 current-parameters: false
299 predefined-parameters: |
302 GERRIT_BRANCH=$GERRIT_BRANCH
303 GERRIT_REFSPEC=$GERRIT_REFSPEC
304 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
305 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
306 node-parameters: false
307 kill-phase-on: FAILURE
312 condition: SUCCESSFUL
314 - name: 'functest-apex-virtual-suite-{stream}'
315 current-parameters: false
316 predefined-parameters: |
317 DEPLOY_SCENARIO={verify-scenario}
318 FUNCTEST_SUITE_NAME=healthcheck
319 GERRIT_BRANCH=$GERRIT_BRANCH
320 GERRIT_REFSPEC=$GERRIT_REFSPEC
321 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
322 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
323 node-parameters: false
324 kill-phase-on: FAILURE
329 name: 'apex-runner-cperf-{stream}'
332 project-type: 'multijob'
339 gs-pathname: '{gs-pathname}'
345 default: https://gerrit.opnfv.org/gerrit/$PROJECT
346 description: "Used for overriding the GIT URL coming from parameters macro."
354 use-build-blocker: false
364 - description-setter:
365 description: "Deployed on $NODE_NAME"
367 name: 'Baremetal Deploy'
370 - name: 'apex-deploy-baremetal-{stream}'
371 node-parameters: false
372 current-parameters: true
373 predefined-parameters: |
375 DEPLOY_SCENARIO={verify-scenario}
376 kill-phase-on: FAILURE
383 - name: 'functest-apex-baremetal-daily-{stream}'
384 node-parameters: true
385 current-parameters: false
386 predefined-parameters:
387 DEPLOY_SCENARIO={verify-scenario}
394 name: 'apex-build-{stream}'
396 # Job template for builds
398 # Required Variables:
399 # stream: branch with - in place of / (eg. stable)
400 # branch: branch (eg. stable)
401 node: '{build-slave}'
408 - '{project}-defaults'
413 gs-pathname: '{gs-pathname}'
428 properties-content: ARTIFACT_TYPE=rpm
429 - 'apex-upload-artifact'
433 name: 'apex-verify-iso-{stream}'
435 # Job template for builds
437 # Required Variables:
438 # stream: branch with - in place of / (eg. stable)
439 # branch: branch (eg. stable)
440 node: '{virtual-slave}'
451 gs-pathname: '{gs-pathname}'
454 default: https://gerrit.opnfv.org/gerrit/$PROJECT
455 description: "Used for overriding the GIT URL coming from parameters macro."
463 use-build-blocker: true
475 properties-content: ARTIFACT_TYPE=iso
476 - 'apex-upload-artifact'
480 name: 'apex-deploy-{platform}-{stream}'
482 # Job template for virtual deployment
484 # Required Variables:
485 # stream: branch with - in place of / (eg. stable)
486 # branch: branch (eg. stable)
487 node: 'apex-{platform}-{stream}'
501 gs-pathname: '{gs-pathname}'
503 name: DEPLOY_SCENARIO
504 default: '{verify-scenario}'
505 description: "Scenario to deploy with."
509 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
514 use-build-blocker: true
524 - description-setter:
525 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
526 - 'apex-download-artifact'
528 - 'apex-workspace-cleanup'
531 # Baremetal Deploy and Test
533 name: 'apex-deploy-test-baremetal-{stream}'
535 # Job template for daily build
537 # Required Variables:
538 # stream: branch with - in place of / (eg. stable)
539 # branch: branch (eg. stable)
540 project-type: 'multijob'
548 - '{project}-defaults'
549 - '{project}-baremetal-{stream}-defaults'
554 gs-pathname: '{gs-pathname}'
556 name: DEPLOY_SCENARIO
557 default: '{verify-scenario}'
558 description: "Scenario to deploy with."
562 use-build-blocker: true
568 - 'apex-.*-promote.*'
570 - description-setter:
571 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
573 name: 'Baremetal Deploy'
576 - name: 'apex-deploy-baremetal-{stream}'
577 node-parameters: true
578 current-parameters: true
579 predefined-parameters: |
581 kill-phase-on: FAILURE
588 - name: 'functest-apex-baremetal-daily-{stream}'
589 node-parameters: true
590 current-parameters: false
591 predefined-parameters:
592 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
600 - name: 'yardstick-apex-baremetal-daily-{stream}'
601 node-parameters: true
602 current-parameters: false
603 predefined-parameters:
604 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
609 {% for stream in scenarios %}
612 name: 'apex-daily-{{ stream }}'
614 # Job template for daily build
616 # Required Variables:
617 # stream: branch with - in place of / (eg. stable)
618 # branch: branch (eg. stable)
619 project-type: 'multijob'
621 node: '{build-slave}'
629 - '{project}-defaults'
630 - '{project}-baremetal-{{ stream }}-defaults'
633 branch: '{{ branch[stream] }}'
635 gs-pathname: '{{ gspathname[stream] }}'
640 use-build-blocker: true
646 - 'apex-.*-promote.*'
649 - 'apex-{{ stream }}'
654 condition: SUCCESSFUL
656 - name: 'apex-build-{{ stream }}'
657 current-parameters: false
658 predefined-parameters: |
659 GERRIT_BRANCH=$GERRIT_BRANCH
660 GERRIT_REFSPEC=$GERRIT_REFSPEC
661 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
662 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
663 node-parameters: true
664 kill-phase-on: FAILURE
668 name: 'Verify and upload ISO'
669 condition: SUCCESSFUL
671 - name: 'apex-verify-iso-{{ stream }}'
672 current-parameters: false
673 predefined-parameters: |
674 BUILD_DIRECTORY=apex-build-{{ stream }}/.build
675 GERRIT_BRANCH=$GERRIT_BRANCH
676 GERRIT_REFSPEC=$GERRIT_REFSPEC
677 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
678 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
679 node-parameters: true
680 kill-phase-on: FAILURE
684 name: Baremetal Deploy and Test Phase
685 condition: SUCCESSFUL
687 {% for scenario in scenarios[stream] %}
688 - name: 'apex-deploy-test-baremetal-{{ stream }}'
689 node-parameters: false
690 current-parameters: false
691 predefined-parameters: |
692 DEPLOY_SCENARIO={{scenario}}
702 name: 'apex-create-snapshot'
704 # Job template for clean
706 # Required Variables:
707 # stream: branch with - in place of / (eg. stable)
713 !include-raw-escape: ./apex-snapshot-create.sh
717 name: 'apex-upload-snapshot'
719 # Job template for clean
721 # Required Variables:
722 # stream: branch with - in place of / (eg. stable)
728 properties-content: ARTIFACT_TYPE=snapshot
729 - 'apex-upload-artifact'
733 name: 'apex-csit-promote-daily-{stream}'
735 # Job template for promoting CSIT Snapshots
737 # Required Variables:
738 # stream: branch with - in place of / (eg. stable)
739 # branch: branch (eg. stable)
740 node: '{virtual-slave}'
741 project-type: 'multijob'
752 gs-pathname: '{gs-pathname}'
756 use-build-blocker: true
766 - timed: '0 12 * * 0'
771 condition: SUCCESSFUL
773 - name: 'apex-build-{stream}'
774 current-parameters: false
775 predefined-parameters: |
776 GERRIT_BRANCH=$GERRIT_BRANCH
777 GERRIT_REFSPEC=$GERRIT_REFSPEC
778 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
779 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
780 node-parameters: false
781 kill-phase-on: FAILURE
786 condition: SUCCESSFUL
788 - name: 'apex-deploy-virtual-{stream}'
789 current-parameters: false
790 predefined-parameters: |
791 DEPLOY_SCENARIO=os-odl_l3-csit-noha
793 GERRIT_BRANCH=$GERRIT_BRANCH
794 GERRIT_REFSPEC=$GERRIT_REFSPEC
795 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
796 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
797 node-parameters: true
798 kill-phase-on: FAILURE
803 condition: SUCCESSFUL
805 - name: 'functest-apex-virtual-suite-{stream}'
806 current-parameters: false
807 predefined-parameters: |
808 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
809 FUNCTEST_SUITE_NAME=tempest_smoke_serial
810 GERRIT_BRANCH=$GERRIT_BRANCH
811 GERRIT_REFSPEC=$GERRIT_REFSPEC
812 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
813 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
814 node-parameters: true
815 kill-phase-on: FAILURE
819 name: create snapshot
820 condition: SUCCESSFUL
822 - name: 'apex-create-snapshot'
823 current-parameters: true
824 node-parameters: true
825 kill-phase-on: FAILURE
829 name: upload snapshot
830 condition: SUCCESSFUL
832 - name: 'apex-create-snapshot'
833 current-parameters: true
834 node-parameters: true
835 kill-phase-on: FAILURE
841 name: 'apex-fdio-promote-daily-{stream}'
843 # Job template for promoting CSIT Snapshots
845 # Required Variables:
846 # stream: branch with - in place of / (eg. stable)
847 # branch: branch (eg. stable)
848 node: '{virtual-slave}'
849 project-type: 'multijob'
860 gs-pathname: '{gs-pathname}'
864 use-build-blocker: true
876 condition: SUCCESSFUL
878 - name: 'apex-build-{stream}'
879 current-parameters: false
880 predefined-parameters: |
881 GERRIT_BRANCH=$GERRIT_BRANCH
882 GERRIT_REFSPEC=$GERRIT_REFSPEC
883 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
884 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
885 node-parameters: false
886 kill-phase-on: FAILURE
891 condition: SUCCESSFUL
893 - name: 'apex-deploy-virtual-{stream}'
894 current-parameters: false
895 predefined-parameters: |
896 DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
898 GERRIT_BRANCH=$GERRIT_BRANCH
899 GERRIT_REFSPEC=$GERRIT_REFSPEC
900 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
901 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
902 node-parameters: true
903 kill-phase-on: FAILURE
907 name: create snapshot
908 condition: SUCCESSFUL
910 - name: 'apex-create-snapshot'
911 current-parameters: true
912 node-parameters: true
913 kill-phase-on: FAILURE
917 name: upload snapshot
918 condition: SUCCESSFUL
920 - name: 'apex-create-snapshot'
921 current-parameters: true
922 node-parameters: true
923 kill-phase-on: FAILURE
928 name: 'apex-gs-clean-{stream}'
930 # Job template for clean
932 # Required Variables:
933 # stream: branch with - in place of / (eg. stable)
943 gs-pathname: '{gs-pathname}'
949 - 'apex-gs-clean-{stream}'
951 ########################
953 ########################
960 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
962 name: ARTIFACT_VERSION
964 description: "Artifact version type"
966 name: BUILD_DIRECTORY
967 default: $WORKSPACE/.build
968 description: "Directory where the build artifact will be located upon the completion of the build."
970 name: CACHE_DIRECTORY
971 default: $HOME/opnfv/cache{gs-pathname}
972 description: "Directory where the cache to be used during the build is located."
975 default: https://gerrit.opnfv.org/gerrit/$PROJECT
976 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
979 default: '{gs-pathname}'
980 description: "Version directory where opnfv artifacts are stored in gs repository"
983 default: $GS_BASE{gs-pathname}
984 description: "URL to Google Storage."
986 ########################
988 ########################
990 name: 'apex-unit-test'
993 !include-raw: ./apex-unit-test.sh
999 !include-raw: ./apex-build.sh
1002 name: 'apex-workspace-cleanup'
1005 !include-raw: ./apex-workspace-cleanup.sh
1008 name: 'apex-iso-verify'
1011 !include-raw: ./apex-iso-verify.sh
1015 name: 'apex-upload-artifact'
1018 !include-raw: ./apex-upload-artifact.sh
1021 name: 'apex-download-artifact'
1024 !include-raw: ./apex-download-artifact.sh
1027 name: 'apex-gs-cleanup'
1030 !include-raw: ./apex-gs-cleanup.sh
1036 !include-raw: ./apex-deploy.sh
1038 #######################
1040 ########################
1044 - timed: '0 3 1 1 7'
1048 - timed: '0 12 * * *'
1050 name: 'apex-gs-clean-{stream}'
1052 - timed: '0 2 * * *'