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 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 DEPLOY_SCENARIO={verify-scenario}
203 GERRIT_BRANCH=$GERRIT_BRANCH
204 GERRIT_REFSPEC=$GERRIT_REFSPEC
205 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
206 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
207 node-parameters: false
208 kill-phase-on: FAILURE
213 condition: SUCCESSFUL
215 - name: 'functest-apex-virtual-suite-{stream}'
216 current-parameters: false
217 predefined-parameters: |
218 DEPLOY_SCENARIO={verify-scenario}
219 FUNCTEST_SUITE_NAME=healthcheck
220 GERRIT_BRANCH=$GERRIT_BRANCH
221 GERRIT_REFSPEC=$GERRIT_REFSPEC
222 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
223 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
224 node-parameters: false
225 kill-phase-on: FAILURE
229 # Verify Scenario Gate
231 name: 'apex-verify-gate-{stream}'
233 node: '{virtual-slave}'
237 project-type: 'multijob'
241 gs-pathname: '{gs-pathname}/dev'
247 default: https://gerrit.opnfv.org/gerrit/$PROJECT
248 description: "Used for overriding the GIT URL coming from parameters macro."
255 server-name: 'gerrit.opnfv.org'
257 - comment-added-contains-event:
258 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
260 - project-compare-type: 'ANT'
261 project-pattern: 'apex'
263 - branch-compare-type: 'ANT'
264 branch-pattern: '**/{branch}'
278 use-build-blocker: true
294 condition: SUCCESSFUL
296 - name: 'apex-deploy-virtual-{stream}'
297 current-parameters: false
298 predefined-parameters: |
301 GERRIT_BRANCH=$GERRIT_BRANCH
302 GERRIT_REFSPEC=$GERRIT_REFSPEC
303 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
304 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
305 node-parameters: false
306 kill-phase-on: FAILURE
311 condition: SUCCESSFUL
313 - name: 'functest-apex-virtual-suite-{stream}'
314 current-parameters: false
315 predefined-parameters: |
316 DEPLOY_SCENARIO={verify-scenario}
317 FUNCTEST_SUITE_NAME=healthcheck
318 GERRIT_BRANCH=$GERRIT_BRANCH
319 GERRIT_REFSPEC=$GERRIT_REFSPEC
320 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
321 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
322 node-parameters: false
323 kill-phase-on: FAILURE
328 name: 'apex-runner-cperf-{stream}'
331 project-type: 'multijob'
338 gs-pathname: '{gs-pathname}'
344 default: https://gerrit.opnfv.org/gerrit/$PROJECT
345 description: "Used for overriding the GIT URL coming from parameters macro."
353 use-build-blocker: false
363 - description-setter:
364 description: "Deployed on $NODE_NAME"
366 name: 'Baremetal Deploy'
369 - name: 'apex-deploy-baremetal-{stream}'
370 node-parameters: false
371 current-parameters: true
372 predefined-parameters: |
374 DEPLOY_SCENARIO={verify-scenario}
375 kill-phase-on: FAILURE
382 - name: 'functest-apex-baremetal-daily-{stream}'
383 node-parameters: true
384 current-parameters: false
385 predefined-parameters:
386 DEPLOY_SCENARIO={verify-scenario}
393 name: 'apex-build-{stream}'
395 # Job template for builds
397 # Required Variables:
398 # stream: branch with - in place of / (eg. stable)
399 # branch: branch (eg. stable)
400 node: '{build-slave}'
407 - '{project}-defaults'
412 gs-pathname: '{gs-pathname}'
427 properties-content: ARTIFACT_TYPE=rpm
428 - 'apex-upload-artifact'
432 name: 'apex-verify-iso-{stream}'
434 # Job template for builds
436 # Required Variables:
437 # stream: branch with - in place of / (eg. stable)
438 # branch: branch (eg. stable)
439 node: '{virtual-slave}'
450 gs-pathname: '{gs-pathname}'
453 default: https://gerrit.opnfv.org/gerrit/$PROJECT
454 description: "Used for overriding the GIT URL coming from parameters macro."
462 use-build-blocker: true
474 properties-content: ARTIFACT_TYPE=iso
475 - 'apex-upload-artifact'
479 name: 'apex-deploy-{platform}-{stream}'
481 # Job template for virtual deployment
483 # Required Variables:
484 # stream: branch with - in place of / (eg. stable)
485 # branch: branch (eg. stable)
486 node: 'apex-{platform}-{stream}'
500 gs-pathname: '{gs-pathname}'
502 name: DEPLOY_SCENARIO
503 default: '{verify-scenario}'
504 description: "Scenario to deploy with."
508 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
513 use-build-blocker: true
523 - description-setter:
524 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
525 - 'apex-download-artifact'
527 - 'apex-workspace-cleanup'
530 # Baremetal Deploy and Test
532 name: 'apex-deploy-test-baremetal-{stream}'
534 # Job template for daily build
536 # Required Variables:
537 # stream: branch with - in place of / (eg. stable)
538 # branch: branch (eg. stable)
539 project-type: 'multijob'
547 - '{project}-defaults'
548 - '{project}-baremetal-{stream}-defaults'
553 gs-pathname: '{gs-pathname}'
555 name: DEPLOY_SCENARIO
556 default: '{verify-scenario}'
557 description: "Scenario to deploy with."
561 use-build-blocker: true
567 - 'apex-.*-promote.*'
569 - description-setter:
570 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
572 name: 'Baremetal Deploy'
575 - name: 'apex-deploy-baremetal-{stream}'
576 node-parameters: true
577 current-parameters: true
578 predefined-parameters: |
580 kill-phase-on: FAILURE
587 - name: 'functest-apex-baremetal-daily-{stream}'
588 node-parameters: true
589 current-parameters: false
590 predefined-parameters:
591 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
599 - name: 'yardstick-apex-baremetal-daily-{stream}'
600 node-parameters: true
601 current-parameters: false
602 predefined-parameters:
603 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
608 {% for stream in scenarios %}
611 name: 'apex-daily-{{ stream }}'
613 # Job template for daily build
615 # Required Variables:
616 # stream: branch with - in place of / (eg. stable)
617 # branch: branch (eg. stable)
618 project-type: 'multijob'
620 node: '{{ build_slave[stream] }}'
628 - '{project}-defaults'
629 - '{project}-baremetal-{{ stream }}-defaults'
632 branch: '{{ branch[stream] }}'
634 gs-pathname: '{{ gspathname[stream] }}'
640 - 'apex-{{ stream }}'
645 condition: SUCCESSFUL
647 - name: 'apex-build-{{ stream }}'
648 current-parameters: false
649 predefined-parameters: |
650 GERRIT_BRANCH=$GERRIT_BRANCH
651 GERRIT_REFSPEC=$GERRIT_REFSPEC
652 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
653 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
654 node-parameters: true
655 kill-phase-on: FAILURE
659 name: 'Verify and upload ISO'
660 condition: SUCCESSFUL
662 - name: 'apex-verify-iso-{{ stream }}'
663 current-parameters: false
664 predefined-parameters: |
665 BUILD_DIRECTORY=apex-build-{{ stream }}/.build
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: Baremetal Deploy and Test Phase
676 condition: SUCCESSFUL
678 {% for scenario in scenarios[stream] %}
679 - name: 'apex-deploy-test-baremetal-{{ stream }}'
680 node-parameters: false
681 current-parameters: false
682 predefined-parameters: |
683 DEPLOY_SCENARIO={{scenario}}
693 name: 'apex-create-snapshot'
695 # Job template for clean
697 # Required Variables:
698 # stream: branch with - in place of / (eg. stable)
704 !include-raw-escape: ./apex-snapshot-create.sh
708 name: 'apex-upload-snapshot'
710 # Job template for clean
712 # Required Variables:
713 # stream: branch with - in place of / (eg. stable)
719 properties-content: ARTIFACT_TYPE=snapshot
720 - 'apex-upload-artifact'
724 name: 'apex-csit-promote-daily-{stream}'
726 # Job template for promoting CSIT Snapshots
728 # Required Variables:
729 # stream: branch with - in place of / (eg. stable)
730 # branch: branch (eg. stable)
731 node: '{virtual-slave}'
732 project-type: 'multijob'
743 gs-pathname: '{gs-pathname}'
747 use-build-blocker: true
757 - timed: '0 12 * * 0'
762 condition: SUCCESSFUL
764 - name: 'apex-build-{stream}'
765 current-parameters: false
766 predefined-parameters: |
767 GERRIT_BRANCH=$GERRIT_BRANCH
768 GERRIT_REFSPEC=$GERRIT_REFSPEC
769 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
770 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
771 node-parameters: false
772 kill-phase-on: FAILURE
777 condition: SUCCESSFUL
779 - name: 'apex-deploy-virtual-{stream}'
780 current-parameters: false
781 predefined-parameters: |
782 DEPLOY_SCENARIO=os-odl_l3-csit-noha
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: true
789 kill-phase-on: FAILURE
794 condition: SUCCESSFUL
796 - name: 'functest-apex-virtual-suite-{stream}'
797 current-parameters: false
798 predefined-parameters: |
799 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
800 FUNCTEST_SUITE_NAME=tempest_smoke_serial
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
810 name: create snapshot
811 condition: SUCCESSFUL
813 - name: 'apex-create-snapshot'
814 current-parameters: true
815 node-parameters: true
816 kill-phase-on: FAILURE
820 name: upload snapshot
821 condition: SUCCESSFUL
823 - name: 'apex-upload-snapshot'
824 current-parameters: true
825 node-parameters: true
826 kill-phase-on: FAILURE
832 name: 'apex-fdio-promote-daily-{stream}'
834 # Job template for promoting CSIT Snapshots
836 # Required Variables:
837 # stream: branch with - in place of / (eg. stable)
838 # branch: branch (eg. stable)
839 node: '{virtual-slave}'
840 project-type: 'multijob'
851 gs-pathname: '{gs-pathname}'
855 use-build-blocker: true
867 condition: SUCCESSFUL
869 - name: 'apex-build-{stream}'
870 current-parameters: false
871 predefined-parameters: |
872 GERRIT_BRANCH=$GERRIT_BRANCH
873 GERRIT_REFSPEC=$GERRIT_REFSPEC
874 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
875 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
876 node-parameters: false
877 kill-phase-on: FAILURE
882 condition: SUCCESSFUL
884 - name: 'apex-deploy-virtual-{stream}'
885 current-parameters: false
886 predefined-parameters: |
887 DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
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: true
894 kill-phase-on: FAILURE
898 name: create snapshot
899 condition: SUCCESSFUL
901 - name: 'apex-create-snapshot'
902 current-parameters: true
903 node-parameters: true
904 kill-phase-on: FAILURE
908 name: upload snapshot
909 condition: SUCCESSFUL
911 - name: 'apex-upload-snapshot'
912 current-parameters: true
913 node-parameters: true
914 kill-phase-on: FAILURE
919 name: 'apex-gs-clean-{stream}'
921 # Job template for clean
923 # Required Variables:
924 # stream: branch with - in place of / (eg. stable)
934 gs-pathname: '{gs-pathname}'
940 - 'apex-gs-clean-{stream}'
942 ########################
944 ########################
951 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
953 name: ARTIFACT_VERSION
955 description: "Artifact version type"
957 name: BUILD_DIRECTORY
958 default: $WORKSPACE/.build
959 description: "Directory where the build artifact will be located upon the completion of the build."
961 name: CACHE_DIRECTORY
962 default: $HOME/opnfv/cache{gs-pathname}
963 description: "Directory where the cache to be used during the build is located."
966 default: https://gerrit.opnfv.org/gerrit/$PROJECT
967 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
970 default: '{gs-pathname}'
971 description: "Version directory where opnfv artifacts are stored in gs repository"
974 default: $GS_BASE{gs-pathname}
975 description: "URL to Google Storage."
977 ########################
979 ########################
981 name: 'apex-unit-test'
984 !include-raw: ./apex-unit-test.sh
990 !include-raw: ./apex-build.sh
993 name: 'apex-workspace-cleanup'
996 !include-raw: ./apex-workspace-cleanup.sh
999 name: 'apex-iso-verify'
1002 !include-raw: ./apex-iso-verify.sh
1006 name: 'apex-upload-artifact'
1009 !include-raw: ./apex-upload-artifact.sh
1012 name: 'apex-download-artifact'
1015 !include-raw: ./apex-download-artifact.sh
1018 name: 'apex-gs-cleanup'
1021 !include-raw: ./apex-gs-cleanup.sh
1027 !include-raw: ./apex-deploy.sh
1029 #######################
1031 ########################
1035 - timed: '0 3 1 1 7'
1039 - timed: '0 12 * * *'
1041 name: 'apex-gs-clean-{stream}'
1043 - timed: '0 2 * * *'