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.*'
577 - description-setter:
578 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
580 name: 'Baremetal Deploy'
583 - name: 'apex-deploy-baremetal-{scenario_stream}'
584 node-parameters: true
585 current-parameters: true
586 predefined-parameters: |
588 GERRIT_BRANCH=$GERRIT_BRANCH
590 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
591 kill-phase-on: FAILURE
596 condition: SUCCESSFUL
598 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
599 node-parameters: true
600 current-parameters: false
601 predefined-parameters:
602 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
610 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
611 node-parameters: true
612 current-parameters: false
613 predefined-parameters:
614 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
619 {% for stream in scenarios %}
622 name: 'apex-daily-{{ stream }}'
624 # Job template for daily build
626 # Required Variables:
627 # stream: branch with - in place of / (eg. stable)
628 # branch: branch (eg. stable)
629 project-type: 'multijob'
631 node: '{{ build_slave[stream] }}'
639 - '{project}-defaults'
640 - '{project}-baremetal-{{ stream }}-defaults'
643 branch: '{{ branch[stream] }}'
645 gs-pathname: '{{ gspathname[stream] }}'
651 - 'apex-{{ stream }}'
656 condition: SUCCESSFUL
658 - name: 'apex-build-{{ stream }}'
659 current-parameters: false
660 predefined-parameters: |
661 GERRIT_BRANCH=$GERRIT_BRANCH
663 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
664 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
665 node-parameters: true
666 kill-phase-on: FAILURE
670 name: 'Verify and upload ISO'
671 condition: SUCCESSFUL
673 - name: 'apex-verify-iso-{{ stream }}'
674 current-parameters: false
675 predefined-parameters: |
676 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
677 GERRIT_BRANCH=$GERRIT_BRANCH
679 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
680 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
681 node-parameters: true
682 kill-phase-on: FAILURE
686 name: Baremetal Deploy and Test Phase
687 condition: SUCCESSFUL
689 {% for scenario in scenarios[stream] %}
690 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
691 node-parameters: false
692 current-parameters: false
693 predefined-parameters: |
703 name: 'apex-create-snapshot'
705 # Job template for clean
707 # Required Variables:
708 # stream: branch with - in place of / (eg. stable)
714 !include-raw-escape: ./apex-snapshot-create.sh
718 name: 'apex-upload-snapshot'
720 # Job template for clean
722 # Required Variables:
723 # stream: branch with - in place of / (eg. stable)
729 properties-content: ARTIFACT_TYPE=snapshot
730 - 'apex-upload-artifact'
734 name: 'apex-csit-promote-daily-{stream}'
736 # Job template for promoting CSIT Snapshots
738 # Required Variables:
739 # stream: branch with - in place of / (eg. stable)
740 # branch: branch (eg. stable)
741 node: '{virtual-slave}'
742 project-type: 'multijob'
753 gs-pathname: '{gs-pathname}'
757 use-build-blocker: true
766 - timed: '0 12 * * 0'
771 condition: SUCCESSFUL
773 - name: 'apex-build-{stream}'
774 current-parameters: false
775 predefined-parameters: |
776 GERRIT_BRANCH=$GERRIT_BRANCH
777 GERRIT_REFSPEC=$GERRIT_REFSPEC
778 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
779 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
780 node-parameters: false
781 kill-phase-on: FAILURE
786 condition: SUCCESSFUL
788 - name: 'apex-deploy-virtual-{stream}'
789 current-parameters: false
790 predefined-parameters: |
791 DEPLOY_SCENARIO=os-odl_l3-csit-noha
793 GERRIT_BRANCH=$GERRIT_BRANCH
794 GERRIT_REFSPEC=$GERRIT_REFSPEC
795 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
796 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
798 node-parameters: true
799 kill-phase-on: FAILURE
804 condition: SUCCESSFUL
806 - name: 'functest-apex-virtual-suite-{stream}'
807 current-parameters: false
808 predefined-parameters: |
809 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
810 FUNCTEST_SUITE_NAME=tempest_smoke_serial
811 GERRIT_BRANCH=$GERRIT_BRANCH
812 GERRIT_REFSPEC=$GERRIT_REFSPEC
813 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
814 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
815 node-parameters: true
816 kill-phase-on: FAILURE
820 name: create snapshot
821 condition: SUCCESSFUL
823 - name: 'apex-create-snapshot'
824 current-parameters: false
825 predefined-parameters: |
827 node-parameters: true
828 kill-phase-on: FAILURE
832 name: upload snapshot
833 condition: SUCCESSFUL
835 - name: 'apex-upload-snapshot'
836 current-parameters: false
837 predefined-parameters: |
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_netvirt-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
907 node-parameters: true
908 kill-phase-on: FAILURE
912 name: create snapshot
913 condition: SUCCESSFUL
915 - name: 'apex-create-snapshot'
916 current-parameters: false
917 predefined-parameters: |
919 node-parameters: true
920 kill-phase-on: FAILURE
924 name: upload snapshot
925 condition: SUCCESSFUL
927 - name: 'apex-upload-snapshot'
928 current-parameters: false
929 predefined-parameters: |
931 node-parameters: true
932 kill-phase-on: FAILURE
936 ########################
938 ########################
945 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
947 name: ARTIFACT_VERSION
949 description: "Artifact version type"
951 name: BUILD_DIRECTORY
952 default: $WORKSPACE/.build
953 description: "Directory where the build artifact will be located upon the completion of the build."
955 name: CACHE_DIRECTORY
956 default: $HOME/opnfv/apex-cache{gs-pathname}
957 description: "Directory where the cache to be used during the build is located."
960 default: https://gerrit.opnfv.org/gerrit/$PROJECT
961 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
964 default: '{gs-pathname}'
965 description: "Version directory where opnfv artifacts are stored in gs repository"
968 default: $GS_BASE{gs-pathname}
969 description: "URL to Google Storage."
973 description: "Flag to know if we should promote/upload snapshot artifacts."
975 ########################
977 ########################
979 name: 'apex-unit-test'
982 !include-raw: ./apex-unit-test.sh
988 !include-raw: ./apex-build.sh
991 name: 'apex-workspace-cleanup'
994 !include-raw: ./apex-workspace-cleanup.sh
997 name: 'apex-iso-verify'
1000 !include-raw: ./apex-iso-verify.sh
1004 name: 'apex-upload-artifact'
1007 !include-raw: ./apex-upload-artifact.sh
1010 name: 'apex-download-artifact'
1013 !include-raw: ./apex-download-artifact.sh
1019 !include-raw: ./apex-deploy.sh
1021 #######################
1023 ########################
1027 - timed: '0 12 * * *'
1031 - timed: '0 3 1 1 7'