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'
32 branch: 'stable/danube'
33 gs-pathname: '/danube'
34 build-slave: 'apex-build-danube'
35 virtual-slave: 'apex-virtual-danube'
36 baremetal-slave: 'apex-baremetal-danube'
37 verify-scenario: 'os-odl_l3-nofeature-ha'
47 name: 'apex-verify-unit-tests-{stream}'
55 gs-pathname: '{gs-pathname}'
65 server-name: 'gerrit.opnfv.org'
67 - patchset-created-event:
68 exclude-drafts: 'false'
69 exclude-trivial-rebase: 'false'
70 exclude-no-code-change: 'true'
71 - draft-published-event
72 - comment-added-contains-event:
73 comment-contains-value: 'recheck'
74 - comment-added-contains-event:
75 comment-contains-value: 'reverify'
77 - project-compare-type: 'ANT'
78 project-pattern: 'apex'
80 - branch-compare-type: 'ANT'
81 branch-pattern: '**/{branch}'
94 !include-raw-escape: ./apex-unit-test.sh
98 name: 'apex-verify-{stream}'
100 node: '{virtual-slave}'
104 project-type: 'multijob'
108 gs-pathname: '{gs-pathname}/dev'
113 name: ARTIFACT_VERSION
115 description: "Used for overriding the ARTIFACT_VERSION"
121 server-name: 'gerrit.opnfv.org'
123 - patchset-created-event:
124 exclude-drafts: 'false'
125 exclude-trivial-rebase: 'false'
126 exclude-no-code-change: 'true'
127 - draft-published-event
128 - comment-added-contains-event:
129 comment-contains-value: 'recheck'
130 - comment-added-contains-event:
131 comment-contains-value: 'reverify'
133 - project-compare-type: 'ANT'
134 project-pattern: 'apex'
136 - branch-compare-type: 'ANT'
137 branch-pattern: '**/{branch}'
156 - description-setter:
157 description: "Built on $NODE_NAME"
160 condition: SUCCESSFUL
162 - name: 'apex-verify-unit-tests-{stream}'
163 current-parameters: false
164 predefined-parameters: |
165 GERRIT_BRANCH=$GERRIT_BRANCH
166 GERRIT_REFSPEC=$GERRIT_REFSPEC
167 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
168 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
169 node-parameters: false
170 kill-phase-on: FAILURE
175 condition: SUCCESSFUL
177 - name: 'apex-build-{stream}'
178 current-parameters: false
179 predefined-parameters: |
180 ARTIFACT_VERSION=$ARTIFACT_VERSION
181 GERRIT_BRANCH=$GERRIT_BRANCH
182 GERRIT_REFSPEC=$GERRIT_REFSPEC
183 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
184 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
185 node-parameters: false
186 kill-phase-on: FAILURE
191 condition: SUCCESSFUL
193 - name: 'apex-deploy-virtual-{stream}'
194 current-parameters: false
195 predefined-parameters: |
196 ARTIFACT_VERSION=$ARTIFACT_VERSION
197 DEPLOY_SCENARIO={verify-scenario}
199 GERRIT_BRANCH=$GERRIT_BRANCH
200 GERRIT_REFSPEC=$GERRIT_REFSPEC
201 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
202 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
203 node-parameters: true
204 kill-phase-on: FAILURE
209 condition: SUCCESSFUL
211 - name: 'functest-apex-virtual-suite-{stream}'
212 current-parameters: false
213 predefined-parameters: |
214 DEPLOY_SCENARIO={verify-scenario}
215 FUNCTEST_SUITE_NAME=healthcheck
216 GERRIT_BRANCH=$GERRIT_BRANCH
217 GERRIT_REFSPEC=$GERRIT_REFSPEC
218 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
219 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
220 node-parameters: true
225 # Verify Scenario Gate
227 name: 'apex-verify-gate-{stream}'
229 node: '{virtual-slave}'
233 project-type: 'multijob'
237 gs-pathname: '{gs-pathname}/dev'
243 default: https://gerrit.opnfv.org/gerrit/$PROJECT
244 description: "Used for overriding the GIT URL coming from parameters macro."
246 name: ARTIFACT_VERSION
248 description: "Used for overriding the ARTIFACT_VERSION"
255 server-name: 'gerrit.opnfv.org'
257 - comment-added-contains-event:
258 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
260 - project-compare-type: 'ANT'
261 project-pattern: 'apex'
263 - branch-compare-type: 'ANT'
264 branch-pattern: '**/{branch}'
285 condition: SUCCESSFUL
287 - name: 'apex-deploy-virtual-{stream}'
288 current-parameters: false
289 predefined-parameters: |
290 ARTIFACT_VERSION=$ARTIFACT_VERSION
293 GERRIT_BRANCH=$GERRIT_BRANCH
294 GERRIT_REFSPEC=$GERRIT_REFSPEC
295 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
296 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
297 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
298 node-parameters: true
299 kill-phase-on: FAILURE
304 condition: SUCCESSFUL
306 - name: 'functest-apex-virtual-suite-{stream}'
307 current-parameters: false
308 predefined-parameters: |
309 DEPLOY_SCENARIO={verify-scenario}
310 FUNCTEST_SUITE_NAME=healthcheck
311 GERRIT_BRANCH=$GERRIT_BRANCH
312 GERRIT_REFSPEC=$GERRIT_REFSPEC
313 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
314 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
315 node-parameters: true
321 name: 'apex-runner-cperf-{stream}'
324 project-type: 'multijob'
331 gs-pathname: '{gs-pathname}'
337 default: https://gerrit.opnfv.org/gerrit/$PROJECT
338 description: "Used for overriding the GIT URL coming from parameters macro."
346 use-build-blocker: false
356 - description-setter:
357 description: "Deployed on $NODE_NAME"
359 name: 'Baremetal Deploy'
362 - name: 'apex-deploy-baremetal-{stream}'
363 node-parameters: false
364 current-parameters: true
365 predefined-parameters: |
366 GERRIT_BRANCH=$GERRIT_BRANCH
369 DEPLOY_SCENARIO={verify-scenario}
370 kill-phase-on: FAILURE
375 condition: SUCCESSFUL
377 - name: 'cperf-apex-intel-pod2-daily-master'
378 node-parameters: true
379 current-parameters: false
380 predefined-parameters:
381 DEPLOY_SCENARIO={verify-scenario}
388 name: 'apex-build-{stream}'
390 # Job template for builds
392 # Required Variables:
393 # stream: branch with - in place of / (eg. stable)
394 # branch: branch (eg. stable)
395 node: '{build-slave}'
402 - '{project}-defaults'
407 gs-pathname: '{gs-pathname}'
420 max-per-node: {concurrent-builds}
424 use-build-blocker: true
427 - 'apex-verify-iso-{stream}'
432 properties-content: ARTIFACT_TYPE=rpm
433 - 'apex-upload-artifact'
437 name: 'apex-verify-iso-{stream}'
439 # Job template for builds
441 # Required Variables:
442 # stream: branch with - in place of / (eg. stable)
443 # branch: branch (eg. stable)
444 node: '{virtual-slave}'
455 gs-pathname: '{gs-pathname}'
458 default: https://gerrit.opnfv.org/gerrit/$PROJECT
459 description: "Used for overriding the GIT URL coming from parameters macro."
474 properties-content: ARTIFACT_TYPE=iso
475 - 'apex-upload-artifact'
479 name: 'apex-deploy-{platform}-{stream}'
481 # Job template for virtual deployment
483 # Required Variables:
484 # stream: branch with - in place of / (eg. stable)
485 # branch: branch (eg. stable)
486 node: 'apex-{platform}-{stream}'
505 gs-pathname: '{gs-pathname}'
507 name: DEPLOY_SCENARIO
508 default: '{verify-scenario}'
509 description: "Scenario to deploy with."
513 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
518 use-build-blocker: true
530 - description-setter:
531 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
532 - 'apex-download-artifact'
534 - 'apex-workspace-cleanup'
537 # Baremetal Deploy and Test
539 name: 'apex-run-deploy-test-baremetal-{stream}'
541 # Job template for daily build
543 # Required Variables:
544 # stream: branch with - in place of / (eg. stable)
545 # branch: branch (eg. stable)
546 project-type: 'multijob'
554 - '{project}-defaults'
555 - '{project}-baremetal-{stream}-defaults'
560 gs-pathname: '{gs-pathname}'
562 name: DEPLOY_SCENARIO
563 default: '{verify-scenario}'
564 description: "Scenario to deploy with."
568 use-build-blocker: true
573 - 'apex-.*-promote.*'
576 - description-setter:
577 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
579 name: 'Baremetal Deploy'
582 - name: 'apex-deploy-baremetal-{stream}'
583 node-parameters: true
584 current-parameters: true
585 predefined-parameters: |
587 GERRIT_BRANCH=$GERRIT_BRANCH
589 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
590 kill-phase-on: FAILURE
597 - name: 'functest-apex-baremetal-daily-{stream}'
598 node-parameters: true
599 current-parameters: false
600 predefined-parameters:
601 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
609 - name: 'yardstick-apex-baremetal-daily-{stream}'
610 node-parameters: true
611 current-parameters: false
612 predefined-parameters:
613 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
618 {% for stream in scenarios %}
621 name: 'apex-daily-{{ stream }}'
623 # Job template for daily build
625 # Required Variables:
626 # stream: branch with - in place of / (eg. stable)
627 # branch: branch (eg. stable)
628 project-type: 'multijob'
630 node: '{{ build_slave[stream] }}'
638 - '{project}-defaults'
639 - '{project}-baremetal-{{ stream }}-defaults'
642 branch: '{{ branch[stream] }}'
644 gs-pathname: '{{ gspathname[stream] }}'
650 - 'apex-{{ stream }}'
655 condition: SUCCESSFUL
657 - name: 'apex-build-{{ stream }}'
658 current-parameters: false
659 predefined-parameters: |
660 GERRIT_BRANCH=$GERRIT_BRANCH
662 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
663 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
664 node-parameters: true
665 kill-phase-on: FAILURE
669 name: 'Verify and upload ISO'
670 condition: SUCCESSFUL
672 - name: 'apex-verify-iso-{{ stream }}'
673 current-parameters: false
674 predefined-parameters: |
675 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
676 GERRIT_BRANCH=$GERRIT_BRANCH
678 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
679 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
680 node-parameters: true
681 kill-phase-on: FAILURE
685 name: Baremetal Deploy and Test Phase
686 condition: SUCCESSFUL
688 {% for scenario in scenarios[stream] %}
689 - name: 'apex-run-deploy-test-baremetal-{{ stream }}'
690 node-parameters: false
691 current-parameters: false
692 predefined-parameters: |
693 DEPLOY_SCENARIO={{scenario}}
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 3 1 1 7'
1031 - timed: '0 12 * * *'