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-{os_version}-{topology}'
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-noha'
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] %}
79 odl_branch: 'stable/carbon'
82 odl_branch: 'stable/oxygen'
84 os_scenario: 'nofeature'
85 odl_branch: 'stable/oxygen'
93 name: 'apex-fetch-logs-{stream}'
105 gs-pathname: '{gs-pathname}'
106 # yamllint enable rule:line-length
118 name: 'apex-runner-cperf-{stream}'
121 project-type: 'multijob'
128 gs-pathname: '{gs-pathname}'
134 default: https://gerrit.opnfv.org/gerrit/$PROJECT
135 description: "Used for overriding the GIT URL coming from parameters macro."
143 use-build-blocker: false
153 - description-setter:
154 description: "Deployed on $NODE_NAME"
156 name: 'Baremetal Deploy'
159 - name: 'apex-deploy-baremetal-{stream}'
160 node-parameters: false
161 current-parameters: true
162 predefined-parameters: |
163 GERRIT_BRANCH=$GERRIT_BRANCH
166 DEPLOY_SCENARIO={verify-scenario}
167 kill-phase-on: FAILURE
172 condition: SUCCESSFUL
174 - name: 'cperf-apex-intel-pod2-daily-master'
175 node-parameters: true
176 current-parameters: false
177 predefined-parameters:
178 DEPLOY_SCENARIO={verify-scenario}
185 name: 'apex-deploy-{platform}-{stream}'
200 - '{project}-{platform}-{stream}-defaults'
205 gs-pathname: '{gs-pathname}'
207 name: DEPLOY_SCENARIO
208 default: '{verify-scenario}'
209 description: "Scenario to deploy with."
210 # yamllint disable rule:line-length
214 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
216 # yamllint enable rule:line-length
220 use-build-blocker: true
235 - description-setter:
236 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
237 - 'apex-download-artifact'
242 # Virtual Deploy and Test
244 name: 'apex-virtual-{stream}'
246 project-type: 'multijob'
256 - '{project}-defaults'
257 - '{project}-virtual-{stream}-defaults'
258 - 'functest-suite-parameter'
263 gs-pathname: '{gs-pathname}'
265 name: DEPLOY_SCENARIO
266 default: '{verify-scenario}'
267 description: "Scenario to deploy with."
269 name: ARTIFACT_VERSION
271 description: "Used for overriding the ARTIFACT_VERSION"
276 use-build-blocker: true
282 - 'apex-verify-gate-.*'
290 - description-setter:
291 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
294 condition: SUCCESSFUL
296 - name: 'apex-deploy-virtual-{stream}'
297 current-parameters: false
298 predefined-parameters: |
299 ARTIFACT_VERSION=$ARTIFACT_VERSION
300 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
302 GERRIT_BRANCH=$GERRIT_BRANCH
303 GERRIT_REFSPEC=$GERRIT_REFSPEC
304 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
305 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
307 node-parameters: true
308 kill-phase-on: FAILURE
312 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
313 echo 'REPO=opnfv' > functest_repo
315 echo 'REPO=ollivier' > functest_repo
318 properties-file: functest_repo
323 - name: 'functest-apex-virtual-suite-{stream}'
324 current-parameters: false
325 predefined-parameters: |
326 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
327 FUNCTEST_MODE=$FUNCTEST_MODE
328 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
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
339 name: apex-fetch-logs
341 - name: 'apex-fetch-logs-{stream}'
342 current-parameters: false
343 predefined-parameters: |
344 GERRIT_BRANCH=$GERRIT_BRANCH
345 GERRIT_REFSPEC=$GERRIT_REFSPEC
346 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
347 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
348 node-parameters: true
353 # Baremetal Deploy and Test
355 name: 'apex-{scenario}-baremetal-{scenario_stream}'
357 project-type: 'multijob'
365 - '{project}-defaults'
366 - '{project}-baremetal-{scenario_stream}-defaults'
371 gs-pathname: '{gs-pathname}'
373 name: DEPLOY_SCENARIO
374 default: '{scenario}'
375 description: "Scenario to deploy with."
380 use-build-blocker: true
385 - 'apex-.*-promote.*'
387 - 'apex-.+-baremetal-.+'
394 - description-setter:
395 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
397 name: 'Baremetal Deploy'
398 condition: SUCCESSFUL
399 execution-type: SEQUENTIALLY
401 - name: 'apex-deploy-baremetal-{scenario_stream}'
402 node-parameters: true
403 current-parameters: true
404 predefined-parameters: |
406 GERRIT_BRANCH=$GERRIT_BRANCH
408 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
412 - name: 'apex-fetch-logs-{scenario_stream}'
413 current-parameters: true
414 predefined-parameters: |
415 GERRIT_BRANCH=$GERRIT_BRANCH
417 node-parameters: true
422 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
423 echo 'REPO=opnfv' > functest_properties
425 echo 'REPO=ollivier' > functest_properties
427 features=$(echo $DEPLOY_SCENARIO | sed -r -n 's/os-.+-(.+)-(noha|ha)/\1/p')
428 if [ "$features" == 'queens' ]; then
429 functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-queens-(noha|ha)/\1-nofeature-\2/p')
430 elif [[ "$features" =~ 'queens' ]]; then
431 functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-(.+)_queens-(noha|ha)/\1-\2-\3/p')
433 functest_scenario=$DEPLOY_SCENARIO
435 echo "DEPLOY_SCENARIO=$functest_scenario" >> functest_properties
437 properties-file: functest_properties
438 override-build-parameters: true
440 name: 'OPNFV Test Suite'
443 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
444 node-parameters: true
445 current-parameters: false
446 predefined-parameters:
447 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
452 name: apex-fetch-logs
454 - name: 'apex-fetch-logs-{scenario_stream}'
455 current-parameters: true
456 predefined-parameters: |
457 GERRIT_BRANCH=$GERRIT_BRANCH
459 node-parameters: true
466 !include-raw-escape: ./update-build-result.groovy
470 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
472 project-type: 'multijob'
477 - '{project}-defaults'
478 - '{project}-baremetal-{scenario_stream}-defaults'
483 gs-pathname: '{gs-pathname}'
485 name: DEPLOY_SCENARIO
486 default: '{scenario}'
487 description: "Scenario to deploy with."
492 use-build-blocker: true
498 - 'apex-testsuite-.+-baremetal-.+'
505 - description-setter:
506 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
511 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
512 node-parameters: true
513 current-parameters: false
514 predefined-parameters:
515 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
523 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
524 node-parameters: true
525 current-parameters: false
526 predefined-parameters:
527 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
532 name: Dovetail-proposed_tests
535 - name: 'dovetail-apex-baremetal-default-mandatory-{scenario_stream}'
536 node-parameters: true
537 current-parameters: false
538 predefined-parameters:
539 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
541 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
545 name: Dovetail-default
548 - name: 'dovetail-apex-baremetal-default-optional-{scenario_stream}'
549 node-parameters: true
550 current-parameters: false
551 predefined-parameters:
552 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
554 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
561 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
562 node-parameters: true
563 current-parameters: false
564 predefined-parameters:
565 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
566 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
570 # Build status is always success due conditional plugin prefetching
571 # build status before multijob phases execute
572 # - conditional-step:
573 # condition-kind: current-status
574 # condition-worst: SUCCESS
575 # condtion-best: SUCCESS
576 # on-evaluation-failure: mark-unstable
578 # - shell: 'echo "Tests Passed"'
581 name: 'apex-daily-{stream}'
583 # Job template for daily build
585 # Required Variables:
586 # stream: branch with - in place of / (eg. stable)
587 # branch: branch (eg. stable)
588 project-type: 'multijob'
590 disabled: '{obj:disable_daily}'
596 - '{project}-defaults'
597 - '{project}-baremetal-{stream}-defaults'
602 gs-pathname: '{gs-pathname}'
607 use-build-blocker: true
618 condition: SUCCESSFUL
620 - name: 'apex-build-{stream}'
621 current-parameters: false
622 predefined-parameters: |
623 GERRIT_BRANCH=$GERRIT_BRANCH
625 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
626 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
627 node-parameters: true
628 kill-phase-on: FAILURE
632 name: 'Verify and upload ISO'
633 condition: SUCCESSFUL
635 - name: 'apex-verify-iso-{stream}'
636 current-parameters: false
637 predefined-parameters: |
638 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
639 GERRIT_BRANCH=$GERRIT_BRANCH
641 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
642 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
643 node-parameters: true
644 kill-phase-on: FAILURE
647 - apex-builder-{stream}
649 # snapshot info fetch
651 name: 'apex-fetch-snap-info'
656 - '{project}-defaults'
660 !include-raw: ./apex-fetch-snap-info.sh
664 name: 'apex-create-snapshot'
669 - '{project}-defaults'
673 !include-raw-escape: ./apex-snapshot-create.sh
677 name: 'apex-upload-snapshot'
682 - '{project}-defaults'
686 properties-content: ARTIFACT_TYPE=snapshot
687 - 'apex-upload-artifact'
691 name: 'apex-csit-promote-daily-{stream}-os-{os_version}-{topology}'
693 # Job template for promoting CSIT Snapshots
695 # Required Variables:
696 # stream: branch with - in place of / (eg. stable)
697 # branch: branch (eg. stable)
698 node: '{virtual-slave}'
699 project-type: 'multijob'
700 disabled: '{disable_promote}'
710 gs-pathname: '{gs-pathname}'
712 name: ARTIFACT_VERSION
714 description: "Used for overriding the ARTIFACT_VERSION"
718 description: "Used for overriding the PROMOTE"
721 default: $GS_BASE{gs-pathname}/{os_version}/{topology}
722 description: "User for overriding GS_URL from apex params"
725 default: '{os_version}'
726 description: OpenStack version short name
729 default: '{odl_branch}'
730 description: ODL branch being used
734 use-build-blocker: true
740 - 'apex-csit-promote.*'
748 - timed: '0 12 * * 0'
752 name: apex-virtual-deploy
753 condition: SUCCESSFUL
755 - name: 'apex-deploy-virtual-{stream}'
756 current-parameters: true
757 predefined-parameters: |
758 DEPLOY_SCENARIO=os-odl-{os_scenario}-{topology}
760 GERRIT_BRANCH=$GERRIT_BRANCH
761 GERRIT_REFSPEC=$GERRIT_REFSPEC
762 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
763 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
764 node-parameters: true
765 kill-phase-on: FAILURE
769 name: fetch snapshot info
770 condition: SUCCESSFUL
772 - name: 'apex-fetch-snap-info'
773 current-parameters: true
774 node-parameters: true
775 kill-phase-on: FAILURE
780 condition: SUCCESSFUL
782 - name: cperf-apex-csit-master
783 predefined-parameters: |
784 ODL_BRANCH=$ODL_BRANCH
785 RC_FILE_PATH=/tmp/csit/overcloudrc
786 NODE_FILE_PATH=/tmp/csit/node.yaml
787 SSH_KEY_PATH=/tmp/csit/id_rsa
788 ODL_CONTAINERIZED=true
789 OS_VERSION=$OS_VERSION
790 node-parameters: true
791 kill-phase-on: FAILURE
794 name: create snapshot
795 condition: SUCCESSFUL
797 - name: 'apex-create-snapshot'
798 current-parameters: true
799 predefined-parameters: |
801 node-parameters: true
802 kill-phase-on: FAILURE
806 name: upload snapshot
807 condition: SUCCESSFUL
809 - name: 'apex-upload-snapshot'
810 current-parameters: true
811 predefined-parameters: |
813 node-parameters: true
814 kill-phase-on: FAILURE
820 name: 'apex-fdio-promote-daily-{stream}'
822 # Job template for promoting CSIT Snapshots
824 # Required Variables:
825 # stream: branch with - in place of / (eg. stable)
826 # branch: branch (eg. stable)
827 node: '{virtual-slave}'
828 project-type: 'multijob'
839 gs-pathname: '{gs-pathname}'
843 use-build-blocker: true
854 condition: SUCCESSFUL
856 - name: 'apex-build-{stream}'
857 current-parameters: false
858 predefined-parameters: |
859 GERRIT_BRANCH=$GERRIT_BRANCH
860 GERRIT_REFSPEC=$GERRIT_REFSPEC
861 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
862 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
863 node-parameters: false
864 kill-phase-on: FAILURE
869 condition: SUCCESSFUL
871 - name: 'apex-deploy-virtual-{stream}'
872 current-parameters: false
873 predefined-parameters: |
874 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
876 GERRIT_BRANCH=$GERRIT_BRANCH
877 GERRIT_REFSPEC=$GERRIT_REFSPEC
878 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
879 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
881 node-parameters: true
882 kill-phase-on: FAILURE
886 name: create snapshot
887 condition: SUCCESSFUL
889 - name: 'apex-create-snapshot'
890 current-parameters: false
891 predefined-parameters: |
893 node-parameters: true
894 kill-phase-on: FAILURE
898 name: upload snapshot
899 condition: SUCCESSFUL
901 - name: 'apex-upload-snapshot'
902 current-parameters: false
903 predefined-parameters: |
905 node-parameters: true
906 kill-phase-on: FAILURE
912 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
914 project-type: 'multijob'
927 - '{project}-defaults'
932 gs-pathname: '{gs-pathname}'
934 name: DEPLOY_SCENARIO
935 default: 'os-nosdn-nofeature-ha'
936 description: "Scenario to deploy with."
939 default: https://gerrit.opnfv.org/gerrit/$PROJECT
940 description: 'Git URL to use on this Jenkins Slave'
943 default: /root/.ssh/id_rsa
944 description: 'SSH key to use for Apex'
949 use-build-blocker: true
954 - 'apex-.*-promote.*'
956 - 'apex-.+-baremetal-.+'
963 - description-setter:
964 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
966 name: 'Baremetal Deploy'
967 condition: SUCCESSFUL
969 - name: 'apex-deploy-baremetal-{stream}'
970 node-parameters: true
971 current-parameters: true
972 predefined-parameters: |
974 GERRIT_BRANCH=$GERRIT_BRANCH
976 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
977 kill-phase-on: FAILURE
984 - name: 'yardstick-apex-baremetal-daily-{stream}'
985 node-parameters: true
986 current-parameters: false
987 predefined-parameters:
988 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
993 # Dovetail Danube test job
995 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
997 project-type: 'multijob'
1004 - '{project}-defaults'
1005 - project-parameter:
1006 project: '{project}'
1007 branch: 'stable/danube'
1009 gs-pathname: '/danube'
1011 name: DEPLOY_SCENARIO
1012 default: 'os-nosdn-nofeature-ha'
1013 description: "Scenario to deploy with."
1018 use-build-blocker: true
1023 - 'apex-.*-promote.*'
1027 - timed: '' # '0 1 * * *'
1030 - description-setter:
1031 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
1033 name: 'Baremetal Deploy'
1034 condition: SUCCESSFUL
1036 - name: 'apex-deploy-baremetal-danube'
1037 node-parameters: true
1038 current-parameters: true
1039 predefined-parameters: |
1041 GERRIT_BRANCH=$GERRIT_BRANCH
1043 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1044 kill-phase-on: FAILURE
1051 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
1052 node-parameters: true
1053 current-parameters: false
1054 predefined-parameters:
1055 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1056 kill-phase-on: NEVER
1057 abort-all-job: false
1060 ########################
1062 ########################
1064 name: apex-parameter
1069 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1071 name: ARTIFACT_VERSION
1073 description: "Artifact version type"
1075 name: BUILD_DIRECTORY
1076 default: $WORKSPACE/.build
1077 description: "Directory where the build artifact will be located upon the completion of the build."
1079 name: CACHE_DIRECTORY
1080 default: $HOME/opnfv/apex-cache{gs-pathname}
1081 description: "Directory where the cache to be used during the build is located."
1082 # yamllint disable rule:line-length
1085 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1086 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1087 # yamllint enable rule:line-length
1090 default: '{gs-pathname}'
1091 description: "Version directory where opnfv artifacts are stored in gs repository"
1094 default: $GS_BASE{gs-pathname}
1095 description: "URL to Google Storage."
1099 description: "Flag to know if we should promote/upload snapshot artifacts."
1101 ########################
1103 ########################
1104 {% for stream in scenarios %}
1105 # {{ stream }} Builder
1107 name: apex-builder-{{ stream }}
1110 name: Baremetal Deploy and Test Phase
1111 condition: SUCCESSFUL
1113 {%- for scenario in scenarios[stream] %}
1114 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1115 node-parameters: false
1116 current-parameters: false
1117 predefined-parameters: |
1119 kill-phase-on: NEVER
1126 name: 'apex-upload-artifact'
1129 !include-raw: ./apex-upload-artifact.sh
1132 name: 'apex-download-artifact'
1135 !include-raw: ./apex-download-artifact.sh
1141 !include-raw: ./apex-deploy.sh
1144 name: 'apex-fetch-logs'
1147 !include-raw: ./apex-fetch-logs.sh
1149 #######################
1151 ########################
1155 - timed: '0 0 1-31/2 * *'
1160 - timed: '0 0 2-30/2 * *'
1163 name: 'apex-euphrates'
1165 - timed: '0 0 2-30/2 * *'
1170 - timed: '0 3 1 1 7'