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'
95 name: 'apex-fetch-logs-{stream}'
107 gs-pathname: '{gs-pathname}'
108 # yamllint enable rule:line-length
120 name: 'apex-runner-cperf-{stream}'
123 project-type: 'multijob'
130 gs-pathname: '{gs-pathname}'
136 default: https://gerrit.opnfv.org/gerrit/$PROJECT
137 description: "Used for overriding the GIT URL coming from parameters macro."
145 use-build-blocker: false
155 - description-setter:
156 description: "Deployed on $NODE_NAME"
158 name: 'Baremetal Deploy'
161 - name: 'apex-deploy-baremetal-{stream}'
162 node-parameters: false
163 current-parameters: true
164 predefined-parameters: |
165 GERRIT_BRANCH=$GERRIT_BRANCH
168 DEPLOY_SCENARIO={verify-scenario}
169 kill-phase-on: FAILURE
174 condition: SUCCESSFUL
176 - name: 'cperf-apex-intel-pod2-daily-master'
177 node-parameters: true
178 current-parameters: false
179 predefined-parameters:
180 DEPLOY_SCENARIO={verify-scenario}
187 name: 'apex-deploy-{platform}-{stream}'
202 - '{project}-{platform}-{stream}-defaults'
207 gs-pathname: '{gs-pathname}'
209 name: DEPLOY_SCENARIO
210 default: '{verify-scenario}'
211 description: "Scenario to deploy with."
212 # yamllint disable rule:line-length
216 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
218 # yamllint enable rule:line-length
222 use-build-blocker: true
237 - description-setter:
238 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
239 - 'apex-download-artifact'
244 # Virtual Deploy and Test
246 name: 'apex-virtual-{stream}'
248 project-type: 'multijob'
258 - '{project}-defaults'
259 - '{project}-virtual-{stream}-defaults'
260 - 'functest-suite-parameter'
265 gs-pathname: '{gs-pathname}'
267 name: DEPLOY_SCENARIO
268 default: '{verify-scenario}'
269 description: "Scenario to deploy with."
271 name: ARTIFACT_VERSION
273 description: "Used for overriding the ARTIFACT_VERSION"
278 use-build-blocker: true
284 - 'apex-verify-gate-.*'
292 - description-setter:
293 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
296 condition: SUCCESSFUL
298 - name: 'apex-deploy-virtual-{stream}'
299 current-parameters: false
300 predefined-parameters: |
301 ARTIFACT_VERSION=$ARTIFACT_VERSION
302 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
304 GERRIT_BRANCH=$GERRIT_BRANCH
305 GERRIT_REFSPEC=$GERRIT_REFSPEC
306 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
307 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
309 node-parameters: true
310 kill-phase-on: FAILURE
314 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
315 echo 'REPO=opnfv' > functest_repo
317 echo 'REPO=ollivier' > functest_repo
320 properties-file: functest_repo
325 - name: 'functest-apex-virtual-suite-{stream}'
326 current-parameters: false
327 predefined-parameters: |
328 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
329 FUNCTEST_MODE=$FUNCTEST_MODE
330 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
332 GERRIT_BRANCH=$GERRIT_BRANCH
333 GERRIT_REFSPEC=$GERRIT_REFSPEC
334 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
335 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
336 node-parameters: true
341 name: apex-fetch-logs
343 - name: 'apex-fetch-logs-{stream}'
344 current-parameters: false
345 predefined-parameters: |
346 GERRIT_BRANCH=$GERRIT_BRANCH
347 GERRIT_REFSPEC=$GERRIT_REFSPEC
348 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
349 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
350 node-parameters: true
355 # Baremetal Deploy and Test
357 name: 'apex-{scenario}-baremetal-{scenario_stream}'
359 project-type: 'multijob'
367 - '{project}-defaults'
368 - '{project}-baremetal-{scenario_stream}-defaults'
373 gs-pathname: '{gs-pathname}'
375 name: DEPLOY_SCENARIO
376 default: '{scenario}'
377 description: "Scenario to deploy with."
382 use-build-blocker: true
387 - 'apex-.*-promote.*'
389 - 'apex-.+-baremetal-.+'
396 - description-setter:
397 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
399 name: 'Baremetal Deploy'
400 condition: SUCCESSFUL
401 execution-type: SEQUENTIALLY
403 - name: 'apex-deploy-baremetal-{scenario_stream}'
404 node-parameters: true
405 current-parameters: true
406 predefined-parameters: |
408 GERRIT_BRANCH=$GERRIT_BRANCH
410 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
414 - name: 'apex-fetch-logs-{scenario_stream}'
415 current-parameters: true
416 predefined-parameters: |
417 GERRIT_BRANCH=$GERRIT_BRANCH
419 node-parameters: true
424 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
425 echo 'REPO=opnfv' > functest_properties
427 echo 'REPO=ollivier' > functest_properties
429 features=$(echo $DEPLOY_SCENARIO | sed -r -n 's/os-.+-(.+)-(noha|ha)/\1/p')
430 if [ "$features" == 'queens' ]; then
431 functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-queens-(noha|ha)/\1-nofeature-\2/p')
432 elif [[ "$features" =~ 'queens' ]]; then
433 functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-(.+)_queens-(noha|ha)/\1-\2-\3/p')
435 functest_scenario=$DEPLOY_SCENARIO
437 echo "DEPLOY_SCENARIO=$functest_scenario" >> functest_properties
439 properties-file: functest_properties
440 override-build-parameters: true
442 name: 'OPNFV Test Suite'
445 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
446 node-parameters: true
447 current-parameters: false
448 predefined-parameters:
449 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
454 name: apex-fetch-logs
456 - name: 'apex-fetch-logs-{scenario_stream}'
457 current-parameters: true
458 predefined-parameters: |
459 GERRIT_BRANCH=$GERRIT_BRANCH
461 node-parameters: true
468 !include-raw-escape: ./update-build-result.groovy
472 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
474 project-type: 'multijob'
479 - '{project}-defaults'
480 - '{project}-baremetal-{scenario_stream}-defaults'
485 gs-pathname: '{gs-pathname}'
487 name: DEPLOY_SCENARIO
488 default: '{scenario}'
489 description: "Scenario to deploy with."
494 use-build-blocker: true
500 - 'apex-testsuite-.+-baremetal-.+'
507 - description-setter:
508 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
513 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
514 node-parameters: true
515 current-parameters: false
516 predefined-parameters:
517 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
525 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
526 node-parameters: true
527 current-parameters: false
528 predefined-parameters:
529 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
534 name: Dovetail-proposed_tests
537 - name: 'dovetail-apex-baremetal-default-mandatory-{scenario_stream}'
538 node-parameters: true
539 current-parameters: false
540 predefined-parameters:
541 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
543 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
547 name: Dovetail-default
550 - name: 'dovetail-apex-baremetal-default-optional-{scenario_stream}'
551 node-parameters: true
552 current-parameters: false
553 predefined-parameters:
554 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
556 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
563 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
564 node-parameters: true
565 current-parameters: false
566 predefined-parameters:
567 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
568 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
572 # Build status is always success due conditional plugin prefetching
573 # build status before multijob phases execute
574 # - conditional-step:
575 # condition-kind: current-status
576 # condition-worst: SUCCESS
577 # condtion-best: SUCCESS
578 # on-evaluation-failure: mark-unstable
580 # - shell: 'echo "Tests Passed"'
583 name: 'apex-daily-{stream}'
585 # Job template for daily build
587 # Required Variables:
588 # stream: branch with - in place of / (eg. stable)
589 # branch: branch (eg. stable)
590 project-type: 'multijob'
592 disabled: '{obj:disable_daily}'
598 - '{project}-defaults'
599 - '{project}-baremetal-{stream}-defaults'
604 gs-pathname: '{gs-pathname}'
609 use-build-blocker: true
620 condition: SUCCESSFUL
622 - name: 'apex-build-{stream}'
623 current-parameters: false
624 predefined-parameters: |
625 GERRIT_BRANCH=$GERRIT_BRANCH
627 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
628 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
629 node-parameters: true
630 kill-phase-on: FAILURE
634 name: 'Verify and upload ISO'
635 condition: SUCCESSFUL
637 - name: 'apex-verify-iso-{stream}'
638 current-parameters: false
639 predefined-parameters: |
640 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
641 GERRIT_BRANCH=$GERRIT_BRANCH
643 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
644 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
645 node-parameters: true
646 kill-phase-on: FAILURE
649 - apex-builder-{stream}
651 # snapshot info fetch
653 name: 'apex-fetch-snap-info'
658 - '{project}-defaults'
662 !include-raw-escape: ./apex-fetch-snap-info.sh
666 name: 'apex-create-snapshot'
671 - '{project}-defaults'
675 !include-raw-escape: ./apex-snapshot-create.sh
679 name: 'apex-upload-snapshot'
684 - '{project}-defaults'
688 properties-content: ARTIFACT_TYPE=snapshot
689 - 'apex-upload-artifact'
693 name: 'apex-csit-promote-daily-{stream}-os-{os_version}-{topology}'
695 # Job template for promoting CSIT Snapshots
697 # Required Variables:
698 # stream: branch with - in place of / (eg. stable)
699 # branch: branch (eg. stable)
700 node: '{virtual-slave}'
701 project-type: 'multijob'
702 disabled: '{disable_promote}'
712 gs-pathname: '{gs-pathname}'
714 name: ARTIFACT_VERSION
716 description: "Used for overriding the ARTIFACT_VERSION"
720 description: "Used for overriding the PROMOTE"
723 default: $GS_BASE{gs-pathname}/{os_version}/{topology}
724 description: "User for overriding GS_URL from apex params"
727 default: '{os_version}'
728 description: OpenStack version short name
731 default: '{odl_branch}'
732 description: ODL branch being used
736 use-build-blocker: true
742 - 'apex-csit-promote.*'
750 - timed: '0 12 * * 0'
754 name: apex-virtual-deploy
755 condition: SUCCESSFUL
757 - name: 'apex-deploy-virtual-{stream}'
758 current-parameters: true
759 predefined-parameters: |
760 DEPLOY_SCENARIO=os-odl-{os_scenario}-{topology}
762 GERRIT_BRANCH=$GERRIT_BRANCH
763 GERRIT_REFSPEC=$GERRIT_REFSPEC
764 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
765 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
766 node-parameters: true
767 kill-phase-on: FAILURE
771 name: fetch snapshot info
772 condition: SUCCESSFUL
774 - name: 'apex-fetch-snap-info'
775 current-parameters: true
776 node-parameters: true
777 kill-phase-on: FAILURE
782 condition: SUCCESSFUL
783 execution-type: SEQUENTIALLY
785 - name: cperf-apex-csit-master
786 predefined-parameters: |
787 ODL_BRANCH=$ODL_BRANCH
788 RC_FILE_PATH=/tmp/csit/overcloudrc
789 NODE_FILE_PATH=/tmp/csit/node.yaml
790 SSH_KEY_PATH=/tmp/csit/id_rsa
791 ODL_CONTAINERIZED=true
792 OS_VERSION=$OS_VERSION
793 node-parameters: true
796 - name: cperf-upload-logs-csit
797 predefined-parameters: |
798 ODL_BRANCH=$ODL_BRANCH
799 OS_VERSION=$OS_VERSION
800 node-parameters: true
801 kill-phase-on: FAILURE
804 name: create snapshot
805 condition: SUCCESSFUL
807 - name: 'apex-create-snapshot'
808 current-parameters: true
809 predefined-parameters: |
811 node-parameters: true
812 kill-phase-on: FAILURE
816 name: upload snapshot
817 condition: SUCCESSFUL
819 - name: 'apex-upload-snapshot'
820 current-parameters: true
821 predefined-parameters: |
823 node-parameters: true
824 kill-phase-on: FAILURE
830 name: 'apex-fdio-promote-daily-{stream}'
832 # Job template for promoting CSIT Snapshots
834 # Required Variables:
835 # stream: branch with - in place of / (eg. stable)
836 # branch: branch (eg. stable)
837 node: '{virtual-slave}'
838 project-type: 'multijob'
849 gs-pathname: '{gs-pathname}'
853 use-build-blocker: true
864 condition: SUCCESSFUL
866 - name: 'apex-build-{stream}'
867 current-parameters: false
868 predefined-parameters: |
869 GERRIT_BRANCH=$GERRIT_BRANCH
870 GERRIT_REFSPEC=$GERRIT_REFSPEC
871 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
872 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
873 node-parameters: false
874 kill-phase-on: FAILURE
879 condition: SUCCESSFUL
881 - name: 'apex-deploy-virtual-{stream}'
882 current-parameters: false
883 predefined-parameters: |
884 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
886 GERRIT_BRANCH=$GERRIT_BRANCH
887 GERRIT_REFSPEC=$GERRIT_REFSPEC
888 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
889 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
891 node-parameters: true
892 kill-phase-on: FAILURE
896 name: create snapshot
897 condition: SUCCESSFUL
899 - name: 'apex-create-snapshot'
900 current-parameters: false
901 predefined-parameters: |
903 node-parameters: true
904 kill-phase-on: FAILURE
908 name: upload snapshot
909 condition: SUCCESSFUL
911 - name: 'apex-upload-snapshot'
912 current-parameters: false
913 predefined-parameters: |
915 node-parameters: true
916 kill-phase-on: FAILURE
922 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
924 project-type: 'multijob'
937 - '{project}-defaults'
942 gs-pathname: '{gs-pathname}'
944 name: DEPLOY_SCENARIO
945 default: 'os-nosdn-nofeature-ha'
946 description: "Scenario to deploy with."
949 default: https://gerrit.opnfv.org/gerrit/$PROJECT
950 description: 'Git URL to use on this Jenkins Slave'
953 default: /root/.ssh/id_rsa
954 description: 'SSH key to use for Apex'
959 use-build-blocker: true
964 - 'apex-.*-promote.*'
966 - 'apex-.+-baremetal-.+'
973 - description-setter:
974 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
976 name: 'Baremetal Deploy'
977 condition: SUCCESSFUL
979 - name: 'apex-deploy-baremetal-{stream}'
980 node-parameters: true
981 current-parameters: true
982 predefined-parameters: |
984 GERRIT_BRANCH=$GERRIT_BRANCH
986 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
987 kill-phase-on: FAILURE
994 - name: 'yardstick-apex-baremetal-daily-{stream}'
995 node-parameters: true
996 current-parameters: false
997 predefined-parameters:
998 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1000 abort-all-job: false
1003 # Dovetail Danube test job
1005 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
1007 project-type: 'multijob'
1014 - '{project}-defaults'
1015 - project-parameter:
1016 project: '{project}'
1017 branch: 'stable/danube'
1019 gs-pathname: '/danube'
1021 name: DEPLOY_SCENARIO
1022 default: 'os-nosdn-nofeature-ha'
1023 description: "Scenario to deploy with."
1028 use-build-blocker: true
1033 - 'apex-.*-promote.*'
1037 - timed: '' # '0 1 * * *'
1040 - description-setter:
1041 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
1043 name: 'Baremetal Deploy'
1044 condition: SUCCESSFUL
1046 - name: 'apex-deploy-baremetal-danube'
1047 node-parameters: true
1048 current-parameters: true
1049 predefined-parameters: |
1051 GERRIT_BRANCH=$GERRIT_BRANCH
1053 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1054 kill-phase-on: FAILURE
1061 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
1062 node-parameters: true
1063 current-parameters: false
1064 predefined-parameters:
1065 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1066 kill-phase-on: NEVER
1067 abort-all-job: false
1070 ########################
1072 ########################
1074 name: apex-parameter
1079 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1081 name: ARTIFACT_VERSION
1083 description: "Artifact version type"
1085 name: BUILD_DIRECTORY
1086 default: $WORKSPACE/.build
1087 description: "Directory where the build artifact will be located upon the completion of the build."
1089 name: CACHE_DIRECTORY
1090 default: $HOME/opnfv/apex-cache{gs-pathname}
1091 description: "Directory where the cache to be used during the build is located."
1092 # yamllint disable rule:line-length
1095 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1096 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1097 # yamllint enable rule:line-length
1100 default: '{gs-pathname}'
1101 description: "Version directory where opnfv artifacts are stored in gs repository"
1104 default: $GS_BASE{gs-pathname}
1105 description: "URL to Google Storage."
1109 description: "Flag to know if we should promote/upload snapshot artifacts."
1111 ########################
1113 ########################
1114 {% for stream in scenarios %}
1115 # {{ stream }} Builder
1117 name: apex-builder-{{ stream }}
1120 name: Baremetal Deploy and Test Phase
1121 condition: SUCCESSFUL
1123 {%- for scenario in scenarios[stream] %}
1124 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1125 node-parameters: false
1126 current-parameters: false
1127 predefined-parameters: |
1129 kill-phase-on: NEVER
1136 name: 'apex-upload-artifact'
1139 !include-raw: ./apex-upload-artifact.sh
1142 name: 'apex-download-artifact'
1145 !include-raw: ./apex-download-artifact.sh
1151 !include-raw: ./apex-deploy.sh
1154 name: 'apex-fetch-logs'
1157 !include-raw: ./apex-fetch-logs.sh
1159 #######################
1161 ########################
1165 - timed: '0 0 1-31/2 * *'
1170 - timed: '0 0 2-30/2 * *'
1173 name: 'apex-euphrates'
1175 - timed: '0 0 2-30/2 * *'
1180 - timed: '0 3 1 1 7'