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 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}'
433 properties-content: ARTIFACT_TYPE=rpm
434 - 'apex-upload-artifact'
438 name: 'apex-verify-iso-{stream}'
440 # Job template for builds
442 # Required Variables:
443 # stream: branch with - in place of / (eg. stable)
444 # branch: branch (eg. stable)
445 node: '{virtual-slave}'
456 gs-pathname: '{gs-pathname}'
459 default: https://gerrit.opnfv.org/gerrit/$PROJECT
460 description: "Used for overriding the GIT URL coming from parameters macro."
468 use-build-blocker: true
480 properties-content: ARTIFACT_TYPE=iso
481 - 'apex-upload-artifact'
485 name: 'apex-deploy-{platform}-{stream}'
487 # Job template for virtual deployment
489 # Required Variables:
490 # stream: branch with - in place of / (eg. stable)
491 # branch: branch (eg. stable)
492 node: 'apex-{platform}-{stream}'
511 gs-pathname: '{gs-pathname}'
513 name: DEPLOY_SCENARIO
514 default: '{verify-scenario}'
515 description: "Scenario to deploy with."
519 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
524 use-build-blocker: true
534 - description-setter:
535 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
536 - 'apex-download-artifact'
538 - 'apex-workspace-cleanup'
541 # Baremetal Deploy and Test
543 name: 'apex-deploy-test-baremetal-{stream}'
545 # Job template for daily build
547 # Required Variables:
548 # stream: branch with - in place of / (eg. stable)
549 # branch: branch (eg. stable)
550 project-type: 'multijob'
558 - '{project}-defaults'
559 - '{project}-baremetal-{stream}-defaults'
564 gs-pathname: '{gs-pathname}'
566 name: DEPLOY_SCENARIO
567 default: '{verify-scenario}'
568 description: "Scenario to deploy with."
572 use-build-blocker: true
578 - 'apex-.*-promote.*'
580 - description-setter:
581 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
583 name: 'Baremetal Deploy'
586 - name: 'apex-deploy-baremetal-{stream}'
587 node-parameters: true
588 current-parameters: true
589 predefined-parameters: |
591 kill-phase-on: FAILURE
598 - name: 'functest-apex-baremetal-daily-{stream}'
599 node-parameters: true
600 current-parameters: false
601 predefined-parameters:
602 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
610 - name: 'yardstick-apex-baremetal-daily-{stream}'
611 node-parameters: true
612 current-parameters: false
613 predefined-parameters:
614 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
619 {% for stream in scenarios %}
622 name: 'apex-daily-{{ stream }}'
624 # Job template for daily build
626 # Required Variables:
627 # stream: branch with - in place of / (eg. stable)
628 # branch: branch (eg. stable)
629 project-type: 'multijob'
631 node: '{{ build_slave[stream] }}'
639 - '{project}-defaults'
640 - '{project}-baremetal-{{ stream }}-defaults'
643 branch: '{{ branch[stream] }}'
645 gs-pathname: '{{ gspathname[stream] }}'
651 - 'apex-{{ stream }}'
656 condition: SUCCESSFUL
658 - name: 'apex-build-{{ stream }}'
659 current-parameters: false
660 predefined-parameters: |
661 GERRIT_BRANCH=$GERRIT_BRANCH
662 GERRIT_REFSPEC=$GERRIT_REFSPEC
663 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
664 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
665 node-parameters: true
666 kill-phase-on: FAILURE
670 name: 'Verify and upload ISO'
671 condition: SUCCESSFUL
673 - name: 'apex-verify-iso-{{ stream }}'
674 current-parameters: false
675 predefined-parameters: |
676 BUILD_DIRECTORY=apex-build-{{ stream }}/.build
677 GERRIT_BRANCH=$GERRIT_BRANCH
678 GERRIT_REFSPEC=$GERRIT_REFSPEC
679 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
680 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
681 node-parameters: true
682 kill-phase-on: FAILURE
686 name: Baremetal Deploy and Test Phase
687 condition: SUCCESSFUL
689 {% for scenario in scenarios[stream] %}
690 - name: 'apex-deploy-test-baremetal-{{ stream }}'
691 node-parameters: false
692 current-parameters: false
693 predefined-parameters: |
694 DEPLOY_SCENARIO={{scenario}}
704 name: 'apex-create-snapshot'
706 # Job template for clean
708 # Required Variables:
709 # stream: branch with - in place of / (eg. stable)
715 !include-raw-escape: ./apex-snapshot-create.sh
719 name: 'apex-upload-snapshot'
721 # Job template for clean
723 # Required Variables:
724 # stream: branch with - in place of / (eg. stable)
730 properties-content: ARTIFACT_TYPE=snapshot
731 - 'apex-upload-artifact'
735 name: 'apex-csit-promote-daily-{stream}'
737 # Job template for promoting CSIT Snapshots
739 # Required Variables:
740 # stream: branch with - in place of / (eg. stable)
741 # branch: branch (eg. stable)
742 node: '{virtual-slave}'
743 project-type: 'multijob'
754 gs-pathname: '{gs-pathname}'
758 use-build-blocker: true
768 - timed: '0 12 * * 0'
773 condition: SUCCESSFUL
775 - name: 'apex-build-{stream}'
776 current-parameters: false
777 predefined-parameters: |
778 GERRIT_BRANCH=$GERRIT_BRANCH
779 GERRIT_REFSPEC=$GERRIT_REFSPEC
780 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
781 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
782 node-parameters: false
783 kill-phase-on: FAILURE
788 condition: SUCCESSFUL
790 - name: 'apex-deploy-virtual-{stream}'
791 current-parameters: false
792 predefined-parameters: |
793 DEPLOY_SCENARIO=os-odl_l3-csit-noha
795 GERRIT_BRANCH=$GERRIT_BRANCH
796 GERRIT_REFSPEC=$GERRIT_REFSPEC
797 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
798 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
799 node-parameters: true
800 kill-phase-on: FAILURE
805 condition: SUCCESSFUL
807 - name: 'functest-apex-virtual-suite-{stream}'
808 current-parameters: false
809 predefined-parameters: |
810 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
811 FUNCTEST_SUITE_NAME=tempest_smoke_serial
812 GERRIT_BRANCH=$GERRIT_BRANCH
813 GERRIT_REFSPEC=$GERRIT_REFSPEC
814 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
815 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
816 node-parameters: true
817 kill-phase-on: FAILURE
821 name: create snapshot
822 condition: SUCCESSFUL
824 - name: 'apex-create-snapshot'
825 current-parameters: true
826 node-parameters: true
827 kill-phase-on: FAILURE
831 name: upload snapshot
832 condition: SUCCESSFUL
834 - name: 'apex-upload-snapshot'
835 current-parameters: true
836 node-parameters: true
837 kill-phase-on: FAILURE
843 name: 'apex-fdio-promote-daily-{stream}'
845 # Job template for promoting CSIT Snapshots
847 # Required Variables:
848 # stream: branch with - in place of / (eg. stable)
849 # branch: branch (eg. stable)
850 node: '{virtual-slave}'
851 project-type: 'multijob'
862 gs-pathname: '{gs-pathname}'
866 use-build-blocker: true
878 condition: SUCCESSFUL
880 - name: 'apex-build-{stream}'
881 current-parameters: false
882 predefined-parameters: |
883 GERRIT_BRANCH=$GERRIT_BRANCH
884 GERRIT_REFSPEC=$GERRIT_REFSPEC
885 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
886 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
887 node-parameters: false
888 kill-phase-on: FAILURE
893 condition: SUCCESSFUL
895 - name: 'apex-deploy-virtual-{stream}'
896 current-parameters: false
897 predefined-parameters: |
898 DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
900 GERRIT_BRANCH=$GERRIT_BRANCH
901 GERRIT_REFSPEC=$GERRIT_REFSPEC
902 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
903 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
904 node-parameters: true
905 kill-phase-on: FAILURE
909 name: create snapshot
910 condition: SUCCESSFUL
912 - name: 'apex-create-snapshot'
913 current-parameters: true
914 node-parameters: true
915 kill-phase-on: FAILURE
919 name: upload snapshot
920 condition: SUCCESSFUL
922 - name: 'apex-upload-snapshot'
923 current-parameters: true
924 node-parameters: true
925 kill-phase-on: FAILURE
930 name: 'apex-gs-clean-{stream}'
932 # Job template for clean
934 # Required Variables:
935 # stream: branch with - in place of / (eg. stable)
945 gs-pathname: '{gs-pathname}'
951 - 'apex-gs-clean-{stream}'
953 ########################
955 ########################
962 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
964 name: ARTIFACT_VERSION
966 description: "Artifact version type"
968 name: BUILD_DIRECTORY
969 default: $WORKSPACE/.build
970 description: "Directory where the build artifact will be located upon the completion of the build."
972 name: CACHE_DIRECTORY
973 default: $HOME/opnfv/cache{gs-pathname}
974 description: "Directory where the cache to be used during the build is located."
977 default: https://gerrit.opnfv.org/gerrit/$PROJECT
978 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
981 default: '{gs-pathname}'
982 description: "Version directory where opnfv artifacts are stored in gs repository"
985 default: $GS_BASE{gs-pathname}
986 description: "URL to Google Storage."
988 ########################
990 ########################
992 name: 'apex-unit-test'
995 !include-raw: ./apex-unit-test.sh
1001 !include-raw: ./apex-build.sh
1004 name: 'apex-workspace-cleanup'
1007 !include-raw: ./apex-workspace-cleanup.sh
1010 name: 'apex-iso-verify'
1013 !include-raw: ./apex-iso-verify.sh
1017 name: 'apex-upload-artifact'
1020 !include-raw: ./apex-upload-artifact.sh
1023 name: 'apex-download-artifact'
1026 !include-raw: ./apex-download-artifact.sh
1029 name: 'apex-gs-cleanup'
1032 !include-raw: ./apex-gs-cleanup.sh
1038 !include-raw: ./apex-deploy.sh
1040 #######################
1042 ########################
1046 - timed: '0 3 1 1 7'
1050 - timed: '0 12 * * *'
1052 name: 'apex-gs-clean-{stream}'
1054 - timed: '0 2 * * *'