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'
32 branch: 'stable/danube'
33 gs-pathname: '/danube'
34 build-slave: 'apex-build-danube'
35 virtual-slave: 'apex-virtual-danube'
36 baremetal-slave: 'apex-baremetal-danube'
37 verify-scenario: 'os-odl_l3-nofeature-ha'
47 name: 'apex-verify-unit-tests-{stream}'
55 gs-pathname: '{gs-pathname}'
65 server-name: 'gerrit.opnfv.org'
67 - patchset-created-event:
68 exclude-drafts: 'false'
69 exclude-trivial-rebase: 'false'
70 exclude-no-code-change: 'true'
71 - draft-published-event
72 - comment-added-contains-event:
73 comment-contains-value: 'recheck'
74 - comment-added-contains-event:
75 comment-contains-value: 'reverify'
77 - project-compare-type: 'ANT'
78 project-pattern: 'apex'
80 - branch-compare-type: 'ANT'
81 branch-pattern: '**/{branch}'
94 !include-raw-escape: ./apex-unit-test.sh
98 name: 'apex-verify-{stream}'
100 node: '{virtual-slave}'
104 project-type: 'multijob'
108 gs-pathname: '{gs-pathname}/dev'
113 name: ARTIFACT_VERSION
115 description: "Used for overriding the ARTIFACT_VERSION"
121 server-name: 'gerrit.opnfv.org'
123 - patchset-created-event:
124 exclude-drafts: 'false'
125 exclude-trivial-rebase: 'false'
126 exclude-no-code-change: 'true'
127 - draft-published-event
128 - comment-added-contains-event:
129 comment-contains-value: 'recheck'
130 - comment-added-contains-event:
131 comment-contains-value: 'reverify'
133 - project-compare-type: 'ANT'
134 project-pattern: 'apex'
136 - branch-compare-type: 'ANT'
137 branch-pattern: '**/{branch}'
151 use-build-blocker: true
163 - description-setter:
164 description: "Built on $NODE_NAME"
167 condition: SUCCESSFUL
169 - name: 'apex-verify-unit-tests-{stream}'
170 current-parameters: false
171 predefined-parameters: |
172 GERRIT_BRANCH=$GERRIT_BRANCH
173 GERRIT_REFSPEC=$GERRIT_REFSPEC
174 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
175 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
176 node-parameters: false
177 kill-phase-on: FAILURE
182 condition: SUCCESSFUL
184 - name: 'apex-build-{stream}'
185 current-parameters: false
186 predefined-parameters: |
187 ARTIFACT_VERSION=$ARTIFACT_VERSION
188 GERRIT_BRANCH=$GERRIT_BRANCH
189 GERRIT_REFSPEC=$GERRIT_REFSPEC
190 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
191 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
192 node-parameters: false
193 kill-phase-on: FAILURE
198 condition: SUCCESSFUL
200 - name: 'apex-deploy-virtual-{stream}'
201 current-parameters: false
202 predefined-parameters: |
203 ARTIFACT_VERSION=$ARTIFACT_VERSION
204 DEPLOY_SCENARIO={verify-scenario}
206 GERRIT_BRANCH=$GERRIT_BRANCH
207 GERRIT_REFSPEC=$GERRIT_REFSPEC
208 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
209 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
210 node-parameters: true
211 kill-phase-on: FAILURE
215 # name: functest-smoke
216 # condition: SUCCESSFUL
218 # - name: 'functest-apex-virtual-suite-{stream}'
219 # current-parameters: false
220 # predefined-parameters: |
221 # DEPLOY_SCENARIO={verify-scenario}
222 # FUNCTEST_SUITE_NAME=healthcheck
223 # GERRIT_BRANCH=$GERRIT_BRANCH
224 # GERRIT_REFSPEC=$GERRIT_REFSPEC
225 # GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
226 # GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
227 # node-parameters: true
228 # kill-phase-on: FAILURE
229 # abort-all-job: true
230 # git-revision: false
232 # Verify Scenario Gate
234 name: 'apex-verify-gate-{stream}'
236 node: '{virtual-slave}'
240 project-type: 'multijob'
244 gs-pathname: '{gs-pathname}/dev'
250 default: https://gerrit.opnfv.org/gerrit/$PROJECT
251 description: "Used for overriding the GIT URL coming from parameters macro."
253 name: ARTIFACT_VERSION
255 description: "Used for overriding the ARTIFACT_VERSION"
262 server-name: 'gerrit.opnfv.org'
264 - comment-added-contains-event:
265 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
267 - project-compare-type: 'ANT'
268 project-pattern: 'apex'
270 - branch-compare-type: 'ANT'
271 branch-pattern: '**/{branch}'
285 use-build-blocker: true
299 condition: SUCCESSFUL
301 - name: 'apex-deploy-virtual-{stream}'
302 current-parameters: false
303 predefined-parameters: |
304 ARTIFACT_VERSION=$ARTIFACT_VERSION
307 GERRIT_BRANCH=$GERRIT_BRANCH
308 GERRIT_REFSPEC=$GERRIT_REFSPEC
309 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
310 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
311 node-parameters: true
312 kill-phase-on: FAILURE
316 # name: functest-smoke
317 # condition: SUCCESSFUL
319 # - name: 'functest-apex-virtual-suite-{stream}'
320 # current-parameters: false
321 # predefined-parameters: |
322 # DEPLOY_SCENARIO={verify-scenario}
323 # FUNCTEST_SUITE_NAME=healthcheck
324 # GERRIT_BRANCH=$GERRIT_BRANCH
325 # GERRIT_REFSPEC=$GERRIT_REFSPEC
326 # GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
327 # GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
328 # node-parameters: true
329 # kill-phase-on: FAILURE
330 # abort-all-job: true
331 # git-revision: false
334 name: 'apex-runner-cperf-{stream}'
337 project-type: 'multijob'
344 gs-pathname: '{gs-pathname}'
350 default: https://gerrit.opnfv.org/gerrit/$PROJECT
351 description: "Used for overriding the GIT URL coming from parameters macro."
359 use-build-blocker: false
369 - description-setter:
370 description: "Deployed on $NODE_NAME"
372 name: 'Baremetal Deploy'
375 - name: 'apex-deploy-baremetal-{stream}'
376 node-parameters: false
377 current-parameters: true
378 predefined-parameters: |
379 GERRIT_BRANCH=$GERRIT_BRANCH
382 DEPLOY_SCENARIO={verify-scenario}
383 kill-phase-on: FAILURE
388 condition: SUCCESSFUL
390 - name: 'cperf-apex-intel-pod2-daily-master'
391 node-parameters: true
392 current-parameters: false
393 predefined-parameters:
394 DEPLOY_SCENARIO={verify-scenario}
401 name: 'apex-build-{stream}'
403 # Job template for builds
405 # Required Variables:
406 # stream: branch with - in place of / (eg. stable)
407 # branch: branch (eg. stable)
408 node: '{build-slave}'
415 - '{project}-defaults'
420 gs-pathname: '{gs-pathname}'
433 max-per-node: {concurrent-builds}
440 properties-content: ARTIFACT_TYPE=rpm
441 - 'apex-upload-artifact'
445 name: 'apex-verify-iso-{stream}'
447 # Job template for builds
449 # Required Variables:
450 # stream: branch with - in place of / (eg. stable)
451 # branch: branch (eg. stable)
452 node: '{virtual-slave}'
463 gs-pathname: '{gs-pathname}'
466 default: https://gerrit.opnfv.org/gerrit/$PROJECT
467 description: "Used for overriding the GIT URL coming from parameters macro."
475 use-build-blocker: true
487 properties-content: ARTIFACT_TYPE=iso
488 - 'apex-upload-artifact'
492 name: 'apex-deploy-{platform}-{stream}'
494 # Job template for virtual deployment
496 # Required Variables:
497 # stream: branch with - in place of / (eg. stable)
498 # branch: branch (eg. stable)
499 node: 'apex-{platform}-{stream}'
518 gs-pathname: '{gs-pathname}'
520 name: DEPLOY_SCENARIO
521 default: '{verify-scenario}'
522 description: "Scenario to deploy with."
526 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
531 use-build-blocker: true
543 - description-setter:
544 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
545 - 'apex-download-artifact'
547 - 'apex-workspace-cleanup'
550 # Baremetal Deploy and Test
552 name: 'apex-run-deploy-test-baremetal-{stream}'
554 # Job template for daily build
556 # Required Variables:
557 # stream: branch with - in place of / (eg. stable)
558 # branch: branch (eg. stable)
559 project-type: 'multijob'
567 - '{project}-defaults'
568 - '{project}-baremetal-{stream}-defaults'
573 gs-pathname: '{gs-pathname}'
575 name: DEPLOY_SCENARIO
576 default: '{verify-scenario}'
577 description: "Scenario to deploy with."
581 use-build-blocker: true
586 - 'apex-.*-promote.*'
589 - description-setter:
590 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
592 name: 'Baremetal Deploy'
595 - name: 'apex-deploy-baremetal-{stream}'
596 node-parameters: true
597 current-parameters: true
598 predefined-parameters: |
600 GERRIT_BRANCH=$GERRIT_BRANCH
602 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
603 kill-phase-on: FAILURE
610 - name: 'functest-apex-baremetal-daily-{stream}'
611 node-parameters: true
612 current-parameters: false
613 predefined-parameters:
614 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
622 - name: 'yardstick-apex-baremetal-daily-{stream}'
623 node-parameters: true
624 current-parameters: false
625 predefined-parameters:
626 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
631 {% for stream in scenarios %}
634 name: 'apex-daily-{{ stream }}'
636 # Job template for daily build
638 # Required Variables:
639 # stream: branch with - in place of / (eg. stable)
640 # branch: branch (eg. stable)
641 project-type: 'multijob'
643 node: '{{ build_slave[stream] }}'
651 - '{project}-defaults'
652 - '{project}-baremetal-{{ stream }}-defaults'
655 branch: '{{ branch[stream] }}'
657 gs-pathname: '{{ gspathname[stream] }}'
663 - 'apex-{{ stream }}'
668 condition: SUCCESSFUL
670 - name: 'apex-build-{{ stream }}'
671 current-parameters: false
672 predefined-parameters: |
673 GERRIT_BRANCH=$GERRIT_BRANCH
675 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
676 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
677 node-parameters: true
678 kill-phase-on: FAILURE
682 name: 'Verify and upload ISO'
683 condition: SUCCESSFUL
685 - name: 'apex-verify-iso-{{ stream }}'
686 current-parameters: false
687 predefined-parameters: |
688 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
689 GERRIT_BRANCH=$GERRIT_BRANCH
691 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
692 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
693 node-parameters: true
694 kill-phase-on: FAILURE
698 name: Baremetal Deploy and Test Phase
699 condition: SUCCESSFUL
701 {% for scenario in scenarios[stream] %}
702 - name: 'apex-run-deploy-test-baremetal-{{ stream }}'
703 node-parameters: false
704 current-parameters: false
705 predefined-parameters: |
706 DEPLOY_SCENARIO={{scenario}}
716 name: 'apex-create-snapshot'
718 # Job template for clean
720 # Required Variables:
721 # stream: branch with - in place of / (eg. stable)
727 !include-raw-escape: ./apex-snapshot-create.sh
731 name: 'apex-upload-snapshot'
733 # Job template for clean
735 # Required Variables:
736 # stream: branch with - in place of / (eg. stable)
742 properties-content: ARTIFACT_TYPE=snapshot
743 - 'apex-upload-artifact'
747 name: 'apex-csit-promote-daily-{stream}'
749 # Job template for promoting CSIT Snapshots
751 # Required Variables:
752 # stream: branch with - in place of / (eg. stable)
753 # branch: branch (eg. stable)
754 node: '{virtual-slave}'
755 project-type: 'multijob'
766 gs-pathname: '{gs-pathname}'
770 use-build-blocker: true
779 - timed: '0 12 * * 0'
784 condition: SUCCESSFUL
786 - name: 'apex-build-{stream}'
787 current-parameters: false
788 predefined-parameters: |
789 GERRIT_BRANCH=$GERRIT_BRANCH
790 GERRIT_REFSPEC=$GERRIT_REFSPEC
791 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
792 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
793 node-parameters: false
794 kill-phase-on: FAILURE
799 condition: SUCCESSFUL
801 - name: 'apex-deploy-virtual-{stream}'
802 current-parameters: false
803 predefined-parameters: |
804 DEPLOY_SCENARIO=os-odl_l3-csit-noha
806 GERRIT_BRANCH=$GERRIT_BRANCH
807 GERRIT_REFSPEC=$GERRIT_REFSPEC
808 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
809 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
811 node-parameters: true
812 kill-phase-on: FAILURE
817 condition: SUCCESSFUL
819 - name: 'functest-apex-virtual-suite-{stream}'
820 current-parameters: false
821 predefined-parameters: |
822 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
823 FUNCTEST_SUITE_NAME=tempest_smoke_serial
824 GERRIT_BRANCH=$GERRIT_BRANCH
825 GERRIT_REFSPEC=$GERRIT_REFSPEC
826 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
827 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
828 node-parameters: true
829 kill-phase-on: FAILURE
833 name: create snapshot
834 condition: SUCCESSFUL
836 - name: 'apex-create-snapshot'
837 current-parameters: true
838 node-parameters: true
839 kill-phase-on: FAILURE
843 name: upload snapshot
844 condition: SUCCESSFUL
846 - name: 'apex-upload-snapshot'
847 current-parameters: true
848 node-parameters: true
849 kill-phase-on: FAILURE
855 name: 'apex-fdio-promote-daily-{stream}'
857 # Job template for promoting CSIT Snapshots
859 # Required Variables:
860 # stream: branch with - in place of / (eg. stable)
861 # branch: branch (eg. stable)
862 node: '{virtual-slave}'
863 project-type: 'multijob'
874 gs-pathname: '{gs-pathname}'
878 use-build-blocker: true
889 condition: SUCCESSFUL
891 - name: 'apex-build-{stream}'
892 current-parameters: false
893 predefined-parameters: |
894 GERRIT_BRANCH=$GERRIT_BRANCH
895 GERRIT_REFSPEC=$GERRIT_REFSPEC
896 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
897 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
898 node-parameters: false
899 kill-phase-on: FAILURE
904 condition: SUCCESSFUL
906 - name: 'apex-deploy-virtual-{stream}'
907 current-parameters: false
908 predefined-parameters: |
909 DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
911 GERRIT_BRANCH=$GERRIT_BRANCH
912 GERRIT_REFSPEC=$GERRIT_REFSPEC
913 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
914 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
916 node-parameters: true
917 kill-phase-on: FAILURE
921 name: create snapshot
922 condition: SUCCESSFUL
924 - name: 'apex-create-snapshot'
925 current-parameters: true
926 node-parameters: true
927 kill-phase-on: FAILURE
931 name: upload snapshot
932 condition: SUCCESSFUL
934 - name: 'apex-upload-snapshot'
935 current-parameters: true
936 node-parameters: true
937 kill-phase-on: FAILURE
941 ########################
943 ########################
950 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
952 name: ARTIFACT_VERSION
954 description: "Artifact version type"
956 name: BUILD_DIRECTORY
957 default: $WORKSPACE/.build
958 description: "Directory where the build artifact will be located upon the completion of the build."
960 name: CACHE_DIRECTORY
961 default: $HOME/opnfv/apex-cache{gs-pathname}
962 description: "Directory where the cache to be used during the build is located."
965 default: https://gerrit.opnfv.org/gerrit/$PROJECT
966 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
969 default: '{gs-pathname}'
970 description: "Version directory where opnfv artifacts are stored in gs repository"
973 default: $GS_BASE{gs-pathname}
974 description: "URL to Google Storage."
978 description: "Flag to know if we should promote/upload snapshot artifacts."
980 ########################
982 ########################
984 name: 'apex-unit-test'
987 !include-raw: ./apex-unit-test.sh
993 !include-raw: ./apex-build.sh
996 name: 'apex-workspace-cleanup'
999 !include-raw: ./apex-workspace-cleanup.sh
1002 name: 'apex-iso-verify'
1005 !include-raw: ./apex-iso-verify.sh
1009 name: 'apex-upload-artifact'
1012 !include-raw: ./apex-upload-artifact.sh
1015 name: 'apex-download-artifact'
1018 !include-raw: ./apex-download-artifact.sh
1024 !include-raw: ./apex-deploy.sh
1026 #######################
1028 ########################
1032 - timed: '0 3 1 1 7'
1036 - timed: '0 12 * * *'