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-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'
30 scenario_stream: 'master'
33 branch: 'stable/danube'
34 gs-pathname: '/danube'
35 build-slave: 'apex-build-danube'
36 virtual-slave: 'apex-virtual-danube'
37 baremetal-slave: 'apex-baremetal-danube'
38 verify-scenario: 'os-odl_l3-nofeature-ha'
40 scenario_stream: 'danube'
44 {%- for stream in scenarios %}
45 {%- for scenario in scenarios[stream] %}
57 name: 'apex-verify-unit-tests-{stream}'
65 gs-pathname: '{gs-pathname}'
75 server-name: 'gerrit.opnfv.org'
77 - patchset-created-event:
78 exclude-drafts: 'false'
79 exclude-trivial-rebase: 'false'
80 exclude-no-code-change: 'true'
81 - draft-published-event
82 - comment-added-contains-event:
83 comment-contains-value: 'recheck'
84 - comment-added-contains-event:
85 comment-contains-value: 'reverify'
87 - project-compare-type: 'ANT'
88 project-pattern: 'apex'
90 - branch-compare-type: 'ANT'
91 branch-pattern: '**/{branch}'
104 !include-raw-escape: ./apex-unit-test.sh
108 name: 'apex-verify-{stream}'
110 node: '{virtual-slave}'
114 project-type: 'multijob'
118 gs-pathname: '{gs-pathname}/dev'
123 name: ARTIFACT_VERSION
125 description: "Used for overriding the ARTIFACT_VERSION"
131 server-name: 'gerrit.opnfv.org'
133 - patchset-created-event:
134 exclude-drafts: 'false'
135 exclude-trivial-rebase: 'false'
136 exclude-no-code-change: 'true'
137 - draft-published-event
138 - comment-added-contains-event:
139 comment-contains-value: 'recheck'
140 - comment-added-contains-event:
141 comment-contains-value: 'reverify'
143 - project-compare-type: 'ANT'
144 project-pattern: 'apex'
146 - branch-compare-type: 'ANT'
147 branch-pattern: '**/{branch}'
166 - description-setter:
167 description: "Built on $NODE_NAME"
170 condition: SUCCESSFUL
172 - name: 'apex-verify-unit-tests-{stream}'
173 current-parameters: false
174 predefined-parameters: |
175 GERRIT_BRANCH=$GERRIT_BRANCH
176 GERRIT_REFSPEC=$GERRIT_REFSPEC
177 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
178 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
179 node-parameters: false
180 kill-phase-on: FAILURE
185 condition: SUCCESSFUL
187 - name: 'apex-build-{stream}'
188 current-parameters: false
189 predefined-parameters: |
190 ARTIFACT_VERSION=$ARTIFACT_VERSION
191 GERRIT_BRANCH=$GERRIT_BRANCH
192 GERRIT_REFSPEC=$GERRIT_REFSPEC
193 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
194 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
195 node-parameters: false
196 kill-phase-on: FAILURE
201 condition: SUCCESSFUL
203 - name: 'apex-deploy-virtual-{stream}'
204 current-parameters: false
205 predefined-parameters: |
206 ARTIFACT_VERSION=$ARTIFACT_VERSION
207 DEPLOY_SCENARIO={verify-scenario}
209 GERRIT_BRANCH=$GERRIT_BRANCH
210 GERRIT_REFSPEC=$GERRIT_REFSPEC
211 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
212 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
213 node-parameters: true
214 kill-phase-on: FAILURE
219 condition: SUCCESSFUL
221 - name: 'functest-apex-virtual-suite-{stream}'
222 current-parameters: false
223 predefined-parameters: |
224 DEPLOY_SCENARIO={verify-scenario}
225 FUNCTEST_SUITE_NAME=healthcheck
226 GERRIT_BRANCH=$GERRIT_BRANCH
227 GERRIT_REFSPEC=$GERRIT_REFSPEC
228 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
229 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
230 node-parameters: true
235 # Verify Scenario Gate
237 name: 'apex-verify-gate-{stream}'
239 node: '{virtual-slave}'
243 project-type: 'multijob'
247 gs-pathname: '{gs-pathname}/dev'
253 default: https://gerrit.opnfv.org/gerrit/$PROJECT
254 description: "Used for overriding the GIT URL coming from parameters macro."
256 name: ARTIFACT_VERSION
258 description: "Used for overriding the ARTIFACT_VERSION"
265 server-name: 'gerrit.opnfv.org'
267 - comment-added-contains-event:
268 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
270 - project-compare-type: 'ANT'
271 project-pattern: 'apex'
273 - branch-compare-type: 'ANT'
274 branch-pattern: '**/{branch}'
295 condition: SUCCESSFUL
297 - name: 'apex-deploy-virtual-{stream}'
298 current-parameters: false
299 predefined-parameters: |
300 ARTIFACT_VERSION=$ARTIFACT_VERSION
303 GERRIT_BRANCH=$GERRIT_BRANCH
304 GERRIT_REFSPEC=$GERRIT_REFSPEC
305 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
306 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
307 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
308 node-parameters: true
309 kill-phase-on: FAILURE
314 condition: SUCCESSFUL
316 - name: 'functest-apex-virtual-suite-{stream}'
317 current-parameters: false
318 predefined-parameters: |
319 DEPLOY_SCENARIO={verify-scenario}
320 FUNCTEST_SUITE_NAME=healthcheck
321 GERRIT_BRANCH=$GERRIT_BRANCH
322 GERRIT_REFSPEC=$GERRIT_REFSPEC
323 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
324 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
325 node-parameters: true
331 name: 'apex-runner-cperf-{stream}'
334 project-type: 'multijob'
341 gs-pathname: '{gs-pathname}'
347 default: https://gerrit.opnfv.org/gerrit/$PROJECT
348 description: "Used for overriding the GIT URL coming from parameters macro."
356 use-build-blocker: false
366 - description-setter:
367 description: "Deployed on $NODE_NAME"
369 name: 'Baremetal Deploy'
372 - name: 'apex-deploy-baremetal-{stream}'
373 node-parameters: false
374 current-parameters: true
375 predefined-parameters: |
376 GERRIT_BRANCH=$GERRIT_BRANCH
379 DEPLOY_SCENARIO={verify-scenario}
380 kill-phase-on: FAILURE
385 condition: SUCCESSFUL
387 - name: 'cperf-apex-intel-pod2-daily-master'
388 node-parameters: true
389 current-parameters: false
390 predefined-parameters:
391 DEPLOY_SCENARIO={verify-scenario}
398 name: 'apex-build-{stream}'
400 # Job template for builds
402 # Required Variables:
403 # stream: branch with - in place of / (eg. stable)
404 # branch: branch (eg. stable)
405 node: '{build-slave}'
412 - '{project}-defaults'
417 gs-pathname: '{gs-pathname}'
430 max-per-node: {concurrent-builds}
434 use-build-blocker: true
437 - 'apex-verify-iso-{stream}'
442 properties-content: ARTIFACT_TYPE=rpm
443 - 'apex-upload-artifact'
447 name: 'apex-verify-iso-{stream}'
449 # Job template for builds
451 # Required Variables:
452 # stream: branch with - in place of / (eg. stable)
453 # branch: branch (eg. stable)
454 node: '{virtual-slave}'
465 gs-pathname: '{gs-pathname}'
468 default: https://gerrit.opnfv.org/gerrit/$PROJECT
469 description: "Used for overriding the GIT URL coming from parameters macro."
484 properties-content: ARTIFACT_TYPE=iso
485 - 'apex-upload-artifact'
489 name: 'apex-deploy-{platform}-{stream}'
491 node: 'apex-{platform}-{stream}'
506 - '{project}-{platform}-{stream}-defaults'
511 gs-pathname: '{gs-pathname}'
513 name: DEPLOY_SCENARIO
514 default: '{verify-scenario}'
515 description: "Scenario to deploy with."
519 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
524 use-build-blocker: true
536 - description-setter:
537 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
538 - 'apex-download-artifact'
540 - 'apex-workspace-cleanup'
543 # Baremetal Deploy and Test
545 name: 'apex-{scenario}-baremetal-{scenario_stream}'
547 project-type: 'multijob'
555 - '{project}-defaults'
556 - '{project}-baremetal-{scenario_stream}-defaults'
561 gs-pathname: '{gs-pathname}'
563 name: DEPLOY_SCENARIO
564 default: '{scenario}'
565 description: "Scenario to deploy with."
569 use-build-blocker: true
574 - 'apex-.*-promote.*'
576 - 'apex-.+-baremetal-.+'
582 - description-setter:
583 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
585 name: 'Baremetal Deploy'
588 - name: 'apex-deploy-baremetal-{scenario_stream}'
589 node-parameters: true
590 current-parameters: true
591 predefined-parameters: |
593 GERRIT_BRANCH=$GERRIT_BRANCH
595 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
596 kill-phase-on: FAILURE
600 name: 'OPNFV Test Suite'
601 condition: SUCCESSFUL
603 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
604 node-parameters: true
605 current-parameters: false
606 predefined-parameters:
607 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
615 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
617 project-type: 'multijob'
622 - '{project}-defaults'
623 - '{project}-baremetal-{scenario_stream}-defaults'
628 gs-pathname: '{gs-pathname}'
630 name: DEPLOY_SCENARIO
631 default: '{scenario}'
632 description: "Scenario to deploy with."
636 use-build-blocker: true
641 - 'apex-.*-promote.*'
643 - 'apex-testsuite-.+-baremetal-.+'
649 - description-setter:
650 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
655 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
656 node-parameters: true
657 current-parameters: false
658 predefined-parameters:
659 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
667 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
668 node-parameters: true
669 current-parameters: false
670 predefined-parameters:
671 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
676 condition-kind: current-status
677 condition-worst: SUCCESS
678 condtion-best: SUCCESS
679 on-evaluation-failure: mark-unstable
681 - shell: 'echo "Tests Passed"'
683 {% for stream in scenarios %}
686 name: 'apex-daily-{{ stream }}'
688 # Job template for daily build
690 # Required Variables:
691 # stream: branch with - in place of / (eg. stable)
692 # branch: branch (eg. stable)
693 project-type: 'multijob'
695 node: '{{ build_slave[stream] }}'
703 - '{project}-defaults'
704 - '{project}-baremetal-{{ stream }}-defaults'
707 branch: '{{ branch[stream] }}'
709 gs-pathname: '{{ gspathname[stream] }}'
715 - 'apex-{{ stream }}'
720 condition: SUCCESSFUL
722 - name: 'apex-build-{{ stream }}'
723 current-parameters: false
724 predefined-parameters: |
725 GERRIT_BRANCH=$GERRIT_BRANCH
727 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
728 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
729 node-parameters: true
730 kill-phase-on: FAILURE
734 name: 'Verify and upload ISO'
735 condition: SUCCESSFUL
737 - name: 'apex-verify-iso-{{ stream }}'
738 current-parameters: false
739 predefined-parameters: |
740 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
741 GERRIT_BRANCH=$GERRIT_BRANCH
743 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
744 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
745 node-parameters: true
746 kill-phase-on: FAILURE
750 name: Baremetal Deploy and Test Phase
751 condition: SUCCESSFUL
753 {% for scenario in scenarios[stream] %}
754 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
755 node-parameters: false
756 current-parameters: false
757 predefined-parameters: |
767 name: 'apex-create-snapshot'
769 # Job template for clean
771 # Required Variables:
772 # stream: branch with - in place of / (eg. stable)
778 !include-raw-escape: ./apex-snapshot-create.sh
782 name: 'apex-upload-snapshot'
784 # Job template for clean
786 # Required Variables:
787 # stream: branch with - in place of / (eg. stable)
793 properties-content: ARTIFACT_TYPE=snapshot
794 - 'apex-upload-artifact'
798 name: 'apex-csit-promote-daily-{stream}'
800 # Job template for promoting CSIT Snapshots
802 # Required Variables:
803 # stream: branch with - in place of / (eg. stable)
804 # branch: branch (eg. stable)
805 node: '{virtual-slave}'
806 project-type: 'multijob'
817 gs-pathname: '{gs-pathname}'
821 use-build-blocker: true
830 - timed: '0 12 * * 0'
835 condition: SUCCESSFUL
837 - name: 'apex-build-{stream}'
838 current-parameters: false
839 predefined-parameters: |
840 GERRIT_BRANCH=$GERRIT_BRANCH
841 GERRIT_REFSPEC=$GERRIT_REFSPEC
842 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
843 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
844 node-parameters: false
845 kill-phase-on: FAILURE
850 condition: SUCCESSFUL
852 - name: 'apex-deploy-virtual-{stream}'
853 current-parameters: false
854 predefined-parameters: |
855 DEPLOY_SCENARIO=os-odl_l3-csit-noha
857 GERRIT_BRANCH=$GERRIT_BRANCH
858 GERRIT_REFSPEC=$GERRIT_REFSPEC
859 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
860 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
862 node-parameters: true
863 kill-phase-on: FAILURE
868 condition: SUCCESSFUL
870 - name: 'functest-apex-virtual-suite-{stream}'
871 current-parameters: false
872 predefined-parameters: |
873 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
874 FUNCTEST_SUITE_NAME=tempest_smoke_serial
875 GERRIT_BRANCH=$GERRIT_BRANCH
876 GERRIT_REFSPEC=$GERRIT_REFSPEC
877 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
878 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
879 node-parameters: true
880 kill-phase-on: FAILURE
884 name: create snapshot
885 condition: SUCCESSFUL
887 - name: 'apex-create-snapshot'
888 current-parameters: false
889 predefined-parameters: |
891 node-parameters: true
892 kill-phase-on: FAILURE
896 name: upload snapshot
897 condition: SUCCESSFUL
899 - name: 'apex-upload-snapshot'
900 current-parameters: false
901 predefined-parameters: |
903 node-parameters: true
904 kill-phase-on: FAILURE
910 name: 'apex-fdio-promote-daily-{stream}'
912 # Job template for promoting CSIT Snapshots
914 # Required Variables:
915 # stream: branch with - in place of / (eg. stable)
916 # branch: branch (eg. stable)
917 node: '{virtual-slave}'
918 project-type: 'multijob'
929 gs-pathname: '{gs-pathname}'
933 use-build-blocker: true
944 condition: SUCCESSFUL
946 - name: 'apex-build-{stream}'
947 current-parameters: false
948 predefined-parameters: |
949 GERRIT_BRANCH=$GERRIT_BRANCH
950 GERRIT_REFSPEC=$GERRIT_REFSPEC
951 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
952 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
953 node-parameters: false
954 kill-phase-on: FAILURE
959 condition: SUCCESSFUL
961 - name: 'apex-deploy-virtual-{stream}'
962 current-parameters: false
963 predefined-parameters: |
964 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
966 GERRIT_BRANCH=$GERRIT_BRANCH
967 GERRIT_REFSPEC=$GERRIT_REFSPEC
968 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
969 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
971 node-parameters: true
972 kill-phase-on: FAILURE
976 name: create snapshot
977 condition: SUCCESSFUL
979 - name: 'apex-create-snapshot'
980 current-parameters: false
981 predefined-parameters: |
983 node-parameters: true
984 kill-phase-on: FAILURE
988 name: upload snapshot
989 condition: SUCCESSFUL
991 - name: 'apex-upload-snapshot'
992 current-parameters: false
993 predefined-parameters: |
995 node-parameters: true
996 kill-phase-on: FAILURE
1000 ########################
1002 ########################
1004 name: apex-parameter
1009 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1011 name: ARTIFACT_VERSION
1013 description: "Artifact version type"
1015 name: BUILD_DIRECTORY
1016 default: $WORKSPACE/.build
1017 description: "Directory where the build artifact will be located upon the completion of the build."
1019 name: CACHE_DIRECTORY
1020 default: $HOME/opnfv/apex-cache{gs-pathname}
1021 description: "Directory where the cache to be used during the build is located."
1024 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1025 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1028 default: '{gs-pathname}'
1029 description: "Version directory where opnfv artifacts are stored in gs repository"
1032 default: $GS_BASE{gs-pathname}
1033 description: "URL to Google Storage."
1037 description: "Flag to know if we should promote/upload snapshot artifacts."
1039 ########################
1041 ########################
1043 name: 'apex-unit-test'
1046 !include-raw: ./apex-unit-test.sh
1052 !include-raw: ./apex-build.sh
1055 name: 'apex-workspace-cleanup'
1058 !include-raw: ./apex-workspace-cleanup.sh
1061 name: 'apex-iso-verify'
1064 !include-raw: ./apex-iso-verify.sh
1068 name: 'apex-upload-artifact'
1071 !include-raw: ./apex-upload-artifact.sh
1074 name: 'apex-download-artifact'
1077 !include-raw: ./apex-download-artifact.sh
1083 !include-raw: ./apex-deploy.sh
1085 #######################
1087 ########################
1091 - timed: '0 12 * * *'
1095 - timed: '0 3 1 1 7'