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] }}'
641 - 'apex-{{ stream }}'
646 condition: SUCCESSFUL
648 - name: 'apex-build-{{ stream }}'
649 current-parameters: false
650 predefined-parameters: |
651 GERRIT_BRANCH=$GERRIT_BRANCH
652 GERRIT_REFSPEC=$GERRIT_REFSPEC
653 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
654 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
655 node-parameters: true
656 kill-phase-on: FAILURE
660 name: 'Verify and upload ISO'
661 condition: SUCCESSFUL
663 - name: 'apex-verify-iso-{{ stream }}'
664 current-parameters: false
665 predefined-parameters: |
666 BUILD_DIRECTORY=apex-build-{{ stream }}/.build
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: Baremetal Deploy and Test Phase
677 condition: SUCCESSFUL
679 {% for scenario in scenarios[stream] %}
680 - name: 'apex-deploy-test-baremetal-{{ stream }}'
681 node-parameters: false
682 current-parameters: false
683 predefined-parameters: |
684 DEPLOY_SCENARIO={{scenario}}
694 name: 'apex-create-snapshot'
696 # Job template for clean
698 # Required Variables:
699 # stream: branch with - in place of / (eg. stable)
705 !include-raw-escape: ./apex-snapshot-create.sh
709 name: 'apex-upload-snapshot'
711 # Job template for clean
713 # Required Variables:
714 # stream: branch with - in place of / (eg. stable)
720 properties-content: ARTIFACT_TYPE=snapshot
721 - 'apex-upload-artifact'
725 name: 'apex-csit-promote-daily-{stream}'
727 # Job template for promoting CSIT Snapshots
729 # Required Variables:
730 # stream: branch with - in place of / (eg. stable)
731 # branch: branch (eg. stable)
732 node: '{virtual-slave}'
733 project-type: 'multijob'
744 gs-pathname: '{gs-pathname}'
748 use-build-blocker: true
758 - timed: '0 12 * * 0'
763 condition: SUCCESSFUL
765 - name: 'apex-build-{stream}'
766 current-parameters: false
767 predefined-parameters: |
768 GERRIT_BRANCH=$GERRIT_BRANCH
769 GERRIT_REFSPEC=$GERRIT_REFSPEC
770 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
771 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
772 node-parameters: false
773 kill-phase-on: FAILURE
778 condition: SUCCESSFUL
780 - name: 'apex-deploy-virtual-{stream}'
781 current-parameters: false
782 predefined-parameters: |
783 DEPLOY_SCENARIO=os-odl_l3-csit-noha
785 GERRIT_BRANCH=$GERRIT_BRANCH
786 GERRIT_REFSPEC=$GERRIT_REFSPEC
787 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
788 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
789 node-parameters: true
790 kill-phase-on: FAILURE
795 condition: SUCCESSFUL
797 - name: 'functest-apex-virtual-suite-{stream}'
798 current-parameters: false
799 predefined-parameters: |
800 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
801 FUNCTEST_SUITE_NAME=tempest_smoke_serial
802 GERRIT_BRANCH=$GERRIT_BRANCH
803 GERRIT_REFSPEC=$GERRIT_REFSPEC
804 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
805 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
806 node-parameters: true
807 kill-phase-on: FAILURE
811 name: create snapshot
812 condition: SUCCESSFUL
814 - name: 'apex-create-snapshot'
815 current-parameters: true
816 node-parameters: true
817 kill-phase-on: FAILURE
821 name: upload snapshot
822 condition: SUCCESSFUL
824 - name: 'apex-upload-snapshot'
825 current-parameters: true
826 node-parameters: true
827 kill-phase-on: FAILURE
833 name: 'apex-fdio-promote-daily-{stream}'
835 # Job template for promoting CSIT Snapshots
837 # Required Variables:
838 # stream: branch with - in place of / (eg. stable)
839 # branch: branch (eg. stable)
840 node: '{virtual-slave}'
841 project-type: 'multijob'
852 gs-pathname: '{gs-pathname}'
856 use-build-blocker: true
868 condition: SUCCESSFUL
870 - name: 'apex-build-{stream}'
871 current-parameters: false
872 predefined-parameters: |
873 GERRIT_BRANCH=$GERRIT_BRANCH
874 GERRIT_REFSPEC=$GERRIT_REFSPEC
875 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
876 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
877 node-parameters: false
878 kill-phase-on: FAILURE
883 condition: SUCCESSFUL
885 - name: 'apex-deploy-virtual-{stream}'
886 current-parameters: false
887 predefined-parameters: |
888 DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
890 GERRIT_BRANCH=$GERRIT_BRANCH
891 GERRIT_REFSPEC=$GERRIT_REFSPEC
892 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
893 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
894 node-parameters: true
895 kill-phase-on: FAILURE
899 name: create snapshot
900 condition: SUCCESSFUL
902 - name: 'apex-create-snapshot'
903 current-parameters: true
904 node-parameters: true
905 kill-phase-on: FAILURE
909 name: upload snapshot
910 condition: SUCCESSFUL
912 - name: 'apex-upload-snapshot'
913 current-parameters: true
914 node-parameters: true
915 kill-phase-on: FAILURE
920 name: 'apex-gs-clean-{stream}'
922 # Job template for clean
924 # Required Variables:
925 # stream: branch with - in place of / (eg. stable)
935 gs-pathname: '{gs-pathname}'
941 - 'apex-gs-clean-{stream}'
943 ########################
945 ########################
952 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
954 name: ARTIFACT_VERSION
956 description: "Artifact version type"
958 name: BUILD_DIRECTORY
959 default: $WORKSPACE/.build
960 description: "Directory where the build artifact will be located upon the completion of the build."
962 name: CACHE_DIRECTORY
963 default: $HOME/opnfv/cache{gs-pathname}
964 description: "Directory where the cache to be used during the build is located."
967 default: https://gerrit.opnfv.org/gerrit/$PROJECT
968 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
971 default: '{gs-pathname}'
972 description: "Version directory where opnfv artifacts are stored in gs repository"
975 default: $GS_BASE{gs-pathname}
976 description: "URL to Google Storage."
978 ########################
980 ########################
982 name: 'apex-unit-test'
985 !include-raw: ./apex-unit-test.sh
991 !include-raw: ./apex-build.sh
994 name: 'apex-workspace-cleanup'
997 !include-raw: ./apex-workspace-cleanup.sh
1000 name: 'apex-iso-verify'
1003 !include-raw: ./apex-iso-verify.sh
1007 name: 'apex-upload-artifact'
1010 !include-raw: ./apex-upload-artifact.sh
1013 name: 'apex-download-artifact'
1016 !include-raw: ./apex-download-artifact.sh
1019 name: 'apex-gs-cleanup'
1022 !include-raw: ./apex-gs-cleanup.sh
1028 !include-raw: ./apex-deploy.sh
1030 #######################
1032 ########################
1036 - timed: '0 3 1 1 7'
1040 - timed: '0 12 * * *'
1042 name: 'apex-gs-clean-{stream}'
1044 - timed: '0 2 * * *'