6 - 'apex-fetch-logs-{stream}'
7 - 'apex-runner-cperf-{stream}'
8 - 'apex-virtual-{stream}'
9 - 'apex-deploy-{platform}-{stream}'
10 - 'apex-daily-{stream}'
11 - 'apex-csit-promote-daily-{stream}-{os_version}'
12 - 'apex-fdio-promote-daily-{stream}'
13 - 'apex-{scenario}-baremetal-{scenario_stream}'
14 - 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
15 - 'apex-upload-snapshot'
16 - 'apex-create-snapshot'
17 - 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
18 - 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
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-nosdn-nofeature-ha'
29 scenario_stream: 'master'
31 disable_promote: false
33 branch: 'stable/fraser'
34 gs-pathname: '/fraser'
35 build-slave: 'apex-build-master'
36 virtual-slave: 'apex-virtual-master'
37 baremetal-slave: 'apex-baremetal-master'
38 verify-scenario: 'os-nosdn-nofeature-ha'
39 scenario_stream: 'fraser'
42 - euphrates: &euphrates
43 branch: 'stable/euphrates'
44 gs-pathname: '/euphrates'
45 build-slave: 'apex-build-master'
46 virtual-slave: 'apex-virtual-master'
47 baremetal-slave: 'apex-baremetal-master'
48 verify-scenario: 'os-odl-nofeature-ha'
49 scenario_stream: 'euphrates'
53 branch: 'stable/danube'
54 gs-pathname: '/danube'
55 build-slave: 'apex-build-danube'
56 virtual-slave: 'apex-virtual-danube'
57 baremetal-slave: 'apex-baremetal-danube'
58 verify-scenario: 'os-odl_l3-nofeature-ha'
59 scenario_stream: 'danube'
65 {%- for stream in scenarios %}
66 {%- for scenario in scenarios[stream] %}
82 os_scenario: 'nofeature'
87 name: 'apex-fetch-logs-{stream}'
99 gs-pathname: '{gs-pathname}'
100 # yamllint enable rule:line-length
112 name: 'apex-runner-cperf-{stream}'
115 project-type: 'multijob'
122 gs-pathname: '{gs-pathname}'
128 default: https://gerrit.opnfv.org/gerrit/$PROJECT
129 description: "Used for overriding the GIT URL coming from parameters macro."
137 use-build-blocker: false
147 - description-setter:
148 description: "Deployed on $NODE_NAME"
150 name: 'Baremetal Deploy'
153 - name: 'apex-deploy-baremetal-{stream}'
154 node-parameters: false
155 current-parameters: true
156 predefined-parameters: |
157 GERRIT_BRANCH=$GERRIT_BRANCH
160 DEPLOY_SCENARIO={verify-scenario}
161 kill-phase-on: FAILURE
166 condition: SUCCESSFUL
168 - name: 'cperf-apex-intel-pod2-daily-master'
169 node-parameters: true
170 current-parameters: false
171 predefined-parameters:
172 DEPLOY_SCENARIO={verify-scenario}
179 name: 'apex-deploy-{platform}-{stream}'
194 - '{project}-{platform}-{stream}-defaults'
199 gs-pathname: '{gs-pathname}'
201 name: DEPLOY_SCENARIO
202 default: '{verify-scenario}'
203 description: "Scenario to deploy with."
204 # yamllint disable rule:line-length
208 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
210 # yamllint enable rule:line-length
214 use-build-blocker: true
228 - description-setter:
229 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
230 - 'apex-download-artifact'
235 # Virtual Deploy and Test
237 name: 'apex-virtual-{stream}'
239 project-type: 'multijob'
249 - '{project}-defaults'
250 - '{project}-virtual-{stream}-defaults'
251 - 'functest-suite-parameter'
256 gs-pathname: '{gs-pathname}'
258 name: DEPLOY_SCENARIO
259 default: '{verify-scenario}'
260 description: "Scenario to deploy with."
262 name: ARTIFACT_VERSION
264 description: "Used for overriding the ARTIFACT_VERSION"
269 use-build-blocker: true
275 - 'apex-verify-gate-.*'
282 - description-setter:
283 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
286 condition: SUCCESSFUL
288 - name: 'apex-deploy-virtual-{stream}'
289 current-parameters: false
290 predefined-parameters: |
291 ARTIFACT_VERSION=$ARTIFACT_VERSION
292 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
294 GERRIT_BRANCH=$GERRIT_BRANCH
295 GERRIT_REFSPEC=$GERRIT_REFSPEC
296 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
297 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
299 node-parameters: true
300 kill-phase-on: FAILURE
304 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
305 echo 'REPO=opnfv' > functest_repo
307 echo 'REPO=ollivier' > functest_repo
310 properties-file: functest_repo
315 - name: 'functest-apex-virtual-suite-{stream}'
316 current-parameters: false
317 predefined-parameters: |
318 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
319 FUNCTEST_MODE=$FUNCTEST_MODE
320 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
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
331 name: apex-fetch-logs
333 - name: 'apex-fetch-logs-{stream}'
334 current-parameters: false
335 predefined-parameters: |
336 GERRIT_BRANCH=$GERRIT_BRANCH
337 GERRIT_REFSPEC=$GERRIT_REFSPEC
338 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
339 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
340 node-parameters: true
345 # Baremetal Deploy and Test
347 name: 'apex-{scenario}-baremetal-{scenario_stream}'
349 project-type: 'multijob'
357 - '{project}-defaults'
358 - '{project}-baremetal-{scenario_stream}-defaults'
363 gs-pathname: '{gs-pathname}'
365 name: DEPLOY_SCENARIO
366 default: '{scenario}'
367 description: "Scenario to deploy with."
372 use-build-blocker: true
377 - 'apex-.*-promote.*'
379 - 'apex-.+-baremetal-.+'
386 - description-setter:
387 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
389 name: 'Baremetal Deploy'
390 condition: SUCCESSFUL
391 execution-type: SEQUENTIALLY
393 - name: 'apex-deploy-baremetal-{scenario_stream}'
394 node-parameters: true
395 current-parameters: true
396 predefined-parameters: |
398 GERRIT_BRANCH=$GERRIT_BRANCH
400 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
404 - name: 'apex-fetch-logs-{scenario_stream}'
405 current-parameters: true
406 predefined-parameters: |
407 GERRIT_BRANCH=$GERRIT_BRANCH
409 node-parameters: true
414 name: 'OPNFV Test Suite'
417 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
418 node-parameters: true
419 current-parameters: false
420 predefined-parameters:
421 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
426 name: apex-fetch-logs
428 - name: 'apex-fetch-logs-{scenario_stream}'
429 current-parameters: true
430 predefined-parameters: |
431 GERRIT_BRANCH=$GERRIT_BRANCH
433 node-parameters: true
440 !include-raw-escape: ./update-build-result.groovy
444 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
446 project-type: 'multijob'
451 - '{project}-defaults'
452 - '{project}-baremetal-{scenario_stream}-defaults'
457 gs-pathname: '{gs-pathname}'
459 name: DEPLOY_SCENARIO
460 default: '{scenario}'
461 description: "Scenario to deploy with."
466 use-build-blocker: true
472 - 'apex-testsuite-.+-baremetal-.+'
479 - description-setter:
480 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
485 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
486 node-parameters: true
487 current-parameters: false
488 predefined-parameters:
489 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
497 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
498 node-parameters: true
499 current-parameters: false
500 predefined-parameters:
501 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
506 name: Dovetail-proposed_tests
509 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
510 node-parameters: true
511 current-parameters: false
512 predefined-parameters:
513 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
515 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
519 name: Dovetail-default
522 - name: 'dovetail-apex-baremetal-default-{scenario_stream}'
523 node-parameters: true
524 current-parameters: false
525 predefined-parameters:
526 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
528 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
535 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
536 node-parameters: true
537 current-parameters: false
538 predefined-parameters:
539 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
540 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
544 # Build status is always success due conditional plugin prefetching
545 # build status before multijob phases execute
546 # - conditional-step:
547 # condition-kind: current-status
548 # condition-worst: SUCCESS
549 # condtion-best: SUCCESS
550 # on-evaluation-failure: mark-unstable
552 # - shell: 'echo "Tests Passed"'
555 name: 'apex-daily-{stream}'
557 # Job template for daily build
559 # Required Variables:
560 # stream: branch with - in place of / (eg. stable)
561 # branch: branch (eg. stable)
562 project-type: 'multijob'
564 disabled: '{obj:disable_daily}'
570 - '{project}-defaults'
571 - '{project}-baremetal-{stream}-defaults'
576 gs-pathname: '{gs-pathname}'
581 use-build-blocker: true
592 condition: SUCCESSFUL
594 - name: 'apex-build-{stream}'
595 current-parameters: false
596 predefined-parameters: |
597 GERRIT_BRANCH=$GERRIT_BRANCH
599 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
600 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
601 node-parameters: true
602 kill-phase-on: FAILURE
606 name: 'Verify and upload ISO'
607 condition: SUCCESSFUL
609 - name: 'apex-verify-iso-{stream}'
610 current-parameters: false
611 predefined-parameters: |
612 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
613 GERRIT_BRANCH=$GERRIT_BRANCH
615 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
616 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
617 node-parameters: true
618 kill-phase-on: FAILURE
621 - apex-builder-{stream}
625 name: 'apex-create-snapshot'
627 # Job template for clean
629 # Required Variables:
630 # stream: branch with - in place of / (eg. stable)
636 !include-raw-escape: ./apex-snapshot-create.sh
640 name: 'apex-upload-snapshot'
642 # Job template for clean
644 # Required Variables:
645 # stream: branch with - in place of / (eg. stable)
651 properties-content: ARTIFACT_TYPE=snapshot
652 - 'apex-upload-artifact'
656 name: 'apex-csit-promote-daily-{stream}-{os_version}'
658 # Job template for promoting CSIT Snapshots
660 # Required Variables:
661 # stream: branch with - in place of / (eg. stable)
662 # branch: branch (eg. stable)
663 node: '{virtual-slave}'
664 project-type: 'multijob'
665 disabled: '{disable_promote}'
675 gs-pathname: '{gs-pathname}'
677 name: ARTIFACT_VERSION
679 description: "Used for overriding the ARTIFACT_VERSION"
683 description: "Used for overriding the PROMOTE"
687 use-build-blocker: true
695 - timed: '0 12 * * 0'
699 name: apex-virtual-deploy-test
700 condition: SUCCESSFUL
702 - name: 'apex-virtual-{stream}'
703 current-parameters: true
704 predefined-parameters: |
705 DEPLOY_SCENARIO=os-odl-{os_scenario}-noha
707 GERRIT_BRANCH=$GERRIT_BRANCH
708 GERRIT_REFSPEC=$GERRIT_REFSPEC
709 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
710 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
711 FUNCTEST_SUITE_NAME=tempest_smoke_serial
712 FUNCTEST_MODE=testcase
713 node-parameters: true
714 kill-phase-on: FAILURE
718 name: create snapshot
719 condition: SUCCESSFUL
721 - name: 'apex-create-snapshot'
722 current-parameters: false
723 predefined-parameters: |
725 node-parameters: true
726 kill-phase-on: FAILURE
730 name: upload snapshot
731 condition: SUCCESSFUL
733 - name: 'apex-upload-snapshot'
734 current-parameters: false
735 predefined-parameters: |
737 node-parameters: true
738 kill-phase-on: FAILURE
744 name: 'apex-fdio-promote-daily-{stream}'
746 # Job template for promoting CSIT Snapshots
748 # Required Variables:
749 # stream: branch with - in place of / (eg. stable)
750 # branch: branch (eg. stable)
751 node: '{virtual-slave}'
752 project-type: 'multijob'
763 gs-pathname: '{gs-pathname}'
767 use-build-blocker: true
778 condition: SUCCESSFUL
780 - name: 'apex-build-{stream}'
781 current-parameters: false
782 predefined-parameters: |
783 GERRIT_BRANCH=$GERRIT_BRANCH
784 GERRIT_REFSPEC=$GERRIT_REFSPEC
785 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
786 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
787 node-parameters: false
788 kill-phase-on: FAILURE
793 condition: SUCCESSFUL
795 - name: 'apex-deploy-virtual-{stream}'
796 current-parameters: false
797 predefined-parameters: |
798 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
800 GERRIT_BRANCH=$GERRIT_BRANCH
801 GERRIT_REFSPEC=$GERRIT_REFSPEC
802 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
803 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
805 node-parameters: true
806 kill-phase-on: FAILURE
810 name: create snapshot
811 condition: SUCCESSFUL
813 - name: 'apex-create-snapshot'
814 current-parameters: false
815 predefined-parameters: |
817 node-parameters: true
818 kill-phase-on: FAILURE
822 name: upload snapshot
823 condition: SUCCESSFUL
825 - name: 'apex-upload-snapshot'
826 current-parameters: false
827 predefined-parameters: |
829 node-parameters: true
830 kill-phase-on: FAILURE
836 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
838 project-type: 'multijob'
851 - '{project}-defaults'
856 gs-pathname: '{gs-pathname}'
858 name: DEPLOY_SCENARIO
859 default: 'os-nosdn-nofeature-ha'
860 description: "Scenario to deploy with."
863 default: https://gerrit.opnfv.org/gerrit/$PROJECT
864 description: 'Git URL to use on this Jenkins Slave'
867 default: /root/.ssh/id_rsa
868 description: 'SSH key to use for Apex'
873 use-build-blocker: true
878 - 'apex-.*-promote.*'
880 - 'apex-.+-baremetal-.+'
887 - description-setter:
888 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
890 name: 'Baremetal Deploy'
891 condition: SUCCESSFUL
893 - name: 'apex-deploy-baremetal-{stream}'
894 node-parameters: true
895 current-parameters: true
896 predefined-parameters: |
898 GERRIT_BRANCH=$GERRIT_BRANCH
900 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
901 kill-phase-on: FAILURE
908 - name: 'yardstick-apex-baremetal-daily-{stream}'
909 node-parameters: true
910 current-parameters: false
911 predefined-parameters:
912 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
917 # Dovetail Danube test job
919 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
921 project-type: 'multijob'
928 - '{project}-defaults'
931 branch: 'stable/danube'
933 gs-pathname: '/danube'
935 name: DEPLOY_SCENARIO
936 default: 'os-nosdn-nofeature-ha'
937 description: "Scenario to deploy with."
942 use-build-blocker: true
947 - 'apex-.*-promote.*'
951 - timed: '' # '0 1 * * *'
954 - description-setter:
955 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
957 name: 'Baremetal Deploy'
958 condition: SUCCESSFUL
960 - name: 'apex-deploy-baremetal-danube'
961 node-parameters: true
962 current-parameters: true
963 predefined-parameters: |
965 GERRIT_BRANCH=$GERRIT_BRANCH
967 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
968 kill-phase-on: FAILURE
975 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
976 node-parameters: true
977 current-parameters: false
978 predefined-parameters:
979 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
984 ########################
986 ########################
993 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
995 name: ARTIFACT_VERSION
997 description: "Artifact version type"
999 name: BUILD_DIRECTORY
1000 default: $WORKSPACE/.build
1001 description: "Directory where the build artifact will be located upon the completion of the build."
1003 name: CACHE_DIRECTORY
1004 default: $HOME/opnfv/apex-cache{gs-pathname}
1005 description: "Directory where the cache to be used during the build is located."
1006 # yamllint disable rule:line-length
1009 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1010 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1011 # yamllint enable rule:line-length
1014 default: '{gs-pathname}'
1015 description: "Version directory where opnfv artifacts are stored in gs repository"
1018 default: $GS_BASE{gs-pathname}
1019 description: "URL to Google Storage."
1023 description: "Flag to know if we should promote/upload snapshot artifacts."
1025 ########################
1027 ########################
1028 {% for stream in scenarios %}
1029 # {{ stream }} Builder
1031 name: apex-builder-{{ stream }}
1034 name: Baremetal Deploy and Test Phase
1035 condition: SUCCESSFUL
1037 {%- for scenario in scenarios[stream] %}
1038 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1039 node-parameters: false
1040 current-parameters: false
1041 predefined-parameters: |
1043 kill-phase-on: NEVER
1050 name: 'apex-upload-artifact'
1053 !include-raw: ./apex-upload-artifact.sh
1056 name: 'apex-download-artifact'
1059 !include-raw: ./apex-download-artifact.sh
1065 !include-raw: ./apex-deploy.sh
1068 name: 'apex-fetch-logs'
1071 !include-raw: ./apex-fetch-logs.sh
1073 #######################
1075 ########################
1079 - timed: '0 0 1-31/2 * *'
1084 - timed: '0 0 2-30/2 * *'
1087 name: 'apex-euphrates'
1089 - timed: '0 0 2-30/2 * *'
1094 - timed: '0 3 1 1 7'