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-run-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
161 - description-setter:
162 description: "Built on $NODE_NAME"
165 condition: SUCCESSFUL
167 - name: 'apex-verify-unit-tests-{stream}'
168 current-parameters: false
169 predefined-parameters: |
170 GERRIT_BRANCH=$GERRIT_BRANCH
171 GERRIT_REFSPEC=$GERRIT_REFSPEC
172 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
173 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
174 node-parameters: false
175 kill-phase-on: FAILURE
180 condition: SUCCESSFUL
182 - name: 'apex-build-{stream}'
183 current-parameters: false
184 predefined-parameters: |
185 ARTIFACT_VERSION=$ARTIFACT_VERSION
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 ARTIFACT_VERSION=$ARTIFACT_VERSION
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: true
209 kill-phase-on: FAILURE
213 # name: functest-smoke
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: true
226 # kill-phase-on: FAILURE
227 # abort-all-job: true
228 # git-revision: false
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."
251 name: ARTIFACT_VERSION
253 description: "Used for overriding the ARTIFACT_VERSION"
260 server-name: 'gerrit.opnfv.org'
262 - comment-added-contains-event:
263 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
265 - project-compare-type: 'ANT'
266 project-pattern: 'apex'
268 - branch-compare-type: 'ANT'
269 branch-pattern: '**/{branch}'
283 use-build-blocker: true
297 condition: SUCCESSFUL
299 - name: 'apex-deploy-virtual-{stream}'
300 current-parameters: false
301 predefined-parameters: |
302 ARTIFACT_VERSION=$ARTIFACT_VERSION
305 GERRIT_BRANCH=$GERRIT_BRANCH
306 GERRIT_REFSPEC=$GERRIT_REFSPEC
307 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
308 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
309 node-parameters: true
310 kill-phase-on: FAILURE
314 # name: functest-smoke
315 # condition: SUCCESSFUL
317 # - name: 'functest-apex-virtual-suite-{stream}'
318 # current-parameters: false
319 # predefined-parameters: |
320 # DEPLOY_SCENARIO={verify-scenario}
321 # FUNCTEST_SUITE_NAME=healthcheck
322 # GERRIT_BRANCH=$GERRIT_BRANCH
323 # GERRIT_REFSPEC=$GERRIT_REFSPEC
324 # GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
325 # GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
326 # node-parameters: true
327 # kill-phase-on: FAILURE
328 # abort-all-job: true
329 # git-revision: false
332 name: 'apex-runner-cperf-{stream}'
335 project-type: 'multijob'
342 gs-pathname: '{gs-pathname}'
348 default: https://gerrit.opnfv.org/gerrit/$PROJECT
349 description: "Used for overriding the GIT URL coming from parameters macro."
357 use-build-blocker: false
367 - description-setter:
368 description: "Deployed on $NODE_NAME"
370 name: 'Baremetal Deploy'
373 - name: 'apex-deploy-baremetal-{stream}'
374 node-parameters: false
375 current-parameters: true
376 predefined-parameters: |
377 GERRIT_BRANCH=$GERRIT_BRANCH
380 DEPLOY_SCENARIO={verify-scenario}
381 kill-phase-on: FAILURE
386 condition: SUCCESSFUL
388 - name: 'cperf-apex-intel-pod2-daily-master'
389 node-parameters: true
390 current-parameters: false
391 predefined-parameters:
392 DEPLOY_SCENARIO={verify-scenario}
399 name: 'apex-build-{stream}'
401 # Job template for builds
403 # Required Variables:
404 # stream: branch with - in place of / (eg. stable)
405 # branch: branch (eg. stable)
406 node: '{build-slave}'
413 - '{project}-defaults'
418 gs-pathname: '{gs-pathname}'
438 properties-content: ARTIFACT_TYPE=rpm
439 - 'apex-upload-artifact'
443 name: 'apex-verify-iso-{stream}'
445 # Job template for builds
447 # Required Variables:
448 # stream: branch with - in place of / (eg. stable)
449 # branch: branch (eg. stable)
450 node: '{virtual-slave}'
461 gs-pathname: '{gs-pathname}'
464 default: https://gerrit.opnfv.org/gerrit/$PROJECT
465 description: "Used for overriding the GIT URL coming from parameters macro."
473 use-build-blocker: true
485 properties-content: ARTIFACT_TYPE=iso
486 - 'apex-upload-artifact'
490 name: 'apex-deploy-{platform}-{stream}'
492 # Job template for virtual deployment
494 # Required Variables:
495 # stream: branch with - in place of / (eg. stable)
496 # branch: branch (eg. stable)
497 node: 'apex-{platform}-{stream}'
516 gs-pathname: '{gs-pathname}'
518 name: DEPLOY_SCENARIO
519 default: '{verify-scenario}'
520 description: "Scenario to deploy with."
524 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
529 use-build-blocker: true
541 - description-setter:
542 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
543 - 'apex-download-artifact'
545 - 'apex-workspace-cleanup'
548 # Baremetal Deploy and Test
550 name: 'apex-run-deploy-test-baremetal-{stream}'
552 # Job template for daily build
554 # Required Variables:
555 # stream: branch with - in place of / (eg. stable)
556 # branch: branch (eg. stable)
557 project-type: 'multijob'
565 - '{project}-defaults'
566 - '{project}-baremetal-{stream}-defaults'
571 gs-pathname: '{gs-pathname}'
573 name: DEPLOY_SCENARIO
574 default: '{verify-scenario}'
575 description: "Scenario to deploy with."
579 use-build-blocker: true
584 - 'apex-.*-promote.*'
587 - description-setter:
588 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
590 name: 'Baremetal Deploy'
593 - name: 'apex-deploy-baremetal-{stream}'
594 node-parameters: true
595 current-parameters: true
596 predefined-parameters: |
598 GERRIT_BRANCH=$GERRIT_BRANCH
600 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
601 kill-phase-on: FAILURE
608 - name: 'functest-apex-baremetal-daily-{stream}'
609 node-parameters: true
610 current-parameters: false
611 predefined-parameters:
612 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
620 - name: 'yardstick-apex-baremetal-daily-{stream}'
621 node-parameters: true
622 current-parameters: false
623 predefined-parameters:
624 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
629 {% for stream in scenarios %}
632 name: 'apex-daily-{{ stream }}'
634 # Job template for daily build
636 # Required Variables:
637 # stream: branch with - in place of / (eg. stable)
638 # branch: branch (eg. stable)
639 project-type: 'multijob'
641 node: '{{ build_slave[stream] }}'
649 - '{project}-defaults'
650 - '{project}-baremetal-{{ stream }}-defaults'
653 branch: '{{ branch[stream] }}'
655 gs-pathname: '{{ gspathname[stream] }}'
661 - 'apex-{{ stream }}'
666 condition: SUCCESSFUL
668 - name: 'apex-build-{{ stream }}'
669 current-parameters: false
670 predefined-parameters: |
671 GERRIT_BRANCH=$GERRIT_BRANCH
673 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
674 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
675 node-parameters: true
676 kill-phase-on: FAILURE
680 name: 'Verify and upload ISO'
681 condition: SUCCESSFUL
683 - name: 'apex-verify-iso-{{ stream }}'
684 current-parameters: false
685 predefined-parameters: |
686 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
687 GERRIT_BRANCH=$GERRIT_BRANCH
689 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
690 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
691 node-parameters: true
692 kill-phase-on: FAILURE
696 name: Baremetal Deploy and Test Phase
697 condition: SUCCESSFUL
699 {% for scenario in scenarios[stream] %}
700 - name: 'apex-run-deploy-test-baremetal-{{ stream }}'
701 node-parameters: false
702 current-parameters: false
703 predefined-parameters: |
704 DEPLOY_SCENARIO={{scenario}}
714 name: 'apex-create-snapshot'
716 # Job template for clean
718 # Required Variables:
719 # stream: branch with - in place of / (eg. stable)
725 !include-raw-escape: ./apex-snapshot-create.sh
729 name: 'apex-upload-snapshot'
731 # Job template for clean
733 # Required Variables:
734 # stream: branch with - in place of / (eg. stable)
740 properties-content: ARTIFACT_TYPE=snapshot
741 - 'apex-upload-artifact'
745 name: 'apex-csit-promote-daily-{stream}'
747 # Job template for promoting CSIT Snapshots
749 # Required Variables:
750 # stream: branch with - in place of / (eg. stable)
751 # branch: branch (eg. stable)
752 node: '{virtual-slave}'
753 project-type: 'multijob'
764 gs-pathname: '{gs-pathname}'
768 use-build-blocker: true
777 - timed: '0 12 * * 0'
782 condition: SUCCESSFUL
784 - name: 'apex-build-{stream}'
785 current-parameters: false
786 predefined-parameters: |
787 GERRIT_BRANCH=$GERRIT_BRANCH
788 GERRIT_REFSPEC=$GERRIT_REFSPEC
789 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
790 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
791 node-parameters: false
792 kill-phase-on: FAILURE
797 condition: SUCCESSFUL
799 - name: 'apex-deploy-virtual-{stream}'
800 current-parameters: false
801 predefined-parameters: |
802 DEPLOY_SCENARIO=os-odl_l3-csit-noha
804 GERRIT_BRANCH=$GERRIT_BRANCH
805 GERRIT_REFSPEC=$GERRIT_REFSPEC
806 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
807 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
808 node-parameters: true
809 kill-phase-on: FAILURE
814 condition: SUCCESSFUL
816 - name: 'functest-apex-virtual-suite-{stream}'
817 current-parameters: false
818 predefined-parameters: |
819 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
820 FUNCTEST_SUITE_NAME=tempest_smoke_serial
821 GERRIT_BRANCH=$GERRIT_BRANCH
822 GERRIT_REFSPEC=$GERRIT_REFSPEC
823 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
824 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
825 node-parameters: true
826 kill-phase-on: FAILURE
830 name: create snapshot
831 condition: SUCCESSFUL
833 - name: 'apex-create-snapshot'
834 current-parameters: true
835 node-parameters: true
836 kill-phase-on: FAILURE
840 name: upload snapshot
841 condition: SUCCESSFUL
843 - name: 'apex-upload-snapshot'
844 current-parameters: true
845 node-parameters: true
846 kill-phase-on: FAILURE
852 name: 'apex-fdio-promote-daily-{stream}'
854 # Job template for promoting CSIT Snapshots
856 # Required Variables:
857 # stream: branch with - in place of / (eg. stable)
858 # branch: branch (eg. stable)
859 node: '{virtual-slave}'
860 project-type: 'multijob'
871 gs-pathname: '{gs-pathname}'
875 use-build-blocker: true
886 condition: SUCCESSFUL
888 - name: 'apex-build-{stream}'
889 current-parameters: false
890 predefined-parameters: |
891 GERRIT_BRANCH=$GERRIT_BRANCH
892 GERRIT_REFSPEC=$GERRIT_REFSPEC
893 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
894 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
895 node-parameters: false
896 kill-phase-on: FAILURE
901 condition: SUCCESSFUL
903 - name: 'apex-deploy-virtual-{stream}'
904 current-parameters: false
905 predefined-parameters: |
906 DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
908 GERRIT_BRANCH=$GERRIT_BRANCH
909 GERRIT_REFSPEC=$GERRIT_REFSPEC
910 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
911 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
912 node-parameters: true
913 kill-phase-on: FAILURE
917 name: create snapshot
918 condition: SUCCESSFUL
920 - name: 'apex-create-snapshot'
921 current-parameters: true
922 node-parameters: true
923 kill-phase-on: FAILURE
927 name: upload snapshot
928 condition: SUCCESSFUL
930 - name: 'apex-upload-snapshot'
931 current-parameters: true
932 node-parameters: true
933 kill-phase-on: FAILURE
937 ########################
939 ########################
946 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
948 name: ARTIFACT_VERSION
950 description: "Artifact version type"
952 name: BUILD_DIRECTORY
953 default: $WORKSPACE/.build
954 description: "Directory where the build artifact will be located upon the completion of the build."
956 name: CACHE_DIRECTORY
957 default: $HOME/opnfv/apex-cache{gs-pathname}
958 description: "Directory where the cache to be used during the build is located."
961 default: https://gerrit.opnfv.org/gerrit/$PROJECT
962 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
965 default: '{gs-pathname}'
966 description: "Version directory where opnfv artifacts are stored in gs repository"
969 default: $GS_BASE{gs-pathname}
970 description: "URL to Google Storage."
972 ########################
974 ########################
976 name: 'apex-unit-test'
979 !include-raw: ./apex-unit-test.sh
985 !include-raw: ./apex-build.sh
988 name: 'apex-workspace-cleanup'
991 !include-raw: ./apex-workspace-cleanup.sh
994 name: 'apex-iso-verify'
997 !include-raw: ./apex-iso-verify.sh
1001 name: 'apex-upload-artifact'
1004 !include-raw: ./apex-upload-artifact.sh
1007 name: 'apex-download-artifact'
1010 !include-raw: ./apex-download-artifact.sh
1016 !include-raw: ./apex-deploy.sh
1018 #######################
1020 ########################
1024 - timed: '0 3 1 1 7'
1028 - timed: '0 12 * * *'