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
538 - description-setter:
539 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
540 - 'apex-download-artifact'
542 - 'apex-workspace-cleanup'
545 # Baremetal Deploy and Test
547 name: 'apex-deploy-test-baremetal-{stream}'
549 # Job template for daily build
551 # Required Variables:
552 # stream: branch with - in place of / (eg. stable)
553 # branch: branch (eg. stable)
554 project-type: 'multijob'
562 - '{project}-defaults'
563 - '{project}-baremetal-{stream}-defaults'
568 gs-pathname: '{gs-pathname}'
570 name: DEPLOY_SCENARIO
571 default: '{verify-scenario}'
572 description: "Scenario to deploy with."
576 use-build-blocker: true
582 - 'apex-.*-promote.*'
584 - description-setter:
585 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
587 name: 'Baremetal Deploy'
590 - name: 'apex-deploy-baremetal-{stream}'
591 node-parameters: true
592 current-parameters: true
593 predefined-parameters: |
595 kill-phase-on: FAILURE
602 - name: 'functest-apex-baremetal-daily-{stream}'
603 node-parameters: true
604 current-parameters: false
605 predefined-parameters:
606 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
614 - name: 'yardstick-apex-baremetal-daily-{stream}'
615 node-parameters: true
616 current-parameters: false
617 predefined-parameters:
618 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
623 {% for stream in scenarios %}
626 name: 'apex-daily-{{ stream }}'
628 # Job template for daily build
630 # Required Variables:
631 # stream: branch with - in place of / (eg. stable)
632 # branch: branch (eg. stable)
633 project-type: 'multijob'
635 node: '{{ build_slave[stream] }}'
643 - '{project}-defaults'
644 - '{project}-baremetal-{{ stream }}-defaults'
647 branch: '{{ branch[stream] }}'
649 gs-pathname: '{{ gspathname[stream] }}'
655 - 'apex-{{ stream }}'
660 condition: SUCCESSFUL
662 - name: 'apex-build-{{ stream }}'
663 current-parameters: false
664 predefined-parameters: |
665 GERRIT_BRANCH=$GERRIT_BRANCH
666 GERRIT_REFSPEC=$GERRIT_REFSPEC
667 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
668 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
669 node-parameters: true
670 kill-phase-on: FAILURE
674 name: 'Verify and upload ISO'
675 condition: SUCCESSFUL
677 - name: 'apex-verify-iso-{{ stream }}'
678 current-parameters: false
679 predefined-parameters: |
680 BUILD_DIRECTORY=apex-build-{{ stream }}/.build
681 GERRIT_BRANCH=$GERRIT_BRANCH
682 GERRIT_REFSPEC=$GERRIT_REFSPEC
683 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
684 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
685 node-parameters: true
686 kill-phase-on: FAILURE
690 name: Baremetal Deploy and Test Phase
691 condition: SUCCESSFUL
693 {% for scenario in scenarios[stream] %}
694 - name: 'apex-deploy-test-baremetal-{{ stream }}'
695 node-parameters: false
696 current-parameters: false
697 predefined-parameters: |
698 DEPLOY_SCENARIO={{scenario}}
708 name: 'apex-create-snapshot'
710 # Job template for clean
712 # Required Variables:
713 # stream: branch with - in place of / (eg. stable)
719 !include-raw-escape: ./apex-snapshot-create.sh
723 name: 'apex-upload-snapshot'
725 # Job template for clean
727 # Required Variables:
728 # stream: branch with - in place of / (eg. stable)
734 properties-content: ARTIFACT_TYPE=snapshot
735 - 'apex-upload-artifact'
739 name: 'apex-csit-promote-daily-{stream}'
741 # Job template for promoting CSIT Snapshots
743 # Required Variables:
744 # stream: branch with - in place of / (eg. stable)
745 # branch: branch (eg. stable)
746 node: '{virtual-slave}'
747 project-type: 'multijob'
758 gs-pathname: '{gs-pathname}'
762 use-build-blocker: true
771 - timed: '0 12 * * 0'
776 condition: SUCCESSFUL
778 - name: 'apex-build-{stream}'
779 current-parameters: false
780 predefined-parameters: |
781 GERRIT_BRANCH=$GERRIT_BRANCH
782 GERRIT_REFSPEC=$GERRIT_REFSPEC
783 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
784 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
785 node-parameters: false
786 kill-phase-on: FAILURE
791 condition: SUCCESSFUL
793 - name: 'apex-deploy-virtual-{stream}'
794 current-parameters: false
795 predefined-parameters: |
796 DEPLOY_SCENARIO=os-odl_l3-csit-noha
798 GERRIT_BRANCH=$GERRIT_BRANCH
799 GERRIT_REFSPEC=$GERRIT_REFSPEC
800 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
801 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
802 node-parameters: true
803 kill-phase-on: FAILURE
808 condition: SUCCESSFUL
810 - name: 'functest-apex-virtual-suite-{stream}'
811 current-parameters: false
812 predefined-parameters: |
813 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
814 FUNCTEST_SUITE_NAME=tempest_smoke_serial
815 GERRIT_BRANCH=$GERRIT_BRANCH
816 GERRIT_REFSPEC=$GERRIT_REFSPEC
817 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
818 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
819 node-parameters: true
820 kill-phase-on: FAILURE
824 name: create snapshot
825 condition: SUCCESSFUL
827 - name: 'apex-create-snapshot'
828 current-parameters: true
829 node-parameters: true
830 kill-phase-on: FAILURE
834 name: upload snapshot
835 condition: SUCCESSFUL
837 - name: 'apex-upload-snapshot'
838 current-parameters: true
839 node-parameters: true
840 kill-phase-on: FAILURE
846 name: 'apex-fdio-promote-daily-{stream}'
848 # Job template for promoting CSIT Snapshots
850 # Required Variables:
851 # stream: branch with - in place of / (eg. stable)
852 # branch: branch (eg. stable)
853 node: '{virtual-slave}'
854 project-type: 'multijob'
865 gs-pathname: '{gs-pathname}'
869 use-build-blocker: true
880 condition: SUCCESSFUL
882 - name: 'apex-build-{stream}'
883 current-parameters: false
884 predefined-parameters: |
885 GERRIT_BRANCH=$GERRIT_BRANCH
886 GERRIT_REFSPEC=$GERRIT_REFSPEC
887 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
888 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
889 node-parameters: false
890 kill-phase-on: FAILURE
895 condition: SUCCESSFUL
897 - name: 'apex-deploy-virtual-{stream}'
898 current-parameters: false
899 predefined-parameters: |
900 DEPLOY_SCENARIO=os-odl_l2-netvirt_gbp_fdio-noha
902 GERRIT_BRANCH=$GERRIT_BRANCH
903 GERRIT_REFSPEC=$GERRIT_REFSPEC
904 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
905 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
906 node-parameters: true
907 kill-phase-on: FAILURE
911 name: create snapshot
912 condition: SUCCESSFUL
914 - name: 'apex-create-snapshot'
915 current-parameters: true
916 node-parameters: true
917 kill-phase-on: FAILURE
921 name: upload snapshot
922 condition: SUCCESSFUL
924 - name: 'apex-upload-snapshot'
925 current-parameters: true
926 node-parameters: true
927 kill-phase-on: FAILURE
932 name: 'apex-gs-clean-{stream}'
934 # Job template for clean
936 # Required Variables:
937 # stream: branch with - in place of / (eg. stable)
947 gs-pathname: '{gs-pathname}'
953 - 'apex-gs-clean-{stream}'
955 ########################
957 ########################
964 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
966 name: ARTIFACT_VERSION
968 description: "Artifact version type"
970 name: BUILD_DIRECTORY
971 default: $WORKSPACE/.build
972 description: "Directory where the build artifact will be located upon the completion of the build."
974 name: CACHE_DIRECTORY
975 default: $HOME/opnfv/apex-cache{gs-pathname}
976 description: "Directory where the cache to be used during the build is located."
979 default: https://gerrit.opnfv.org/gerrit/$PROJECT
980 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
983 default: '{gs-pathname}'
984 description: "Version directory where opnfv artifacts are stored in gs repository"
987 default: $GS_BASE{gs-pathname}
988 description: "URL to Google Storage."
990 ########################
992 ########################
994 name: 'apex-unit-test'
997 !include-raw: ./apex-unit-test.sh
1003 !include-raw: ./apex-build.sh
1006 name: 'apex-workspace-cleanup'
1009 !include-raw: ./apex-workspace-cleanup.sh
1012 name: 'apex-iso-verify'
1015 !include-raw: ./apex-iso-verify.sh
1019 name: 'apex-upload-artifact'
1022 !include-raw: ./apex-upload-artifact.sh
1025 name: 'apex-download-artifact'
1028 !include-raw: ./apex-download-artifact.sh
1031 name: 'apex-gs-cleanup'
1034 !include-raw: ./apex-gs-cleanup.sh
1040 !include-raw: ./apex-deploy.sh
1042 #######################
1044 ########################
1048 - timed: '0 3 1 1 7'
1052 - timed: '0 12 * * *'
1054 name: 'apex-gs-clean-{stream}'
1056 - timed: '0 2 * * *'