5 - 'apex-verify-{stream}'
6 - 'apex-verify-gate-{stream}'
7 - 'apex-verify-unit-tests-{stream}'
8 - 'apex-runner-cperf-{stream}'
9 - 'apex-deploy-{platform}-{stream}'
12 - 'apex-csit-promote-daily-{stream}'
13 - 'apex-fdio-promote-daily-{stream}'
14 - 'apex-{scenario}-baremetal-{scenario_stream}'
15 - 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
16 - 'apex-upload-snapshot'
17 - 'apex-create-snapshot'
18 # stream: branch with - in place of / (eg. stable-arno)
19 # branch: branch (eg. stable/arno)
24 build-slave: 'apex-build-master'
25 virtual-slave: 'apex-virtual-master'
26 baremetal-slave: 'apex-baremetal-master'
27 verify-scenario: 'os-odl-nofeature-ha'
28 scenario_stream: 'master'
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'
37 scenario_stream: 'danube'
41 {%- for stream in scenarios %}
42 {%- for scenario in scenarios[stream] %}
54 name: 'apex-verify-unit-tests-{stream}'
62 gs-pathname: '{gs-pathname}'
72 server-name: 'gerrit.opnfv.org'
74 - patchset-created-event:
75 exclude-drafts: 'false'
76 exclude-trivial-rebase: 'false'
77 exclude-no-code-change: 'true'
78 - draft-published-event
79 - comment-added-contains-event:
80 comment-contains-value: 'recheck'
81 - comment-added-contains-event:
82 comment-contains-value: 'reverify'
84 - project-compare-type: 'ANT'
85 project-pattern: 'apex'
87 - branch-compare-type: 'ANT'
88 branch-pattern: '**/{branch}'
91 pattern: 'apex/tests/**'
101 !include-raw-escape: ./apex-unit-test.sh
105 name: 'apex-verify-{stream}'
107 node: '{virtual-slave}'
111 project-type: 'multijob'
115 gs-pathname: '{gs-pathname}/dev'
120 name: ARTIFACT_VERSION
122 description: "Used for overriding the ARTIFACT_VERSION"
128 server-name: 'gerrit.opnfv.org'
130 - patchset-created-event:
131 exclude-drafts: 'false'
132 exclude-trivial-rebase: 'false'
133 exclude-no-code-change: 'true'
134 - draft-published-event
135 - comment-added-contains-event:
136 comment-contains-value: 'recheck'
137 - comment-added-contains-event:
138 comment-contains-value: 'reverify'
140 - project-compare-type: 'ANT'
141 project-pattern: 'apex'
143 - branch-compare-type: 'ANT'
144 branch-pattern: '**/{branch}'
160 use-build-blocker: true
170 - description-setter:
171 description: "Built on $NODE_NAME"
174 condition: SUCCESSFUL
176 - name: 'apex-verify-unit-tests-{stream}'
177 current-parameters: false
178 predefined-parameters: |
179 GERRIT_BRANCH=$GERRIT_BRANCH
180 GERRIT_REFSPEC=$GERRIT_REFSPEC
181 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
182 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
183 node-parameters: false
184 kill-phase-on: FAILURE
189 condition: SUCCESSFUL
191 - name: 'apex-build-{stream}'
192 current-parameters: false
193 predefined-parameters: |
194 ARTIFACT_VERSION=$ARTIFACT_VERSION
195 GERRIT_BRANCH=$GERRIT_BRANCH
196 GERRIT_REFSPEC=$GERRIT_REFSPEC
197 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
198 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
199 node-parameters: false
200 kill-phase-on: FAILURE
205 condition: SUCCESSFUL
207 - name: 'apex-deploy-virtual-{stream}'
208 current-parameters: false
209 predefined-parameters: |
210 ARTIFACT_VERSION=$ARTIFACT_VERSION
211 DEPLOY_SCENARIO={verify-scenario}
213 GERRIT_BRANCH=$GERRIT_BRANCH
214 GERRIT_REFSPEC=$GERRIT_REFSPEC
215 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
216 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
217 node-parameters: true
218 kill-phase-on: FAILURE
223 condition: SUCCESSFUL
225 - name: 'functest-apex-virtual-suite-{stream}'
226 current-parameters: false
227 predefined-parameters: |
228 DEPLOY_SCENARIO={verify-scenario}
229 FUNCTEST_SUITE_NAME=healthcheck
230 GERRIT_BRANCH=$GERRIT_BRANCH
231 GERRIT_REFSPEC=$GERRIT_REFSPEC
232 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
233 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
234 node-parameters: true
239 # Verify Scenario Gate
241 name: 'apex-verify-gate-{stream}'
243 node: '{virtual-slave}'
247 project-type: 'multijob'
251 gs-pathname: '{gs-pathname}/dev'
257 default: https://gerrit.opnfv.org/gerrit/$PROJECT
258 description: "Used for overriding the GIT URL coming from parameters macro."
260 name: ARTIFACT_VERSION
262 description: "Used for overriding the ARTIFACT_VERSION"
269 server-name: 'gerrit.opnfv.org'
271 - comment-added-contains-event:
272 comment-contains-value: '^Patch Set [0-9]+: Code-Review\+2.*start-gate-scenario:.*'
274 - project-compare-type: 'ANT'
275 project-pattern: 'apex'
277 - branch-compare-type: 'ANT'
278 branch-pattern: '**/{branch}'
292 use-build-blocker: true
304 condition: SUCCESSFUL
306 - name: 'apex-deploy-virtual-{stream}'
307 current-parameters: false
308 predefined-parameters: |
309 ARTIFACT_VERSION=$ARTIFACT_VERSION
312 GERRIT_BRANCH=$GERRIT_BRANCH
313 GERRIT_REFSPEC=$GERRIT_REFSPEC
314 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
315 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
316 GERRIT_EVENT_COMMENT_TEXT=$GERRIT_EVENT_COMMENT_TEXT
317 node-parameters: true
318 kill-phase-on: FAILURE
323 condition: SUCCESSFUL
325 - name: 'functest-apex-virtual-suite-{stream}'
326 current-parameters: false
327 predefined-parameters: |
328 DEPLOY_SCENARIO={verify-scenario}
329 FUNCTEST_SUITE_NAME=healthcheck
330 GERRIT_BRANCH=$GERRIT_BRANCH
331 GERRIT_REFSPEC=$GERRIT_REFSPEC
332 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
333 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
334 node-parameters: true
340 name: 'apex-runner-cperf-{stream}'
343 project-type: 'multijob'
350 gs-pathname: '{gs-pathname}'
356 default: https://gerrit.opnfv.org/gerrit/$PROJECT
357 description: "Used for overriding the GIT URL coming from parameters macro."
365 use-build-blocker: false
375 - description-setter:
376 description: "Deployed on $NODE_NAME"
378 name: 'Baremetal Deploy'
381 - name: 'apex-deploy-baremetal-{stream}'
382 node-parameters: false
383 current-parameters: true
384 predefined-parameters: |
385 GERRIT_BRANCH=$GERRIT_BRANCH
388 DEPLOY_SCENARIO={verify-scenario}
389 kill-phase-on: FAILURE
394 condition: SUCCESSFUL
396 - name: 'cperf-apex-intel-pod2-daily-master'
397 node-parameters: true
398 current-parameters: false
399 predefined-parameters:
400 DEPLOY_SCENARIO={verify-scenario}
407 name: 'apex-deploy-{platform}-{stream}'
409 node: 'apex-{platform}-{stream}'
424 - '{project}-{platform}-{stream}-defaults'
429 gs-pathname: '{gs-pathname}'
431 name: DEPLOY_SCENARIO
432 default: '{verify-scenario}'
433 description: "Scenario to deploy with."
437 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
442 use-build-blocker: true
456 - description-setter:
457 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
458 - 'apex-download-artifact'
460 - 'apex-workspace-cleanup'
463 # Baremetal Deploy and Test
465 name: 'apex-{scenario}-baremetal-{scenario_stream}'
467 project-type: 'multijob'
475 - '{project}-defaults'
476 - '{project}-baremetal-{scenario_stream}-defaults'
481 gs-pathname: '{gs-pathname}'
483 name: DEPLOY_SCENARIO
484 default: '{scenario}'
485 description: "Scenario to deploy with."
489 use-build-blocker: true
494 - 'apex-.*-promote.*'
496 - 'apex-.+-baremetal-.+'
502 - description-setter:
503 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
505 name: 'Baremetal Deploy'
506 condition: SUCCESSFUL
508 - name: 'apex-deploy-baremetal-{scenario_stream}'
509 node-parameters: true
510 current-parameters: true
511 predefined-parameters: |
513 GERRIT_BRANCH=$GERRIT_BRANCH
515 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
516 kill-phase-on: FAILURE
520 name: 'OPNFV Test Suite'
522 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
523 node-parameters: true
524 current-parameters: false
525 predefined-parameters:
526 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
534 !include-raw-escape: ./update-build-result.groovy
538 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
540 project-type: 'multijob'
545 - '{project}-defaults'
546 - '{project}-baremetal-{scenario_stream}-defaults'
551 gs-pathname: '{gs-pathname}'
553 name: DEPLOY_SCENARIO
554 default: '{scenario}'
555 description: "Scenario to deploy with."
559 use-build-blocker: true
564 - 'apex-.*-promote.*'
566 - 'apex-testsuite-.+-baremetal-.+'
572 - description-setter:
573 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
578 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
579 node-parameters: true
580 current-parameters: false
581 predefined-parameters:
582 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
590 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
591 node-parameters: true
592 current-parameters: false
593 predefined-parameters:
594 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
602 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
603 node-parameters: true
604 current-parameters: false
605 predefined-parameters:
606 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
608 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
615 # - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
616 # node-parameters: true
617 # current-parameters: false
618 # predefined-parameters:
619 # DEPLOY_SCENARIO=$DEPLOY_SCENARIO
620 # kill-phase-on: NEVER
621 # abort-all-job: false
622 # git-revision: false
623 # Build status is always success due conditional plugin prefetching
624 # build status before multijob phases execute
625 # - conditional-step:
626 # condition-kind: current-status
627 # condition-worst: SUCCESS
628 # condtion-best: SUCCESS
629 # on-evaluation-failure: mark-unstable
631 # - shell: 'echo "Tests Passed"'
633 {% for stream in scenarios %}
636 name: 'apex-daily-{{ stream }}'
638 # Job template for daily build
640 # Required Variables:
641 # stream: branch with - in place of / (eg. stable)
642 # branch: branch (eg. stable)
643 project-type: 'multijob'
645 node: '{{ build_slave[stream] }}'
653 - '{project}-defaults'
654 - '{project}-baremetal-{{ stream }}-defaults'
657 branch: '{{ branch[stream] }}'
659 gs-pathname: '{{ gspathname[stream] }}'
665 - 'apex-{{ stream }}'
670 condition: SUCCESSFUL
672 - name: 'apex-build-{{ stream }}'
673 current-parameters: false
674 predefined-parameters: |
675 GERRIT_BRANCH=$GERRIT_BRANCH
677 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
678 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
679 node-parameters: true
680 kill-phase-on: FAILURE
684 name: 'Verify and upload ISO'
685 condition: SUCCESSFUL
687 - name: 'apex-verify-iso-{{ stream }}'
688 current-parameters: false
689 predefined-parameters: |
690 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{{ stream }}/.build
691 GERRIT_BRANCH=$GERRIT_BRANCH
693 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
694 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
695 node-parameters: true
696 kill-phase-on: FAILURE
700 name: Baremetal Deploy and Test Phase
701 condition: SUCCESSFUL
703 {% for scenario in scenarios[stream] %}
704 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
705 node-parameters: false
706 current-parameters: false
707 predefined-parameters: |
717 name: 'apex-create-snapshot'
719 # Job template for clean
721 # Required Variables:
722 # stream: branch with - in place of / (eg. stable)
728 !include-raw-escape: ./apex-snapshot-create.sh
732 name: 'apex-upload-snapshot'
734 # Job template for clean
736 # Required Variables:
737 # stream: branch with - in place of / (eg. stable)
743 properties-content: ARTIFACT_TYPE=snapshot
744 - 'apex-upload-artifact'
748 name: 'apex-csit-promote-daily-{stream}'
750 # Job template for promoting CSIT Snapshots
752 # Required Variables:
753 # stream: branch with - in place of / (eg. stable)
754 # branch: branch (eg. stable)
755 node: '{virtual-slave}'
756 project-type: 'multijob'
767 gs-pathname: '{gs-pathname}'
771 use-build-blocker: true
780 - timed: '0 12 * * 0'
785 condition: SUCCESSFUL
787 - name: 'apex-build-{stream}'
788 current-parameters: false
789 predefined-parameters: |
790 GERRIT_BRANCH=$GERRIT_BRANCH
791 GERRIT_REFSPEC=$GERRIT_REFSPEC
792 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
793 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
794 node-parameters: false
795 kill-phase-on: FAILURE
800 condition: SUCCESSFUL
802 - name: 'apex-deploy-virtual-{stream}'
803 current-parameters: false
804 predefined-parameters: |
805 DEPLOY_SCENARIO=os-odl_l3-csit-noha
807 GERRIT_BRANCH=$GERRIT_BRANCH
808 GERRIT_REFSPEC=$GERRIT_REFSPEC
809 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
810 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
812 node-parameters: true
813 kill-phase-on: FAILURE
818 condition: SUCCESSFUL
820 - name: 'functest-apex-virtual-suite-{stream}'
821 current-parameters: false
822 predefined-parameters: |
823 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
824 FUNCTEST_SUITE_NAME=tempest_smoke_serial
825 GERRIT_BRANCH=$GERRIT_BRANCH
826 GERRIT_REFSPEC=$GERRIT_REFSPEC
827 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
828 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
829 node-parameters: true
830 kill-phase-on: FAILURE
834 name: create snapshot
835 condition: SUCCESSFUL
837 - name: 'apex-create-snapshot'
838 current-parameters: false
839 predefined-parameters: |
841 node-parameters: true
842 kill-phase-on: FAILURE
846 name: upload snapshot
847 condition: SUCCESSFUL
849 - name: 'apex-upload-snapshot'
850 current-parameters: false
851 predefined-parameters: |
853 node-parameters: true
854 kill-phase-on: FAILURE
860 name: 'apex-fdio-promote-daily-{stream}'
862 # Job template for promoting CSIT Snapshots
864 # Required Variables:
865 # stream: branch with - in place of / (eg. stable)
866 # branch: branch (eg. stable)
867 node: '{virtual-slave}'
868 project-type: 'multijob'
879 gs-pathname: '{gs-pathname}'
883 use-build-blocker: true
894 condition: SUCCESSFUL
896 - name: 'apex-build-{stream}'
897 current-parameters: false
898 predefined-parameters: |
899 GERRIT_BRANCH=$GERRIT_BRANCH
900 GERRIT_REFSPEC=$GERRIT_REFSPEC
901 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
902 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
903 node-parameters: false
904 kill-phase-on: FAILURE
909 condition: SUCCESSFUL
911 - name: 'apex-deploy-virtual-{stream}'
912 current-parameters: false
913 predefined-parameters: |
914 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
916 GERRIT_BRANCH=$GERRIT_BRANCH
917 GERRIT_REFSPEC=$GERRIT_REFSPEC
918 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
919 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
921 node-parameters: true
922 kill-phase-on: FAILURE
926 name: create snapshot
927 condition: SUCCESSFUL
929 - name: 'apex-create-snapshot'
930 current-parameters: false
931 predefined-parameters: |
933 node-parameters: true
934 kill-phase-on: FAILURE
938 name: upload snapshot
939 condition: SUCCESSFUL
941 - name: 'apex-upload-snapshot'
942 current-parameters: false
943 predefined-parameters: |
945 node-parameters: true
946 kill-phase-on: FAILURE
950 ########################
952 ########################
959 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
961 name: ARTIFACT_VERSION
963 description: "Artifact version type"
965 name: BUILD_DIRECTORY
966 default: $WORKSPACE/.build
967 description: "Directory where the build artifact will be located upon the completion of the build."
969 name: CACHE_DIRECTORY
970 default: $HOME/opnfv/apex-cache{gs-pathname}
971 description: "Directory where the cache to be used during the build is located."
974 default: https://gerrit.opnfv.org/gerrit/$PROJECT
975 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
978 default: '{gs-pathname}'
979 description: "Version directory where opnfv artifacts are stored in gs repository"
982 default: $GS_BASE{gs-pathname}
983 description: "URL to Google Storage."
987 description: "Flag to know if we should promote/upload snapshot artifacts."
989 ########################
991 ########################
993 name: 'apex-unit-test'
996 !include-raw: ./apex-unit-test.sh
999 name: 'apex-workspace-cleanup'
1002 !include-raw: ./apex-workspace-cleanup.sh
1006 name: 'apex-upload-artifact'
1009 !include-raw: ./apex-upload-artifact.sh
1012 name: 'apex-download-artifact'
1015 !include-raw: ./apex-download-artifact.sh
1021 !include-raw: ./apex-deploy.sh
1023 #######################
1025 ########################
1029 - timed: '0 12 * * *'
1033 - timed: '0 3 1 1 7'