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-fetch-snap-info'
18 - 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
19 - 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
20 # stream: branch with - in place of / (eg. stable-arno)
21 # branch: branch (eg. stable/arno)
26 build-slave: 'apex-build-master'
27 virtual-slave: 'apex-virtual-master'
28 baremetal-slave: 'apex-baremetal-master'
29 verify-scenario: 'os-nosdn-nofeature-noha'
30 scenario_stream: 'master'
32 disable_promote: false
34 branch: 'stable/fraser'
35 gs-pathname: '/fraser'
36 build-slave: 'apex-build-master'
37 virtual-slave: 'apex-virtual-master'
38 baremetal-slave: 'apex-baremetal-master'
39 verify-scenario: 'os-nosdn-nofeature-ha'
40 scenario_stream: 'fraser'
43 - euphrates: &euphrates
44 branch: 'stable/euphrates'
45 gs-pathname: '/euphrates'
46 build-slave: 'apex-build-master'
47 virtual-slave: 'apex-virtual-master'
48 baremetal-slave: 'apex-baremetal-master'
49 verify-scenario: 'os-odl-nofeature-ha'
50 scenario_stream: 'euphrates'
54 branch: 'stable/danube'
55 gs-pathname: '/danube'
56 build-slave: 'apex-build-danube'
57 virtual-slave: 'apex-virtual-danube'
58 baremetal-slave: 'apex-baremetal-danube'
59 verify-scenario: 'os-odl_l3-nofeature-ha'
60 scenario_stream: 'danube'
66 {%- for stream in scenarios %}
67 {%- for scenario in scenarios[stream] %}
80 odl_branch: 'stable/carbon'
83 odl_branch: 'stable/oxygen'
85 os_scenario: 'nofeature'
86 odl_branch: 'stable/oxygen'
94 name: 'apex-fetch-logs-{stream}'
106 gs-pathname: '{gs-pathname}'
107 # yamllint enable rule:line-length
119 name: 'apex-runner-cperf-{stream}'
122 project-type: 'multijob'
129 gs-pathname: '{gs-pathname}'
135 default: https://gerrit.opnfv.org/gerrit/$PROJECT
136 description: "Used for overriding the GIT URL coming from parameters macro."
144 use-build-blocker: false
154 - description-setter:
155 description: "Deployed on $NODE_NAME"
157 name: 'Baremetal Deploy'
160 - name: 'apex-deploy-baremetal-{stream}'
161 node-parameters: false
162 current-parameters: true
163 predefined-parameters: |
164 GERRIT_BRANCH=$GERRIT_BRANCH
167 DEPLOY_SCENARIO={verify-scenario}
168 kill-phase-on: FAILURE
173 condition: SUCCESSFUL
175 - name: 'cperf-apex-intel-pod2-daily-master'
176 node-parameters: true
177 current-parameters: false
178 predefined-parameters:
179 DEPLOY_SCENARIO={verify-scenario}
186 name: 'apex-deploy-{platform}-{stream}'
201 - '{project}-{platform}-{stream}-defaults'
206 gs-pathname: '{gs-pathname}'
208 name: DEPLOY_SCENARIO
209 default: '{verify-scenario}'
210 description: "Scenario to deploy with."
211 # yamllint disable rule:line-length
215 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
217 # yamllint enable rule:line-length
221 use-build-blocker: true
236 - description-setter:
237 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
238 - 'apex-download-artifact'
243 # Virtual Deploy and Test
245 name: 'apex-virtual-{stream}'
247 project-type: 'multijob'
257 - '{project}-defaults'
258 - '{project}-virtual-{stream}-defaults'
259 - 'functest-suite-parameter'
264 gs-pathname: '{gs-pathname}'
266 name: DEPLOY_SCENARIO
267 default: '{verify-scenario}'
268 description: "Scenario to deploy with."
270 name: ARTIFACT_VERSION
272 description: "Used for overriding the ARTIFACT_VERSION"
277 use-build-blocker: true
283 - 'apex-verify-gate-.*'
291 - description-setter:
292 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
295 condition: SUCCESSFUL
297 - name: 'apex-deploy-virtual-{stream}'
298 current-parameters: false
299 predefined-parameters: |
300 ARTIFACT_VERSION=$ARTIFACT_VERSION
301 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
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
308 node-parameters: true
309 kill-phase-on: FAILURE
313 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
314 echo 'REPO=opnfv' > functest_repo
316 echo 'REPO=ollivier' > functest_repo
319 properties-file: functest_repo
324 - name: 'functest-apex-virtual-suite-{stream}'
325 current-parameters: false
326 predefined-parameters: |
327 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
328 FUNCTEST_MODE=$FUNCTEST_MODE
329 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
331 GERRIT_BRANCH=$GERRIT_BRANCH
332 GERRIT_REFSPEC=$GERRIT_REFSPEC
333 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
334 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
335 node-parameters: true
340 name: apex-fetch-logs
342 - name: 'apex-fetch-logs-{stream}'
343 current-parameters: false
344 predefined-parameters: |
345 GERRIT_BRANCH=$GERRIT_BRANCH
346 GERRIT_REFSPEC=$GERRIT_REFSPEC
347 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
348 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
349 node-parameters: true
354 # Baremetal Deploy and Test
356 name: 'apex-{scenario}-baremetal-{scenario_stream}'
358 project-type: 'multijob'
366 - '{project}-defaults'
367 - '{project}-baremetal-{scenario_stream}-defaults'
372 gs-pathname: '{gs-pathname}'
374 name: DEPLOY_SCENARIO
375 default: '{scenario}'
376 description: "Scenario to deploy with."
381 use-build-blocker: true
386 - 'apex-.*-promote.*'
388 - 'apex-.+-baremetal-.+'
395 - description-setter:
396 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
398 name: 'Baremetal Deploy'
399 condition: SUCCESSFUL
400 execution-type: SEQUENTIALLY
402 - name: 'apex-deploy-baremetal-{scenario_stream}'
403 node-parameters: true
404 current-parameters: true
405 predefined-parameters: |
407 GERRIT_BRANCH=$GERRIT_BRANCH
409 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
413 - name: 'apex-fetch-logs-{scenario_stream}'
414 current-parameters: true
415 predefined-parameters: |
416 GERRIT_BRANCH=$GERRIT_BRANCH
418 node-parameters: true
423 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
424 echo 'REPO=opnfv' > functest_properties
426 echo 'REPO=ollivier' > functest_properties
428 features=$(echo $DEPLOY_SCENARIO | sed -r -n 's/os-.+-(.+)-(noha|ha)/\1/p')
429 if [ "$features" == 'queens' ]; then
430 functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-queens-(noha|ha)/\1-nofeature-\2/p')
431 elif [[ "$features" =~ 'queens' ]]; then
432 functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-(.+)_queens-(noha|ha)/\1-\2-\3/p')
434 functest_scenario=$DEPLOY_SCENARIO
436 echo "DEPLOY_SCENARIO=$functest_scenario" >> functest_properties
438 properties-file: functest_properties
439 override-build-parameters: true
441 name: 'OPNFV Test Suite'
444 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
445 node-parameters: true
446 current-parameters: false
447 predefined-parameters:
448 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
453 name: apex-fetch-logs
455 - name: 'apex-fetch-logs-{scenario_stream}'
456 current-parameters: true
457 predefined-parameters: |
458 GERRIT_BRANCH=$GERRIT_BRANCH
460 node-parameters: true
467 !include-raw-escape: ./update-build-result.groovy
471 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
473 project-type: 'multijob'
478 - '{project}-defaults'
479 - '{project}-baremetal-{scenario_stream}-defaults'
484 gs-pathname: '{gs-pathname}'
486 name: DEPLOY_SCENARIO
487 default: '{scenario}'
488 description: "Scenario to deploy with."
493 use-build-blocker: true
499 - 'apex-testsuite-.+-baremetal-.+'
506 - description-setter:
507 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
512 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
513 node-parameters: true
514 current-parameters: false
515 predefined-parameters:
516 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
524 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
525 node-parameters: true
526 current-parameters: false
527 predefined-parameters:
528 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
533 name: Dovetail-proposed_tests
536 - name: 'dovetail-apex-baremetal-default-mandatory-{scenario_stream}'
537 node-parameters: true
538 current-parameters: false
539 predefined-parameters:
540 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
542 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
546 name: Dovetail-default
549 - name: 'dovetail-apex-baremetal-default-optional-{scenario_stream}'
550 node-parameters: true
551 current-parameters: false
552 predefined-parameters:
553 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
555 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
562 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
563 node-parameters: true
564 current-parameters: false
565 predefined-parameters:
566 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
567 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
571 # Build status is always success due conditional plugin prefetching
572 # build status before multijob phases execute
573 # - conditional-step:
574 # condition-kind: current-status
575 # condition-worst: SUCCESS
576 # condtion-best: SUCCESS
577 # on-evaluation-failure: mark-unstable
579 # - shell: 'echo "Tests Passed"'
582 name: 'apex-daily-{stream}'
584 # Job template for daily build
586 # Required Variables:
587 # stream: branch with - in place of / (eg. stable)
588 # branch: branch (eg. stable)
589 project-type: 'multijob'
591 disabled: '{obj:disable_daily}'
597 - '{project}-defaults'
598 - '{project}-baremetal-{stream}-defaults'
603 gs-pathname: '{gs-pathname}'
608 use-build-blocker: true
619 condition: SUCCESSFUL
621 - name: 'apex-build-{stream}'
622 current-parameters: false
623 predefined-parameters: |
624 GERRIT_BRANCH=$GERRIT_BRANCH
626 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
627 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
628 node-parameters: true
629 kill-phase-on: FAILURE
633 name: 'Verify and upload ISO'
634 condition: SUCCESSFUL
636 - name: 'apex-verify-iso-{stream}'
637 current-parameters: false
638 predefined-parameters: |
639 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
640 GERRIT_BRANCH=$GERRIT_BRANCH
642 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
643 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
644 node-parameters: true
645 kill-phase-on: FAILURE
648 - apex-builder-{stream}
650 # snapshot info fetch
652 name: 'apex-fetch-snap-info'
657 - '{project}-defaults'
661 !include-raw-escape: ./apex-fetch-snap-info.sh
665 name: 'apex-create-snapshot'
670 - '{project}-defaults'
674 !include-raw-escape: ./apex-snapshot-create.sh
678 name: 'apex-upload-snapshot'
683 - '{project}-defaults'
687 properties-content: ARTIFACT_TYPE=snapshot
688 - 'apex-upload-artifact'
692 name: 'apex-csit-promote-daily-{stream}-os-{os_version}-{topology}'
694 # Job template for promoting CSIT Snapshots
696 # Required Variables:
697 # stream: branch with - in place of / (eg. stable)
698 # branch: branch (eg. stable)
699 node: '{virtual-slave}'
700 project-type: 'multijob'
701 disabled: '{disable_promote}'
711 gs-pathname: '{gs-pathname}'
713 name: ARTIFACT_VERSION
715 description: "Used for overriding the ARTIFACT_VERSION"
719 description: "Used for overriding the PROMOTE"
722 default: $GS_BASE{gs-pathname}/{os_version}/{topology}
723 description: "User for overriding GS_URL from apex params"
726 default: '{os_version}'
727 description: OpenStack version short name
730 default: '{odl_branch}'
731 description: ODL branch being used
735 use-build-blocker: true
741 - 'apex-csit-promote.*'
749 - timed: '0 12 * * 0'
753 name: apex-virtual-deploy
754 condition: SUCCESSFUL
756 - name: 'apex-deploy-virtual-{stream}'
757 current-parameters: true
758 predefined-parameters: |
759 DEPLOY_SCENARIO=os-odl-{os_scenario}-{topology}
761 GERRIT_BRANCH=$GERRIT_BRANCH
762 GERRIT_REFSPEC=$GERRIT_REFSPEC
763 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
764 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
765 node-parameters: true
766 kill-phase-on: FAILURE
770 name: fetch snapshot info
771 condition: SUCCESSFUL
773 - name: 'apex-fetch-snap-info'
774 current-parameters: true
775 node-parameters: true
776 kill-phase-on: FAILURE
781 condition: SUCCESSFUL
782 execution-type: SEQUENTIALLY
784 - name: cperf-apex-csit-master
785 predefined-parameters: |
786 ODL_BRANCH=$ODL_BRANCH
787 RC_FILE_PATH=/tmp/csit/overcloudrc
788 NODE_FILE_PATH=/tmp/csit/node.yaml
789 SSH_KEY_PATH=/tmp/csit/id_rsa
790 ODL_CONTAINERIZED=true
791 OS_VERSION=$OS_VERSION
792 node-parameters: true
795 - name: cperf-upload-logs-csit
796 predefined-parameters: |
797 ODL_BRANCH=$ODL_BRANCH
798 OS_VERSION=$OS_VERSION
799 node-parameters: true
800 kill-phase-on: FAILURE
803 name: create snapshot
804 condition: SUCCESSFUL
806 - name: 'apex-create-snapshot'
807 current-parameters: true
808 predefined-parameters: |
810 node-parameters: true
811 kill-phase-on: FAILURE
815 name: upload snapshot
816 condition: SUCCESSFUL
818 - name: 'apex-upload-snapshot'
819 current-parameters: true
820 predefined-parameters: |
822 node-parameters: true
823 kill-phase-on: FAILURE
829 name: 'apex-fdio-promote-daily-{stream}'
831 # Job template for promoting CSIT Snapshots
833 # Required Variables:
834 # stream: branch with - in place of / (eg. stable)
835 # branch: branch (eg. stable)
836 node: '{virtual-slave}'
837 project-type: 'multijob'
848 gs-pathname: '{gs-pathname}'
852 use-build-blocker: true
863 condition: SUCCESSFUL
865 - name: 'apex-build-{stream}'
866 current-parameters: false
867 predefined-parameters: |
868 GERRIT_BRANCH=$GERRIT_BRANCH
869 GERRIT_REFSPEC=$GERRIT_REFSPEC
870 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
871 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
872 node-parameters: false
873 kill-phase-on: FAILURE
878 condition: SUCCESSFUL
880 - name: 'apex-deploy-virtual-{stream}'
881 current-parameters: false
882 predefined-parameters: |
883 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
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
890 node-parameters: true
891 kill-phase-on: FAILURE
895 name: create snapshot
896 condition: SUCCESSFUL
898 - name: 'apex-create-snapshot'
899 current-parameters: false
900 predefined-parameters: |
902 node-parameters: true
903 kill-phase-on: FAILURE
907 name: upload snapshot
908 condition: SUCCESSFUL
910 - name: 'apex-upload-snapshot'
911 current-parameters: false
912 predefined-parameters: |
914 node-parameters: true
915 kill-phase-on: FAILURE
921 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
923 project-type: 'multijob'
936 - '{project}-defaults'
941 gs-pathname: '{gs-pathname}'
943 name: DEPLOY_SCENARIO
944 default: 'os-nosdn-nofeature-ha'
945 description: "Scenario to deploy with."
948 default: https://gerrit.opnfv.org/gerrit/$PROJECT
949 description: 'Git URL to use on this Jenkins Slave'
952 default: /root/.ssh/id_rsa
953 description: 'SSH key to use for Apex'
958 use-build-blocker: true
963 - 'apex-.*-promote.*'
965 - 'apex-.+-baremetal-.+'
972 - description-setter:
973 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
975 name: 'Baremetal Deploy'
976 condition: SUCCESSFUL
978 - name: 'apex-deploy-baremetal-{stream}'
979 node-parameters: true
980 current-parameters: true
981 predefined-parameters: |
983 GERRIT_BRANCH=$GERRIT_BRANCH
985 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
986 kill-phase-on: FAILURE
993 - name: 'yardstick-apex-baremetal-daily-{stream}'
994 node-parameters: true
995 current-parameters: false
996 predefined-parameters:
997 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1002 # Dovetail Danube test job
1004 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
1006 project-type: 'multijob'
1013 - '{project}-defaults'
1014 - project-parameter:
1015 project: '{project}'
1016 branch: 'stable/danube'
1018 gs-pathname: '/danube'
1020 name: DEPLOY_SCENARIO
1021 default: 'os-nosdn-nofeature-ha'
1022 description: "Scenario to deploy with."
1027 use-build-blocker: true
1032 - 'apex-.*-promote.*'
1036 - timed: '' # '0 1 * * *'
1039 - description-setter:
1040 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
1042 name: 'Baremetal Deploy'
1043 condition: SUCCESSFUL
1045 - name: 'apex-deploy-baremetal-danube'
1046 node-parameters: true
1047 current-parameters: true
1048 predefined-parameters: |
1050 GERRIT_BRANCH=$GERRIT_BRANCH
1052 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1053 kill-phase-on: FAILURE
1060 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
1061 node-parameters: true
1062 current-parameters: false
1063 predefined-parameters:
1064 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1065 kill-phase-on: NEVER
1066 abort-all-job: false
1069 ########################
1071 ########################
1073 name: apex-parameter
1078 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1080 name: ARTIFACT_VERSION
1082 description: "Artifact version type"
1084 name: BUILD_DIRECTORY
1085 default: $WORKSPACE/.build
1086 description: "Directory where the build artifact will be located upon the completion of the build."
1088 name: CACHE_DIRECTORY
1089 default: $HOME/opnfv/apex-cache{gs-pathname}
1090 description: "Directory where the cache to be used during the build is located."
1091 # yamllint disable rule:line-length
1094 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1095 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1096 # yamllint enable rule:line-length
1099 default: '{gs-pathname}'
1100 description: "Version directory where opnfv artifacts are stored in gs repository"
1103 default: $GS_BASE{gs-pathname}
1104 description: "URL to Google Storage."
1108 description: "Flag to know if we should promote/upload snapshot artifacts."
1110 ########################
1112 ########################
1113 {% for stream in scenarios %}
1114 # {{ stream }} Builder
1116 name: apex-builder-{{ stream }}
1119 name: Baremetal Deploy and Test Phase
1120 condition: SUCCESSFUL
1122 {%- for scenario in scenarios[stream] %}
1123 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1124 node-parameters: false
1125 current-parameters: false
1126 predefined-parameters: |
1128 kill-phase-on: NEVER
1135 name: 'apex-upload-artifact'
1138 !include-raw: ./apex-upload-artifact.sh
1141 name: 'apex-download-artifact'
1144 !include-raw: ./apex-download-artifact.sh
1150 !include-raw: ./apex-deploy.sh
1153 name: 'apex-fetch-logs'
1156 !include-raw: ./apex-fetch-logs.sh
1158 #######################
1160 ########################
1164 - timed: '0 0 1-31/2 * *'
1169 - timed: '0 0 2-30/2 * *'
1172 name: 'apex-euphrates'
1174 - timed: '0 0 2-30/2 * *'
1179 - timed: '0 3 1 1 7'