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
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
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
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
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
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: |
378 DEPLOY_SCENARIO={verify-scenario}
379 kill-phase-on: FAILURE
386 - name: 'functest-apex-baremetal-daily-{stream}'
387 node-parameters: true
388 current-parameters: false
389 predefined-parameters:
390 DEPLOY_SCENARIO={verify-scenario}
397 name: 'apex-build-{stream}'
399 # Job template for builds
401 # Required Variables:
402 # stream: branch with - in place of / (eg. stable)
403 # branch: branch (eg. stable)
404 node: '{build-slave}'
411 - '{project}-defaults'
416 gs-pathname: '{gs-pathname}'
436 properties-content: ARTIFACT_TYPE=rpm
437 - 'apex-upload-artifact'
441 name: 'apex-verify-iso-{stream}'
443 # Job template for builds
445 # Required Variables:
446 # stream: branch with - in place of / (eg. stable)
447 # branch: branch (eg. stable)
448 node: '{virtual-slave}'
459 gs-pathname: '{gs-pathname}'
462 default: https://gerrit.opnfv.org/gerrit/$PROJECT
463 description: "Used for overriding the GIT URL coming from parameters macro."
471 use-build-blocker: true
483 properties-content: ARTIFACT_TYPE=iso
484 - 'apex-upload-artifact'
488 name: 'apex-deploy-{platform}-{stream}'
490 # Job template for virtual deployment
492 # Required Variables:
493 # stream: branch with - in place of / (eg. stable)
494 # branch: branch (eg. stable)
495 node: 'apex-{platform}-{stream}'
514 gs-pathname: '{gs-pathname}'
516 name: DEPLOY_SCENARIO
517 default: '{verify-scenario}'
518 description: "Scenario to deploy with."
522 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
527 use-build-blocker: true
537 - description-setter:
538 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
539 - 'apex-download-artifact'
541 - 'apex-workspace-cleanup'
544 # Baremetal Deploy and Test
546 name: 'apex-deploy-test-baremetal-{stream}'
548 # Job template for daily build
550 # Required Variables:
551 # stream: branch with - in place of / (eg. stable)
552 # branch: branch (eg. stable)
553 project-type: 'multijob'
561 - '{project}-defaults'
562 - '{project}-baremetal-{stream}-defaults'
567 gs-pathname: '{gs-pathname}'
569 name: DEPLOY_SCENARIO
570 default: '{verify-scenario}'
571 description: "Scenario to deploy with."
575 use-build-blocker: true
581 - 'apex-.*-promote.*'
583 - description-setter:
584 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
586 name: 'Baremetal Deploy'
589 - name: 'apex-deploy-baremetal-{stream}'
590 node-parameters: true
591 current-parameters: true
592 predefined-parameters: |
594 kill-phase-on: FAILURE
601 - name: 'functest-apex-baremetal-daily-{stream}'
602 node-parameters: true
603 current-parameters: false
604 predefined-parameters:
605 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
613 - name: 'yardstick-apex-baremetal-daily-{stream}'
614 node-parameters: true
615 current-parameters: false
616 predefined-parameters:
617 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
622 {% for stream in scenarios %}
625 name: 'apex-daily-{{ stream }}'
627 # Job template for daily build
629 # Required Variables:
630 # stream: branch with - in place of / (eg. stable)
631 # branch: branch (eg. stable)
632 project-type: 'multijob'
634 node: '{{ build_slave[stream] }}'
642 - '{project}-defaults'
643 - '{project}-baremetal-{{ stream }}-defaults'
646 branch: '{{ branch[stream] }}'
648 gs-pathname: '{{ gspathname[stream] }}'
654 - 'apex-{{ stream }}'
659 condition: SUCCESSFUL
661 - name: 'apex-build-{{ stream }}'
662 current-parameters: false
663 predefined-parameters: |
664 GERRIT_BRANCH=$GERRIT_BRANCH
665 GERRIT_REFSPEC=$GERRIT_REFSPEC
666 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
667 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
668 node-parameters: true
669 kill-phase-on: FAILURE
673 name: 'Verify and upload ISO'
674 condition: SUCCESSFUL
676 - name: 'apex-verify-iso-{{ stream }}'
677 current-parameters: false
678 predefined-parameters: |
679 BUILD_DIRECTORY=apex-build-{{ stream }}/.build
680 GERRIT_BRANCH=$GERRIT_BRANCH
681 GERRIT_REFSPEC=$GERRIT_REFSPEC
682 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
683 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
684 node-parameters: true
685 kill-phase-on: FAILURE
689 name: Baremetal Deploy and Test Phase
690 condition: SUCCESSFUL
692 {% for scenario in scenarios[stream] %}
693 - name: 'apex-deploy-test-baremetal-{{ stream }}'
694 node-parameters: false
695 current-parameters: false
696 predefined-parameters: |
697 DEPLOY_SCENARIO={{scenario}}
707 name: 'apex-create-snapshot'
709 # Job template for clean
711 # Required Variables:
712 # stream: branch with - in place of / (eg. stable)
718 !include-raw-escape: ./apex-snapshot-create.sh
722 name: 'apex-upload-snapshot'
724 # Job template for clean
726 # Required Variables:
727 # stream: branch with - in place of / (eg. stable)
733 properties-content: ARTIFACT_TYPE=snapshot
734 - 'apex-upload-artifact'
738 name: 'apex-csit-promote-daily-{stream}'
740 # Job template for promoting CSIT Snapshots
742 # Required Variables:
743 # stream: branch with - in place of / (eg. stable)
744 # branch: branch (eg. stable)
745 node: '{virtual-slave}'
746 project-type: 'multijob'
757 gs-pathname: '{gs-pathname}'
761 use-build-blocker: true
770 - timed: '0 12 * * 0'
775 condition: SUCCESSFUL
777 - name: 'apex-build-{stream}'
778 current-parameters: false
779 predefined-parameters: |
780 GERRIT_BRANCH=$GERRIT_BRANCH
781 GERRIT_REFSPEC=$GERRIT_REFSPEC
782 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
783 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
784 node-parameters: false
785 kill-phase-on: FAILURE
790 condition: SUCCESSFUL
792 - name: 'apex-deploy-virtual-{stream}'
793 current-parameters: false
794 predefined-parameters: |
795 DEPLOY_SCENARIO=os-odl_l3-csit-noha
797 GERRIT_BRANCH=$GERRIT_BRANCH
798 GERRIT_REFSPEC=$GERRIT_REFSPEC
799 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
800 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
801 node-parameters: true
802 kill-phase-on: FAILURE
807 condition: SUCCESSFUL
809 - name: 'functest-apex-virtual-suite-{stream}'
810 current-parameters: false
811 predefined-parameters: |
812 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
813 FUNCTEST_SUITE_NAME=tempest_smoke_serial
814 GERRIT_BRANCH=$GERRIT_BRANCH
815 GERRIT_REFSPEC=$GERRIT_REFSPEC
816 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
817 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
818 node-parameters: true
819 kill-phase-on: FAILURE
823 name: create snapshot
824 condition: SUCCESSFUL
826 - name: 'apex-create-snapshot'
827 current-parameters: true
828 node-parameters: true
829 kill-phase-on: FAILURE
833 name: upload snapshot
834 condition: SUCCESSFUL
836 - name: 'apex-upload-snapshot'
837 current-parameters: true
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_l2-netvirt_gbp_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
905 node-parameters: true
906 kill-phase-on: FAILURE
910 name: create snapshot
911 condition: SUCCESSFUL
913 - name: 'apex-create-snapshot'
914 current-parameters: true
915 node-parameters: true
916 kill-phase-on: FAILURE
920 name: upload snapshot
921 condition: SUCCESSFUL
923 - name: 'apex-upload-snapshot'
924 current-parameters: true
925 node-parameters: true
926 kill-phase-on: FAILURE
931 name: 'apex-gs-clean-{stream}'
933 # Job template for clean
935 # Required Variables:
936 # stream: branch with - in place of / (eg. stable)
946 gs-pathname: '{gs-pathname}'
952 - 'apex-gs-clean-{stream}'
954 ########################
956 ########################
963 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
965 name: ARTIFACT_VERSION
967 description: "Artifact version type"
969 name: BUILD_DIRECTORY
970 default: $WORKSPACE/.build
971 description: "Directory where the build artifact will be located upon the completion of the build."
973 name: CACHE_DIRECTORY
974 default: $HOME/opnfv/apex-cache{gs-pathname}
975 description: "Directory where the cache to be used during the build is located."
978 default: https://gerrit.opnfv.org/gerrit/$PROJECT
979 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
982 default: '{gs-pathname}'
983 description: "Version directory where opnfv artifacts are stored in gs repository"
986 default: $GS_BASE{gs-pathname}
987 description: "URL to Google Storage."
989 ########################
991 ########################
993 name: 'apex-unit-test'
996 !include-raw: ./apex-unit-test.sh
1002 !include-raw: ./apex-build.sh
1005 name: 'apex-workspace-cleanup'
1008 !include-raw: ./apex-workspace-cleanup.sh
1011 name: 'apex-iso-verify'
1014 !include-raw: ./apex-iso-verify.sh
1018 name: 'apex-upload-artifact'
1021 !include-raw: ./apex-upload-artifact.sh
1024 name: 'apex-download-artifact'
1027 !include-raw: ./apex-download-artifact.sh
1030 name: 'apex-gs-cleanup'
1033 !include-raw: ./apex-gs-cleanup.sh
1039 !include-raw: ./apex-deploy.sh
1041 #######################
1043 ########################
1047 - timed: '0 3 1 1 7'
1051 - timed: '0 12 * * *'
1053 name: 'apex-gs-clean-{stream}'
1055 - timed: '0 2 * * *'