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-{scenario}-baremetal-{scenario_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'
30 scenario_stream: 'master'
33 branch: 'stable/danube'
34 gs-pathname: '/danube'
35 build-slave: 'apex-build-danube'
36 virtual-slave: 'apex-virtual-danube'
37 baremetal-slave: 'apex-baremetal-danube'
38 verify-scenario: 'os-odl_l3-nofeature-ha'
40 scenario_stream: 'danube'
44 {%- for stream in scenarios %}
45 {%- for scenario in scenarios[stream] %}
57 name: 'apex-verify-unit-tests-{stream}'
65 gs-pathname: '{gs-pathname}'
75 server-name: 'gerrit.opnfv.org'
77 - patchset-created-event:
78 exclude-drafts: 'false'
79 exclude-trivial-rebase: 'false'
80 exclude-no-code-change: 'true'
81 - draft-published-event
82 - comment-added-contains-event:
83 comment-contains-value: 'recheck'
84 - comment-added-contains-event:
85 comment-contains-value: 'reverify'
87 - project-compare-type: 'ANT'
88 project-pattern: 'apex'
90 - branch-compare-type: 'ANT'
91 branch-pattern: '**/{branch}'
104 !include-raw-escape: ./apex-unit-test.sh
108 name: 'apex-verify-{stream}'
110 node: '{virtual-slave}'
114 project-type: 'multijob'
118 gs-pathname: '{gs-pathname}/dev'
123 name: ARTIFACT_VERSION
125 description: "Used for overriding the ARTIFACT_VERSION"
131 server-name: 'gerrit.opnfv.org'
133 - patchset-created-event:
134 exclude-drafts: 'false'
135 exclude-trivial-rebase: 'false'
136 exclude-no-code-change: 'true'
137 - draft-published-event
138 - comment-added-contains-event:
139 comment-contains-value: 'recheck'
140 - comment-added-contains-event:
141 comment-contains-value: 'reverify'
143 - project-compare-type: 'ANT'
144 project-pattern: 'apex'
146 - branch-compare-type: 'ANT'
147 branch-pattern: '**/{branch}'
166 - description-setter:
167 description: "Built on $NODE_NAME"
170 condition: SUCCESSFUL
172 - name: 'apex-verify-unit-tests-{stream}'
173 current-parameters: false
174 predefined-parameters: |
175 GERRIT_BRANCH=$GERRIT_BRANCH
176 GERRIT_REFSPEC=$GERRIT_REFSPEC
177 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
178 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
179 node-parameters: false
180 kill-phase-on: FAILURE
185 condition: SUCCESSFUL
187 - name: 'apex-build-{stream}'
188 current-parameters: false
189 predefined-parameters: |
190 ARTIFACT_VERSION=$ARTIFACT_VERSION
191 GERRIT_BRANCH=$GERRIT_BRANCH
192 GERRIT_REFSPEC=$GERRIT_REFSPEC
193 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
194 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
195 node-parameters: false
196 kill-phase-on: FAILURE
201 condition: SUCCESSFUL
203 - name: 'apex-deploy-virtual-{stream}'
204 current-parameters: false
205 predefined-parameters: |
206 ARTIFACT_VERSION=$ARTIFACT_VERSION
207 DEPLOY_SCENARIO={verify-scenario}
209 GERRIT_BRANCH=$GERRIT_BRANCH
210 GERRIT_REFSPEC=$GERRIT_REFSPEC
211 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
212 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
213 node-parameters: true
214 kill-phase-on: FAILURE
219 condition: SUCCESSFUL
221 - name: 'functest-apex-virtual-suite-{stream}'
222 current-parameters: false
223 predefined-parameters: |
224 DEPLOY_SCENARIO={verify-scenario}
225 FUNCTEST_SUITE_NAME=healthcheck
226 GERRIT_BRANCH=$GERRIT_BRANCH
227 GERRIT_REFSPEC=$GERRIT_REFSPEC
228 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
229 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
230 node-parameters: true
235 # Verify Scenario Gate
237 name: 'apex-verify-gate-{stream}'
239 node: '{virtual-slave}'
243 project-type: 'multijob'
247 gs-pathname: '{gs-pathname}/dev'
253 default: https://gerrit.opnfv.org/gerrit/$PROJECT
254 description: "Used for overriding the GIT URL coming from parameters macro."
256 name: ARTIFACT_VERSION
258 description: "Used for overriding the ARTIFACT_VERSION"
265 server-name: 'gerrit.opnfv.org'
267 - comment-added-contains-event:
268 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
270 - project-compare-type: 'ANT'
271 project-pattern: 'apex'
273 - branch-compare-type: 'ANT'
274 branch-pattern: '**/{branch}'
295 condition: SUCCESSFUL
297 - name: 'apex-deploy-virtual-{stream}'
298 current-parameters: false
299 predefined-parameters: |
300 ARTIFACT_VERSION=$ARTIFACT_VERSION
303 GERRIT_BRANCH=$GERRIT_BRANCH
304 GERRIT_REFSPEC=$GERRIT_REFSPEC
305 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
306 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
307 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
308 node-parameters: true
309 kill-phase-on: FAILURE
314 condition: SUCCESSFUL
316 - name: 'functest-apex-virtual-suite-{stream}'
317 current-parameters: false
318 predefined-parameters: |
319 DEPLOY_SCENARIO={verify-scenario}
320 FUNCTEST_SUITE_NAME=healthcheck
321 GERRIT_BRANCH=$GERRIT_BRANCH
322 GERRIT_REFSPEC=$GERRIT_REFSPEC
323 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
324 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
325 node-parameters: true
331 name: 'apex-runner-cperf-{stream}'
334 project-type: 'multijob'
341 gs-pathname: '{gs-pathname}'
347 default: https://gerrit.opnfv.org/gerrit/$PROJECT
348 description: "Used for overriding the GIT URL coming from parameters macro."
356 use-build-blocker: false
366 - description-setter:
367 description: "Deployed on $NODE_NAME"
369 name: 'Baremetal Deploy'
372 - name: 'apex-deploy-baremetal-{stream}'
373 node-parameters: false
374 current-parameters: true
375 predefined-parameters: |
376 GERRIT_BRANCH=$GERRIT_BRANCH
379 DEPLOY_SCENARIO={verify-scenario}
380 kill-phase-on: FAILURE
385 condition: SUCCESSFUL
387 - name: 'cperf-apex-intel-pod2-daily-master'
388 node-parameters: true
389 current-parameters: false
390 predefined-parameters:
391 DEPLOY_SCENARIO={verify-scenario}
398 name: 'apex-build-{stream}'
400 # Job template for builds
402 # Required Variables:
403 # stream: branch with - in place of / (eg. stable)
404 # branch: branch (eg. stable)
405 node: '{build-slave}'
412 - '{project}-defaults'
417 gs-pathname: '{gs-pathname}'
430 max-per-node: {concurrent-builds}
434 use-build-blocker: true
437 - 'apex-verify-iso-{stream}'
442 properties-content: ARTIFACT_TYPE=rpm
443 - 'apex-upload-artifact'
447 name: 'apex-verify-iso-{stream}'
449 # Job template for builds
451 # Required Variables:
452 # stream: branch with - in place of / (eg. stable)
453 # branch: branch (eg. stable)
454 node: '{virtual-slave}'
465 gs-pathname: '{gs-pathname}'
468 default: https://gerrit.opnfv.org/gerrit/$PROJECT
469 description: "Used for overriding the GIT URL coming from parameters macro."
484 properties-content: ARTIFACT_TYPE=iso
485 - 'apex-upload-artifact'
489 name: 'apex-deploy-{platform}-{stream}'
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
535 - description-setter:
536 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
537 - 'apex-download-artifact'
539 - 'apex-workspace-cleanup'
542 # Baremetal Deploy and Test
544 name: 'apex-{scenario}-baremetal-{scenario_stream}'
546 project-type: 'multijob'
554 - '{project}-defaults'
555 - '{project}-baremetal-{scenario_stream}-defaults'
560 gs-pathname: '{gs-pathname}'
562 name: DEPLOY_SCENARIO
563 default: '{scenario}'
564 description: "Scenario to deploy with."
568 use-build-blocker: true
573 - 'apex-.*-promote.*'
576 - description-setter:
577 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
579 name: 'Baremetal Deploy'
582 - name: 'apex-deploy-baremetal-{scenario_stream}'
583 node-parameters: true
584 current-parameters: true
585 predefined-parameters: |
587 GERRIT_BRANCH=$GERRIT_BRANCH
589 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
590 kill-phase-on: FAILURE
595 condition: SUCCESSFUL
597 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
598 node-parameters: true
599 current-parameters: false
600 predefined-parameters:
601 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
609 - name: 'yardstick-apex-baremetal-daily-{scenario_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
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=$WORKSPACE/../apex-build-{{ stream }}/.build
676 GERRIT_BRANCH=$GERRIT_BRANCH
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-{{ scenario }}-baremetal-{{ stream }}'
690 node-parameters: false
691 current-parameters: false
692 predefined-parameters: |
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
765 - timed: '0 12 * * 0'
770 condition: SUCCESSFUL
772 - name: 'apex-build-{stream}'
773 current-parameters: false
774 predefined-parameters: |
775 GERRIT_BRANCH=$GERRIT_BRANCH
776 GERRIT_REFSPEC=$GERRIT_REFSPEC
777 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
778 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
779 node-parameters: false
780 kill-phase-on: FAILURE
785 condition: SUCCESSFUL
787 - name: 'apex-deploy-virtual-{stream}'
788 current-parameters: false
789 predefined-parameters: |
790 DEPLOY_SCENARIO=os-odl_l3-csit-noha
792 GERRIT_BRANCH=$GERRIT_BRANCH
793 GERRIT_REFSPEC=$GERRIT_REFSPEC
794 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
795 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: false
824 predefined-parameters: |
826 node-parameters: true
827 kill-phase-on: FAILURE
831 name: upload snapshot
832 condition: SUCCESSFUL
834 - name: 'apex-upload-snapshot'
835 current-parameters: false
836 predefined-parameters: |
838 node-parameters: true
839 kill-phase-on: FAILURE
845 name: 'apex-fdio-promote-daily-{stream}'
847 # Job template for promoting CSIT Snapshots
849 # Required Variables:
850 # stream: branch with - in place of / (eg. stable)
851 # branch: branch (eg. stable)
852 node: '{virtual-slave}'
853 project-type: 'multijob'
864 gs-pathname: '{gs-pathname}'
868 use-build-blocker: true
879 condition: SUCCESSFUL
881 - name: 'apex-build-{stream}'
882 current-parameters: false
883 predefined-parameters: |
884 GERRIT_BRANCH=$GERRIT_BRANCH
885 GERRIT_REFSPEC=$GERRIT_REFSPEC
886 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
887 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
888 node-parameters: false
889 kill-phase-on: FAILURE
894 condition: SUCCESSFUL
896 - name: 'apex-deploy-virtual-{stream}'
897 current-parameters: false
898 predefined-parameters: |
899 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
901 GERRIT_BRANCH=$GERRIT_BRANCH
902 GERRIT_REFSPEC=$GERRIT_REFSPEC
903 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
904 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
906 node-parameters: true
907 kill-phase-on: FAILURE
911 name: create snapshot
912 condition: SUCCESSFUL
914 - name: 'apex-create-snapshot'
915 current-parameters: false
916 predefined-parameters: |
918 node-parameters: true
919 kill-phase-on: FAILURE
923 name: upload snapshot
924 condition: SUCCESSFUL
926 - name: 'apex-upload-snapshot'
927 current-parameters: false
928 predefined-parameters: |
930 node-parameters: true
931 kill-phase-on: FAILURE
935 ########################
937 ########################
944 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
946 name: ARTIFACT_VERSION
948 description: "Artifact version type"
950 name: BUILD_DIRECTORY
951 default: $WORKSPACE/.build
952 description: "Directory where the build artifact will be located upon the completion of the build."
954 name: CACHE_DIRECTORY
955 default: $HOME/opnfv/apex-cache{gs-pathname}
956 description: "Directory where the cache to be used during the build is located."
959 default: https://gerrit.opnfv.org/gerrit/$PROJECT
960 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
963 default: '{gs-pathname}'
964 description: "Version directory where opnfv artifacts are stored in gs repository"
967 default: $GS_BASE{gs-pathname}
968 description: "URL to Google Storage."
972 description: "Flag to know if we should promote/upload snapshot artifacts."
974 ########################
976 ########################
978 name: 'apex-unit-test'
981 !include-raw: ./apex-unit-test.sh
987 !include-raw: ./apex-build.sh
990 name: 'apex-workspace-cleanup'
993 !include-raw: ./apex-workspace-cleanup.sh
996 name: 'apex-iso-verify'
999 !include-raw: ./apex-iso-verify.sh
1003 name: 'apex-upload-artifact'
1006 !include-raw: ./apex-upload-artifact.sh
1009 name: 'apex-download-artifact'
1012 !include-raw: ./apex-download-artifact.sh
1018 !include-raw: ./apex-deploy.sh
1020 #######################
1022 ########################
1026 - timed: '0 12 * * *'
1030 - timed: '0 3 1 1 7'