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}'
432 properties-content: ARTIFACT_TYPE=rpm
433 - 'apex-upload-artifact'
437 name: 'apex-verify-iso-{stream}'
439 # Job template for builds
441 # Required Variables:
442 # stream: branch with - in place of / (eg. stable)
443 # branch: branch (eg. stable)
444 node: '{virtual-slave}'
455 gs-pathname: '{gs-pathname}'
458 default: https://gerrit.opnfv.org/gerrit/$PROJECT
459 description: "Used for overriding the GIT URL coming from parameters macro."
467 use-build-blocker: true
479 properties-content: ARTIFACT_TYPE=iso
480 - 'apex-upload-artifact'
484 name: 'apex-deploy-{platform}-{stream}'
486 # Job template for virtual deployment
488 # Required Variables:
489 # stream: branch with - in place of / (eg. stable)
490 # branch: branch (eg. stable)
491 node: 'apex-{platform}-{stream}'
510 gs-pathname: '{gs-pathname}'
512 name: DEPLOY_SCENARIO
513 default: '{verify-scenario}'
514 description: "Scenario to deploy with."
518 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
523 use-build-blocker: true
533 - description-setter:
534 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
535 - 'apex-download-artifact'
537 - 'apex-workspace-cleanup'
540 # Baremetal Deploy and Test
542 name: 'apex-deploy-test-baremetal-{stream}'
544 # Job template for daily build
546 # Required Variables:
547 # stream: branch with - in place of / (eg. stable)
548 # branch: branch (eg. stable)
549 project-type: 'multijob'
557 - '{project}-defaults'
558 - '{project}-baremetal-{stream}-defaults'
563 gs-pathname: '{gs-pathname}'
565 name: DEPLOY_SCENARIO
566 default: '{verify-scenario}'
567 description: "Scenario to deploy with."
571 use-build-blocker: true
577 - 'apex-.*-promote.*'
579 - description-setter:
580 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
582 name: 'Baremetal Deploy'
585 - name: 'apex-deploy-baremetal-{stream}'
586 node-parameters: true
587 current-parameters: true
588 predefined-parameters: |
590 kill-phase-on: FAILURE
597 - name: 'functest-apex-baremetal-daily-{stream}'
598 node-parameters: true
599 current-parameters: false
600 predefined-parameters:
601 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
609 - name: 'yardstick-apex-baremetal-daily-{stream}'
610 node-parameters: true
611 current-parameters: false
612 predefined-parameters:
613 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
618 {% for stream in scenarios %}
621 name: 'apex-daily-{{ stream }}'
623 # Job template for daily build
625 # Required Variables:
626 # stream: branch with - in place of / (eg. stable)
627 # branch: branch (eg. stable)
628 project-type: 'multijob'
630 node: '{{ build_slave[stream] }}'
638 - '{project}-defaults'
639 - '{project}-baremetal-{{ stream }}-defaults'
642 branch: '{{ branch[stream] }}'
644 gs-pathname: '{{ gspathname[stream] }}'
650 - 'apex-{{ stream }}'
655 condition: SUCCESSFUL
657 - name: 'apex-build-{{ stream }}'
658 current-parameters: false
659 predefined-parameters: |
660 GERRIT_BRANCH=$GERRIT_BRANCH
661 GERRIT_REFSPEC=$GERRIT_REFSPEC
662 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
663 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
664 node-parameters: true
665 kill-phase-on: FAILURE
669 name: 'Verify and upload ISO'
670 condition: SUCCESSFUL
672 - name: 'apex-verify-iso-{{ stream }}'
673 current-parameters: false
674 predefined-parameters: |
675 BUILD_DIRECTORY=apex-build-{{ stream }}/.build
676 GERRIT_BRANCH=$GERRIT_BRANCH
677 GERRIT_REFSPEC=$GERRIT_REFSPEC
678 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
679 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
680 node-parameters: true
681 kill-phase-on: FAILURE
685 name: Baremetal Deploy and Test Phase
686 condition: SUCCESSFUL
688 {% for scenario in scenarios[stream] %}
689 - name: 'apex-deploy-test-baremetal-{{ stream }}'
690 node-parameters: false
691 current-parameters: false
692 predefined-parameters: |
693 DEPLOY_SCENARIO={{scenario}}
703 name: 'apex-create-snapshot'
705 # Job template for clean
707 # Required Variables:
708 # stream: branch with - in place of / (eg. stable)
714 !include-raw-escape: ./apex-snapshot-create.sh
718 name: 'apex-upload-snapshot'
720 # Job template for clean
722 # Required Variables:
723 # stream: branch with - in place of / (eg. stable)
729 properties-content: ARTIFACT_TYPE=snapshot
730 - 'apex-upload-artifact'
734 name: 'apex-csit-promote-daily-{stream}'
736 # Job template for promoting CSIT Snapshots
738 # Required Variables:
739 # stream: branch with - in place of / (eg. stable)
740 # branch: branch (eg. stable)
741 node: '{virtual-slave}'
742 project-type: 'multijob'
753 gs-pathname: '{gs-pathname}'
757 use-build-blocker: true
767 - timed: '0 12 * * 0'
772 condition: SUCCESSFUL
774 - name: 'apex-build-{stream}'
775 current-parameters: false
776 predefined-parameters: |
777 GERRIT_BRANCH=$GERRIT_BRANCH
778 GERRIT_REFSPEC=$GERRIT_REFSPEC
779 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
780 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
781 node-parameters: false
782 kill-phase-on: FAILURE
787 condition: SUCCESSFUL
789 - name: 'apex-deploy-virtual-{stream}'
790 current-parameters: false
791 predefined-parameters: |
792 DEPLOY_SCENARIO=os-odl_l3-csit-noha
794 GERRIT_BRANCH=$GERRIT_BRANCH
795 GERRIT_REFSPEC=$GERRIT_REFSPEC
796 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
797 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
798 node-parameters: true
799 kill-phase-on: FAILURE
804 condition: SUCCESSFUL
806 - name: 'functest-apex-virtual-suite-{stream}'
807 current-parameters: false
808 predefined-parameters: |
809 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
810 FUNCTEST_SUITE_NAME=tempest_smoke_serial
811 GERRIT_BRANCH=$GERRIT_BRANCH
812 GERRIT_REFSPEC=$GERRIT_REFSPEC
813 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
814 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
815 node-parameters: true
816 kill-phase-on: FAILURE
820 name: create snapshot
821 condition: SUCCESSFUL
823 - name: 'apex-create-snapshot'
824 current-parameters: true
825 node-parameters: true
826 kill-phase-on: FAILURE
830 name: upload snapshot
831 condition: SUCCESSFUL
833 - name: 'apex-upload-snapshot'
834 current-parameters: true
835 node-parameters: true
836 kill-phase-on: FAILURE
842 name: 'apex-fdio-promote-daily-{stream}'
844 # Job template for promoting CSIT Snapshots
846 # Required Variables:
847 # stream: branch with - in place of / (eg. stable)
848 # branch: branch (eg. stable)
849 node: '{virtual-slave}'
850 project-type: 'multijob'
861 gs-pathname: '{gs-pathname}'
865 use-build-blocker: true
877 condition: SUCCESSFUL
879 - name: 'apex-build-{stream}'
880 current-parameters: false
881 predefined-parameters: |
882 GERRIT_BRANCH=$GERRIT_BRANCH
883 GERRIT_REFSPEC=$GERRIT_REFSPEC
884 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
885 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
886 node-parameters: false
887 kill-phase-on: FAILURE
892 condition: SUCCESSFUL
894 - name: 'apex-deploy-virtual-{stream}'
895 current-parameters: false
896 predefined-parameters: |
897 DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
899 GERRIT_BRANCH=$GERRIT_BRANCH
900 GERRIT_REFSPEC=$GERRIT_REFSPEC
901 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
902 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
903 node-parameters: true
904 kill-phase-on: FAILURE
908 name: create snapshot
909 condition: SUCCESSFUL
911 - name: 'apex-create-snapshot'
912 current-parameters: true
913 node-parameters: true
914 kill-phase-on: FAILURE
918 name: upload snapshot
919 condition: SUCCESSFUL
921 - name: 'apex-upload-snapshot'
922 current-parameters: true
923 node-parameters: true
924 kill-phase-on: FAILURE
929 name: 'apex-gs-clean-{stream}'
931 # Job template for clean
933 # Required Variables:
934 # stream: branch with - in place of / (eg. stable)
944 gs-pathname: '{gs-pathname}'
950 - 'apex-gs-clean-{stream}'
952 ########################
954 ########################
961 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
963 name: ARTIFACT_VERSION
965 description: "Artifact version type"
967 name: BUILD_DIRECTORY
968 default: $WORKSPACE/.build
969 description: "Directory where the build artifact will be located upon the completion of the build."
971 name: CACHE_DIRECTORY
972 default: $HOME/opnfv/cache{gs-pathname}
973 description: "Directory where the cache to be used during the build is located."
976 default: https://gerrit.opnfv.org/gerrit/$PROJECT
977 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
980 default: '{gs-pathname}'
981 description: "Version directory where opnfv artifacts are stored in gs repository"
984 default: $GS_BASE{gs-pathname}
985 description: "URL to Google Storage."
987 ########################
989 ########################
991 name: 'apex-unit-test'
994 !include-raw: ./apex-unit-test.sh
1000 !include-raw: ./apex-build.sh
1003 name: 'apex-workspace-cleanup'
1006 !include-raw: ./apex-workspace-cleanup.sh
1009 name: 'apex-iso-verify'
1012 !include-raw: ./apex-iso-verify.sh
1016 name: 'apex-upload-artifact'
1019 !include-raw: ./apex-upload-artifact.sh
1022 name: 'apex-download-artifact'
1025 !include-raw: ./apex-download-artifact.sh
1028 name: 'apex-gs-cleanup'
1031 !include-raw: ./apex-gs-cleanup.sh
1037 !include-raw: ./apex-deploy.sh
1039 #######################
1041 ########################
1045 - timed: '0 3 1 1 7'
1049 - timed: '0 12 * * *'
1051 name: 'apex-gs-clean-{stream}'
1053 - timed: '0 2 * * *'