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-testsuite-{scenario}-baremetal-{scenario_stream}'
18 - 'apex-upload-snapshot'
19 - 'apex-create-snapshot'
20 # stream: branch with - in place of / (eg. stable-arno)
21 # branch: branch (eg. stable/arno)
26 build-slave: 'apex-build-master'
27 virtual-slave: 'apex-virtual-master'
28 baremetal-slave: 'apex-baremetal-master'
29 verify-scenario: 'os-odl-nofeature-ha'
31 scenario_stream: 'master'
34 branch: 'stable/danube'
35 gs-pathname: '/danube'
36 build-slave: 'apex-build-danube'
37 virtual-slave: 'apex-virtual-danube'
38 baremetal-slave: 'apex-baremetal-danube'
39 verify-scenario: 'os-odl_l3-nofeature-ha'
41 scenario_stream: 'danube'
45 {%- for stream in scenarios %}
46 {%- for scenario in scenarios[stream] %}
58 name: 'apex-verify-unit-tests-{stream}'
66 gs-pathname: '{gs-pathname}'
76 server-name: 'gerrit.opnfv.org'
78 - patchset-created-event:
79 exclude-drafts: 'false'
80 exclude-trivial-rebase: 'false'
81 exclude-no-code-change: 'true'
82 - draft-published-event
83 - comment-added-contains-event:
84 comment-contains-value: 'recheck'
85 - comment-added-contains-event:
86 comment-contains-value: 'reverify'
88 - project-compare-type: 'ANT'
89 project-pattern: 'apex'
91 - branch-compare-type: 'ANT'
92 branch-pattern: '**/{branch}'
105 !include-raw-escape: ./apex-unit-test.sh
109 name: 'apex-verify-{stream}'
111 node: '{virtual-slave}'
115 project-type: 'multijob'
119 gs-pathname: '{gs-pathname}/dev'
124 name: ARTIFACT_VERSION
126 description: "Used for overriding the ARTIFACT_VERSION"
132 server-name: 'gerrit.opnfv.org'
134 - patchset-created-event:
135 exclude-drafts: 'false'
136 exclude-trivial-rebase: 'false'
137 exclude-no-code-change: 'true'
138 - draft-published-event
139 - comment-added-contains-event:
140 comment-contains-value: 'recheck'
141 - comment-added-contains-event:
142 comment-contains-value: 'reverify'
144 - project-compare-type: 'ANT'
145 project-pattern: 'apex'
147 - branch-compare-type: 'ANT'
148 branch-pattern: '**/{branch}'
167 - description-setter:
168 description: "Built on $NODE_NAME"
171 condition: SUCCESSFUL
173 - name: 'apex-verify-unit-tests-{stream}'
174 current-parameters: false
175 predefined-parameters: |
176 GERRIT_BRANCH=$GERRIT_BRANCH
177 GERRIT_REFSPEC=$GERRIT_REFSPEC
178 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
179 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
180 node-parameters: false
181 kill-phase-on: FAILURE
186 condition: SUCCESSFUL
188 - name: 'apex-build-{stream}'
189 current-parameters: false
190 predefined-parameters: |
191 ARTIFACT_VERSION=$ARTIFACT_VERSION
192 GERRIT_BRANCH=$GERRIT_BRANCH
193 GERRIT_REFSPEC=$GERRIT_REFSPEC
194 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
195 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
196 node-parameters: false
197 kill-phase-on: FAILURE
202 condition: SUCCESSFUL
204 - name: 'apex-deploy-virtual-{stream}'
205 current-parameters: false
206 predefined-parameters: |
207 ARTIFACT_VERSION=$ARTIFACT_VERSION
208 DEPLOY_SCENARIO={verify-scenario}
210 GERRIT_BRANCH=$GERRIT_BRANCH
211 GERRIT_REFSPEC=$GERRIT_REFSPEC
212 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
213 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
214 node-parameters: true
215 kill-phase-on: FAILURE
220 condition: SUCCESSFUL
222 - name: 'functest-apex-virtual-suite-{stream}'
223 current-parameters: false
224 predefined-parameters: |
225 DEPLOY_SCENARIO={verify-scenario}
226 FUNCTEST_SUITE_NAME=healthcheck
227 GERRIT_BRANCH=$GERRIT_BRANCH
228 GERRIT_REFSPEC=$GERRIT_REFSPEC
229 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
230 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
231 node-parameters: true
236 # Verify Scenario Gate
238 name: 'apex-verify-gate-{stream}'
240 node: '{virtual-slave}'
244 project-type: 'multijob'
248 gs-pathname: '{gs-pathname}/dev'
254 default: https://gerrit.opnfv.org/gerrit/$PROJECT
255 description: "Used for overriding the GIT URL coming from parameters macro."
257 name: ARTIFACT_VERSION
259 description: "Used for overriding the ARTIFACT_VERSION"
266 server-name: 'gerrit.opnfv.org'
268 - comment-added-contains-event:
269 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
271 - project-compare-type: 'ANT'
272 project-pattern: 'apex'
274 - branch-compare-type: 'ANT'
275 branch-pattern: '**/{branch}'
296 condition: SUCCESSFUL
298 - name: 'apex-deploy-virtual-{stream}'
299 current-parameters: false
300 predefined-parameters: |
301 ARTIFACT_VERSION=$ARTIFACT_VERSION
304 GERRIT_BRANCH=$GERRIT_BRANCH
305 GERRIT_REFSPEC=$GERRIT_REFSPEC
306 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
307 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
308 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
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
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}'
431 max-per-node: {concurrent-builds}
435 use-build-blocker: true
438 - 'apex-verify-iso-{stream}'
443 properties-content: ARTIFACT_TYPE=rpm
444 - 'apex-upload-artifact'
448 name: 'apex-verify-iso-{stream}'
450 # Job template for builds
452 # Required Variables:
453 # stream: branch with - in place of / (eg. stable)
454 # branch: branch (eg. stable)
455 node: '{virtual-slave}'
466 gs-pathname: '{gs-pathname}'
469 default: https://gerrit.opnfv.org/gerrit/$PROJECT
470 description: "Used for overriding the GIT URL coming from parameters macro."
485 properties-content: ARTIFACT_TYPE=iso
486 - 'apex-upload-artifact'
490 name: 'apex-deploy-{platform}-{stream}'
492 node: 'apex-{platform}-{stream}'
507 - '{project}-{platform}-{stream}-defaults'
512 gs-pathname: '{gs-pathname}'
514 name: DEPLOY_SCENARIO
515 default: '{verify-scenario}'
516 description: "Scenario to deploy with."
520 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
525 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-{scenario}-baremetal-{scenario_stream}'
548 project-type: 'multijob'
556 - '{project}-defaults'
557 - '{project}-baremetal-{scenario_stream}-defaults'
562 gs-pathname: '{gs-pathname}'
564 name: DEPLOY_SCENARIO
565 default: '{scenario}'
566 description: "Scenario to deploy with."
570 use-build-blocker: true
575 - 'apex-.*-promote.*'
577 - 'apex-.+-baremetal-.+'
583 - description-setter:
584 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
586 name: 'Baremetal Deploy'
589 - name: 'apex-deploy-baremetal-{scenario_stream}'
590 node-parameters: true
591 current-parameters: true
592 predefined-parameters: |
594 GERRIT_BRANCH=$GERRIT_BRANCH
596 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
597 kill-phase-on: FAILURE
601 name: 'OPNFV Test Suite'
602 condition: SUCCESSFUL
604 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
605 node-parameters: true
606 current-parameters: false
607 predefined-parameters:
608 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
616 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
618 project-type: 'multijob'
623 - '{project}-defaults'
624 - '{project}-baremetal-{scenario_stream}-defaults'
629 gs-pathname: '{gs-pathname}'
631 name: DEPLOY_SCENARIO
632 default: '{scenario}'
633 description: "Scenario to deploy with."
637 use-build-blocker: true
642 - 'apex-.*-promote.*'
644 - 'apex-testsuite-.+-baremetal-.+'
650 - description-setter:
651 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
656 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
657 node-parameters: true
658 current-parameters: false
659 predefined-parameters:
660 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
668 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
669 node-parameters: true
670 current-parameters: false
671 predefined-parameters:
672 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
677 condition-kind: current-status
678 condition-worst: SUCCESS
679 condtion-best: SUCCESS
680 on-evaluation-failure: mark-unstable
682 - shell: 'echo "Tests Passed"'
684 {% for stream in scenarios %}
687 name: 'apex-daily-{{ stream }}'
689 # Job template for daily build
691 # Required Variables:
692 # stream: branch with - in place of / (eg. stable)
693 # branch: branch (eg. stable)
694 project-type: 'multijob'
696 node: '{{ build_slave[stream] }}'
704 - '{project}-defaults'
705 - '{project}-baremetal-{{ stream }}-defaults'
708 branch: '{{ branch[stream] }}'
710 gs-pathname: '{{ gspathname[stream] }}'
716 - 'apex-{{ stream }}'
721 condition: SUCCESSFUL
723 - name: 'apex-build-{{ stream }}'
724 current-parameters: false
725 predefined-parameters: |
726 GERRIT_BRANCH=$GERRIT_BRANCH
728 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
729 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
730 node-parameters: true
731 kill-phase-on: FAILURE
735 name: 'Verify and upload ISO'
736 condition: SUCCESSFUL
738 - name: 'apex-verify-iso-{{ stream }}'
739 current-parameters: false
740 predefined-parameters: |
741 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
742 GERRIT_BRANCH=$GERRIT_BRANCH
744 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
745 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
746 node-parameters: true
747 kill-phase-on: FAILURE
751 name: Baremetal Deploy and Test Phase
752 condition: SUCCESSFUL
754 {% for scenario in scenarios[stream] %}
755 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
756 node-parameters: false
757 current-parameters: false
758 predefined-parameters: |
768 name: 'apex-create-snapshot'
770 # Job template for clean
772 # Required Variables:
773 # stream: branch with - in place of / (eg. stable)
779 !include-raw-escape: ./apex-snapshot-create.sh
783 name: 'apex-upload-snapshot'
785 # Job template for clean
787 # Required Variables:
788 # stream: branch with - in place of / (eg. stable)
794 properties-content: ARTIFACT_TYPE=snapshot
795 - 'apex-upload-artifact'
799 name: 'apex-csit-promote-daily-{stream}'
801 # Job template for promoting CSIT Snapshots
803 # Required Variables:
804 # stream: branch with - in place of / (eg. stable)
805 # branch: branch (eg. stable)
806 node: '{virtual-slave}'
807 project-type: 'multijob'
818 gs-pathname: '{gs-pathname}'
822 use-build-blocker: true
831 - timed: '0 12 * * 0'
836 condition: SUCCESSFUL
838 - name: 'apex-build-{stream}'
839 current-parameters: false
840 predefined-parameters: |
841 GERRIT_BRANCH=$GERRIT_BRANCH
842 GERRIT_REFSPEC=$GERRIT_REFSPEC
843 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
844 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
845 node-parameters: false
846 kill-phase-on: FAILURE
851 condition: SUCCESSFUL
853 - name: 'apex-deploy-virtual-{stream}'
854 current-parameters: false
855 predefined-parameters: |
856 DEPLOY_SCENARIO=os-odl_l3-csit-noha
858 GERRIT_BRANCH=$GERRIT_BRANCH
859 GERRIT_REFSPEC=$GERRIT_REFSPEC
860 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
861 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
863 node-parameters: true
864 kill-phase-on: FAILURE
869 condition: SUCCESSFUL
871 - name: 'functest-apex-virtual-suite-{stream}'
872 current-parameters: false
873 predefined-parameters: |
874 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
875 FUNCTEST_SUITE_NAME=tempest_smoke_serial
876 GERRIT_BRANCH=$GERRIT_BRANCH
877 GERRIT_REFSPEC=$GERRIT_REFSPEC
878 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
879 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
880 node-parameters: true
881 kill-phase-on: FAILURE
885 name: create snapshot
886 condition: SUCCESSFUL
888 - name: 'apex-create-snapshot'
889 current-parameters: false
890 predefined-parameters: |
892 node-parameters: true
893 kill-phase-on: FAILURE
897 name: upload snapshot
898 condition: SUCCESSFUL
900 - name: 'apex-upload-snapshot'
901 current-parameters: false
902 predefined-parameters: |
904 node-parameters: true
905 kill-phase-on: FAILURE
911 name: 'apex-fdio-promote-daily-{stream}'
913 # Job template for promoting CSIT Snapshots
915 # Required Variables:
916 # stream: branch with - in place of / (eg. stable)
917 # branch: branch (eg. stable)
918 node: '{virtual-slave}'
919 project-type: 'multijob'
930 gs-pathname: '{gs-pathname}'
934 use-build-blocker: true
945 condition: SUCCESSFUL
947 - name: 'apex-build-{stream}'
948 current-parameters: false
949 predefined-parameters: |
950 GERRIT_BRANCH=$GERRIT_BRANCH
951 GERRIT_REFSPEC=$GERRIT_REFSPEC
952 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
953 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
954 node-parameters: false
955 kill-phase-on: FAILURE
960 condition: SUCCESSFUL
962 - name: 'apex-deploy-virtual-{stream}'
963 current-parameters: false
964 predefined-parameters: |
965 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
967 GERRIT_BRANCH=$GERRIT_BRANCH
968 GERRIT_REFSPEC=$GERRIT_REFSPEC
969 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
970 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
972 node-parameters: true
973 kill-phase-on: FAILURE
977 name: create snapshot
978 condition: SUCCESSFUL
980 - name: 'apex-create-snapshot'
981 current-parameters: false
982 predefined-parameters: |
984 node-parameters: true
985 kill-phase-on: FAILURE
989 name: upload snapshot
990 condition: SUCCESSFUL
992 - name: 'apex-upload-snapshot'
993 current-parameters: false
994 predefined-parameters: |
996 node-parameters: true
997 kill-phase-on: FAILURE
1001 ########################
1003 ########################
1005 name: apex-parameter
1010 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1012 name: ARTIFACT_VERSION
1014 description: "Artifact version type"
1016 name: BUILD_DIRECTORY
1017 default: $WORKSPACE/.build
1018 description: "Directory where the build artifact will be located upon the completion of the build."
1020 name: CACHE_DIRECTORY
1021 default: $HOME/opnfv/apex-cache{gs-pathname}
1022 description: "Directory where the cache to be used during the build is located."
1025 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1026 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1029 default: '{gs-pathname}'
1030 description: "Version directory where opnfv artifacts are stored in gs repository"
1033 default: $GS_BASE{gs-pathname}
1034 description: "URL to Google Storage."
1038 description: "Flag to know if we should promote/upload snapshot artifacts."
1040 ########################
1042 ########################
1044 name: 'apex-unit-test'
1047 !include-raw: ./apex-unit-test.sh
1053 !include-raw: ./apex-build.sh
1056 name: 'apex-workspace-cleanup'
1059 !include-raw: ./apex-workspace-cleanup.sh
1062 name: 'apex-iso-verify'
1065 !include-raw: ./apex-iso-verify.sh
1069 name: 'apex-upload-artifact'
1072 !include-raw: ./apex-upload-artifact.sh
1075 name: 'apex-download-artifact'
1078 !include-raw: ./apex-download-artifact.sh
1084 !include-raw: ./apex-deploy.sh
1086 #######################
1088 ########################
1092 - timed: '0 12 * * *'
1096 - timed: '0 3 1 1 7'