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
809 node-parameters: true
810 kill-phase-on: FAILURE
815 condition: SUCCESSFUL
817 - name: 'functest-apex-virtual-suite-{stream}'
818 current-parameters: false
819 predefined-parameters: |
820 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
821 FUNCTEST_SUITE_NAME=tempest_smoke_serial
822 GERRIT_BRANCH=$GERRIT_BRANCH
823 GERRIT_REFSPEC=$GERRIT_REFSPEC
824 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
825 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
826 node-parameters: true
827 kill-phase-on: FAILURE
831 name: create snapshot
832 condition: SUCCESSFUL
834 - name: 'apex-create-snapshot'
835 current-parameters: true
836 node-parameters: true
837 kill-phase-on: FAILURE
841 name: upload snapshot
842 condition: SUCCESSFUL
844 - name: 'apex-upload-snapshot'
845 current-parameters: true
846 node-parameters: true
847 kill-phase-on: FAILURE
853 name: 'apex-fdio-promote-daily-{stream}'
855 # Job template for promoting CSIT Snapshots
857 # Required Variables:
858 # stream: branch with - in place of / (eg. stable)
859 # branch: branch (eg. stable)
860 node: '{virtual-slave}'
861 project-type: 'multijob'
872 gs-pathname: '{gs-pathname}'
876 use-build-blocker: true
887 condition: SUCCESSFUL
889 - name: 'apex-build-{stream}'
890 current-parameters: false
891 predefined-parameters: |
892 GERRIT_BRANCH=$GERRIT_BRANCH
893 GERRIT_REFSPEC=$GERRIT_REFSPEC
894 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
895 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
896 node-parameters: false
897 kill-phase-on: FAILURE
902 condition: SUCCESSFUL
904 - name: 'apex-deploy-virtual-{stream}'
905 current-parameters: false
906 predefined-parameters: |
907 DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
909 GERRIT_BRANCH=$GERRIT_BRANCH
910 GERRIT_REFSPEC=$GERRIT_REFSPEC
911 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
912 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
914 node-parameters: true
915 kill-phase-on: FAILURE
919 name: create snapshot
920 condition: SUCCESSFUL
922 - name: 'apex-create-snapshot'
923 current-parameters: true
924 node-parameters: true
925 kill-phase-on: FAILURE
929 name: upload snapshot
930 condition: SUCCESSFUL
932 - name: 'apex-upload-snapshot'
933 current-parameters: true
934 node-parameters: true
935 kill-phase-on: FAILURE
939 ########################
941 ########################
948 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
950 name: ARTIFACT_VERSION
952 description: "Artifact version type"
954 name: BUILD_DIRECTORY
955 default: $WORKSPACE/.build
956 description: "Directory where the build artifact will be located upon the completion of the build."
958 name: CACHE_DIRECTORY
959 default: $HOME/opnfv/apex-cache{gs-pathname}
960 description: "Directory where the cache to be used during the build is located."
963 default: https://gerrit.opnfv.org/gerrit/$PROJECT
964 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
967 default: '{gs-pathname}'
968 description: "Version directory where opnfv artifacts are stored in gs repository"
971 default: $GS_BASE{gs-pathname}
972 description: "URL to Google Storage."
976 description: "Flag to know if we should promote/upload snapshot artifacts."
978 ########################
980 ########################
982 name: 'apex-unit-test'
985 !include-raw: ./apex-unit-test.sh
991 !include-raw: ./apex-build.sh
994 name: 'apex-workspace-cleanup'
997 !include-raw: ./apex-workspace-cleanup.sh
1000 name: 'apex-iso-verify'
1003 !include-raw: ./apex-iso-verify.sh
1007 name: 'apex-upload-artifact'
1010 !include-raw: ./apex-upload-artifact.sh
1013 name: 'apex-download-artifact'
1016 !include-raw: ./apex-download-artifact.sh
1022 !include-raw: ./apex-deploy.sh
1024 #######################
1026 ########################
1030 - timed: '0 3 1 1 7'
1034 - timed: '0 12 * * *'