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] %}
82 os_scenario: 'nofeature'
90 name: 'apex-fetch-logs-{stream}'
102 gs-pathname: '{gs-pathname}'
103 # yamllint enable rule:line-length
115 name: 'apex-runner-cperf-{stream}'
118 project-type: 'multijob'
125 gs-pathname: '{gs-pathname}'
131 default: https://gerrit.opnfv.org/gerrit/$PROJECT
132 description: "Used for overriding the GIT URL coming from parameters macro."
140 use-build-blocker: false
150 - description-setter:
151 description: "Deployed on $NODE_NAME"
153 name: 'Baremetal Deploy'
156 - name: 'apex-deploy-baremetal-{stream}'
157 node-parameters: false
158 current-parameters: true
159 predefined-parameters: |
160 GERRIT_BRANCH=$GERRIT_BRANCH
163 DEPLOY_SCENARIO={verify-scenario}
164 kill-phase-on: FAILURE
169 condition: SUCCESSFUL
171 - name: 'cperf-apex-intel-pod2-daily-master'
172 node-parameters: true
173 current-parameters: false
174 predefined-parameters:
175 DEPLOY_SCENARIO={verify-scenario}
182 name: 'apex-deploy-{platform}-{stream}'
197 - '{project}-{platform}-{stream}-defaults'
202 gs-pathname: '{gs-pathname}'
204 name: DEPLOY_SCENARIO
205 default: '{verify-scenario}'
206 description: "Scenario to deploy with."
207 # yamllint disable rule:line-length
211 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
213 # yamllint enable rule:line-length
217 use-build-blocker: true
232 - description-setter:
233 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
234 - 'apex-download-artifact'
239 # Virtual Deploy and Test
241 name: 'apex-virtual-{stream}'
243 project-type: 'multijob'
253 - '{project}-defaults'
254 - '{project}-virtual-{stream}-defaults'
255 - 'functest-suite-parameter'
260 gs-pathname: '{gs-pathname}'
262 name: DEPLOY_SCENARIO
263 default: '{verify-scenario}'
264 description: "Scenario to deploy with."
266 name: ARTIFACT_VERSION
268 description: "Used for overriding the ARTIFACT_VERSION"
273 use-build-blocker: true
279 - 'apex-verify-gate-.*'
287 - description-setter:
288 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
291 condition: SUCCESSFUL
293 - name: 'apex-deploy-virtual-{stream}'
294 current-parameters: false
295 predefined-parameters: |
296 ARTIFACT_VERSION=$ARTIFACT_VERSION
297 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
299 GERRIT_BRANCH=$GERRIT_BRANCH
300 GERRIT_REFSPEC=$GERRIT_REFSPEC
301 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
302 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
304 node-parameters: true
305 kill-phase-on: FAILURE
309 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
310 echo 'REPO=opnfv' > functest_repo
312 echo 'REPO=ollivier' > functest_repo
315 properties-file: functest_repo
320 - name: 'functest-apex-virtual-suite-{stream}'
321 current-parameters: false
322 predefined-parameters: |
323 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
324 FUNCTEST_MODE=$FUNCTEST_MODE
325 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
327 GERRIT_BRANCH=$GERRIT_BRANCH
328 GERRIT_REFSPEC=$GERRIT_REFSPEC
329 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
330 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
331 node-parameters: true
336 name: apex-fetch-logs
338 - name: 'apex-fetch-logs-{stream}'
339 current-parameters: false
340 predefined-parameters: |
341 GERRIT_BRANCH=$GERRIT_BRANCH
342 GERRIT_REFSPEC=$GERRIT_REFSPEC
343 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
344 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
345 node-parameters: true
350 # Baremetal Deploy and Test
352 name: 'apex-{scenario}-baremetal-{scenario_stream}'
354 project-type: 'multijob'
362 - '{project}-defaults'
363 - '{project}-baremetal-{scenario_stream}-defaults'
368 gs-pathname: '{gs-pathname}'
370 name: DEPLOY_SCENARIO
371 default: '{scenario}'
372 description: "Scenario to deploy with."
377 use-build-blocker: true
382 - 'apex-.*-promote.*'
384 - 'apex-.+-baremetal-.+'
391 - description-setter:
392 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
394 name: 'Baremetal Deploy'
395 condition: SUCCESSFUL
396 execution-type: SEQUENTIALLY
398 - name: 'apex-deploy-baremetal-{scenario_stream}'
399 node-parameters: true
400 current-parameters: true
401 predefined-parameters: |
403 GERRIT_BRANCH=$GERRIT_BRANCH
405 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
409 - name: 'apex-fetch-logs-{scenario_stream}'
410 current-parameters: true
411 predefined-parameters: |
412 GERRIT_BRANCH=$GERRIT_BRANCH
414 node-parameters: true
419 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
420 echo 'REPO=opnfv' > functest_properties
422 echo 'REPO=ollivier' > functest_properties
424 features=$(echo $DEPLOY_SCENARIO | sed -r -n 's/os-.+-(.+)-(noha|ha)/\1/p')
425 if [ "$features" == 'queens' ]; then
426 functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-queens-(noha|ha)/\1-nofeature-\2/p')
427 elif [[ "$features" =~ 'queens' ]]; then
428 functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-(.+)_queens-(noha|ha)/\1-\2-\3/p')
430 functest_scenario=$DEPLOY_SCENARIO
432 echo "DEPLOY_SCENARIO=$functest_scenario" >> functest_properties
434 properties-file: functest_properties
435 override-build-parameters: true
437 name: 'OPNFV Test Suite'
440 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
441 node-parameters: true
442 current-parameters: false
443 predefined-parameters:
444 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
449 name: apex-fetch-logs
451 - name: 'apex-fetch-logs-{scenario_stream}'
452 current-parameters: true
453 predefined-parameters: |
454 GERRIT_BRANCH=$GERRIT_BRANCH
456 node-parameters: true
463 !include-raw-escape: ./update-build-result.groovy
467 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
469 project-type: 'multijob'
474 - '{project}-defaults'
475 - '{project}-baremetal-{scenario_stream}-defaults'
480 gs-pathname: '{gs-pathname}'
482 name: DEPLOY_SCENARIO
483 default: '{scenario}'
484 description: "Scenario to deploy with."
489 use-build-blocker: true
495 - 'apex-testsuite-.+-baremetal-.+'
502 - description-setter:
503 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
508 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
509 node-parameters: true
510 current-parameters: false
511 predefined-parameters:
512 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
520 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
521 node-parameters: true
522 current-parameters: false
523 predefined-parameters:
524 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
529 name: Dovetail-proposed_tests
532 - name: 'dovetail-apex-baremetal-default-mandatory-{scenario_stream}'
533 node-parameters: true
534 current-parameters: false
535 predefined-parameters:
536 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
538 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
542 name: Dovetail-default
545 - name: 'dovetail-apex-baremetal-default-optional-{scenario_stream}'
546 node-parameters: true
547 current-parameters: false
548 predefined-parameters:
549 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
551 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
558 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
559 node-parameters: true
560 current-parameters: false
561 predefined-parameters:
562 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
563 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
567 # Build status is always success due conditional plugin prefetching
568 # build status before multijob phases execute
569 # - conditional-step:
570 # condition-kind: current-status
571 # condition-worst: SUCCESS
572 # condtion-best: SUCCESS
573 # on-evaluation-failure: mark-unstable
575 # - shell: 'echo "Tests Passed"'
578 name: 'apex-daily-{stream}'
580 # Job template for daily build
582 # Required Variables:
583 # stream: branch with - in place of / (eg. stable)
584 # branch: branch (eg. stable)
585 project-type: 'multijob'
587 disabled: '{obj:disable_daily}'
593 - '{project}-defaults'
594 - '{project}-baremetal-{stream}-defaults'
599 gs-pathname: '{gs-pathname}'
604 use-build-blocker: true
615 condition: SUCCESSFUL
617 - name: 'apex-build-{stream}'
618 current-parameters: false
619 predefined-parameters: |
620 GERRIT_BRANCH=$GERRIT_BRANCH
622 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
623 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
624 node-parameters: true
625 kill-phase-on: FAILURE
629 name: 'Verify and upload ISO'
630 condition: SUCCESSFUL
632 - name: 'apex-verify-iso-{stream}'
633 current-parameters: false
634 predefined-parameters: |
635 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
636 GERRIT_BRANCH=$GERRIT_BRANCH
638 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
639 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
640 node-parameters: true
641 kill-phase-on: FAILURE
644 - apex-builder-{stream}
648 name: 'apex-create-snapshot'
653 - '{project}-defaults'
657 !include-raw-escape: ./apex-snapshot-create.sh
661 name: 'apex-upload-snapshot'
666 - '{project}-defaults'
670 properties-content: ARTIFACT_TYPE=snapshot
671 - 'apex-upload-artifact'
675 name: 'apex-csit-promote-daily-{stream}-os-{os_version}-{topology}'
677 # Job template for promoting CSIT Snapshots
679 # Required Variables:
680 # stream: branch with - in place of / (eg. stable)
681 # branch: branch (eg. stable)
682 node: '{virtual-slave}'
683 project-type: 'multijob'
684 disabled: '{disable_promote}'
694 gs-pathname: '{gs-pathname}'
696 name: ARTIFACT_VERSION
698 description: "Used for overriding the ARTIFACT_VERSION"
702 description: "Used for overriding the PROMOTE"
705 default: $GS_BASE{gs-pathname}/{os_version}/{topology}
706 description: "User for overriding GS_URL from apex params"
710 use-build-blocker: true
716 - 'apex-csit-promote.*'
724 - timed: '0 12 * * 0'
728 name: apex-virtual-deploy-test
729 condition: SUCCESSFUL
731 - name: 'apex-virtual-{stream}'
732 current-parameters: true
733 predefined-parameters: |
734 DEPLOY_SCENARIO=os-odl-{os_scenario}-{topology}
736 GERRIT_BRANCH=$GERRIT_BRANCH
737 GERRIT_REFSPEC=$GERRIT_REFSPEC
738 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
739 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
740 FUNCTEST_SUITE_NAME=tempest_smoke
741 FUNCTEST_MODE=testcase
742 node-parameters: true
743 kill-phase-on: FAILURE
747 name: create snapshot
748 condition: SUCCESSFUL
750 - name: 'apex-create-snapshot'
751 current-parameters: true
752 predefined-parameters: |
754 node-parameters: true
755 kill-phase-on: FAILURE
759 name: upload snapshot
760 condition: SUCCESSFUL
762 - name: 'apex-upload-snapshot'
763 current-parameters: true
764 predefined-parameters: |
766 node-parameters: true
767 kill-phase-on: FAILURE
773 name: 'apex-fdio-promote-daily-{stream}'
775 # Job template for promoting CSIT Snapshots
777 # Required Variables:
778 # stream: branch with - in place of / (eg. stable)
779 # branch: branch (eg. stable)
780 node: '{virtual-slave}'
781 project-type: 'multijob'
792 gs-pathname: '{gs-pathname}'
796 use-build-blocker: true
807 condition: SUCCESSFUL
809 - name: 'apex-build-{stream}'
810 current-parameters: false
811 predefined-parameters: |
812 GERRIT_BRANCH=$GERRIT_BRANCH
813 GERRIT_REFSPEC=$GERRIT_REFSPEC
814 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
815 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
816 node-parameters: false
817 kill-phase-on: FAILURE
822 condition: SUCCESSFUL
824 - name: 'apex-deploy-virtual-{stream}'
825 current-parameters: false
826 predefined-parameters: |
827 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
829 GERRIT_BRANCH=$GERRIT_BRANCH
830 GERRIT_REFSPEC=$GERRIT_REFSPEC
831 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
832 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
834 node-parameters: true
835 kill-phase-on: FAILURE
839 name: create snapshot
840 condition: SUCCESSFUL
842 - name: 'apex-create-snapshot'
843 current-parameters: false
844 predefined-parameters: |
846 node-parameters: true
847 kill-phase-on: FAILURE
851 name: upload snapshot
852 condition: SUCCESSFUL
854 - name: 'apex-upload-snapshot'
855 current-parameters: false
856 predefined-parameters: |
858 node-parameters: true
859 kill-phase-on: FAILURE
865 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
867 project-type: 'multijob'
880 - '{project}-defaults'
885 gs-pathname: '{gs-pathname}'
887 name: DEPLOY_SCENARIO
888 default: 'os-nosdn-nofeature-ha'
889 description: "Scenario to deploy with."
892 default: https://gerrit.opnfv.org/gerrit/$PROJECT
893 description: 'Git URL to use on this Jenkins Slave'
896 default: /root/.ssh/id_rsa
897 description: 'SSH key to use for Apex'
902 use-build-blocker: true
907 - 'apex-.*-promote.*'
909 - 'apex-.+-baremetal-.+'
916 - description-setter:
917 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
919 name: 'Baremetal Deploy'
920 condition: SUCCESSFUL
922 - name: 'apex-deploy-baremetal-{stream}'
923 node-parameters: true
924 current-parameters: true
925 predefined-parameters: |
927 GERRIT_BRANCH=$GERRIT_BRANCH
929 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
930 kill-phase-on: FAILURE
937 - name: 'yardstick-apex-baremetal-daily-{stream}'
938 node-parameters: true
939 current-parameters: false
940 predefined-parameters:
941 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
946 # Dovetail Danube test job
948 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
950 project-type: 'multijob'
957 - '{project}-defaults'
960 branch: 'stable/danube'
962 gs-pathname: '/danube'
964 name: DEPLOY_SCENARIO
965 default: 'os-nosdn-nofeature-ha'
966 description: "Scenario to deploy with."
971 use-build-blocker: true
976 - 'apex-.*-promote.*'
980 - timed: '' # '0 1 * * *'
983 - description-setter:
984 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
986 name: 'Baremetal Deploy'
987 condition: SUCCESSFUL
989 - name: 'apex-deploy-baremetal-danube'
990 node-parameters: true
991 current-parameters: true
992 predefined-parameters: |
994 GERRIT_BRANCH=$GERRIT_BRANCH
996 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
997 kill-phase-on: FAILURE
1004 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
1005 node-parameters: true
1006 current-parameters: false
1007 predefined-parameters:
1008 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1009 kill-phase-on: NEVER
1010 abort-all-job: false
1013 ########################
1015 ########################
1017 name: apex-parameter
1022 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1024 name: ARTIFACT_VERSION
1026 description: "Artifact version type"
1028 name: BUILD_DIRECTORY
1029 default: $WORKSPACE/.build
1030 description: "Directory where the build artifact will be located upon the completion of the build."
1032 name: CACHE_DIRECTORY
1033 default: $HOME/opnfv/apex-cache{gs-pathname}
1034 description: "Directory where the cache to be used during the build is located."
1035 # yamllint disable rule:line-length
1038 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1039 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1040 # yamllint enable rule:line-length
1043 default: '{gs-pathname}'
1044 description: "Version directory where opnfv artifacts are stored in gs repository"
1047 default: $GS_BASE{gs-pathname}
1048 description: "URL to Google Storage."
1052 description: "Flag to know if we should promote/upload snapshot artifacts."
1054 ########################
1056 ########################
1057 {% for stream in scenarios %}
1058 # {{ stream }} Builder
1060 name: apex-builder-{{ stream }}
1063 name: Baremetal Deploy and Test Phase
1064 condition: SUCCESSFUL
1066 {%- for scenario in scenarios[stream] %}
1067 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1068 node-parameters: false
1069 current-parameters: false
1070 predefined-parameters: |
1072 kill-phase-on: NEVER
1079 name: 'apex-upload-artifact'
1082 !include-raw: ./apex-upload-artifact.sh
1085 name: 'apex-download-artifact'
1088 !include-raw: ./apex-download-artifact.sh
1094 !include-raw: ./apex-deploy.sh
1097 name: 'apex-fetch-logs'
1100 !include-raw: ./apex-fetch-logs.sh
1102 #######################
1104 ########################
1108 - timed: '0 0 1-31/2 * *'
1113 - timed: '0 0 2-30/2 * *'
1116 name: 'apex-euphrates'
1118 - timed: '0 0 2-30/2 * *'
1123 - timed: '0 3 1 1 7'