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'
630 - '{project}-defaults'
634 !include-raw-escape: ./apex-snapshot-create.sh
638 name: 'apex-upload-snapshot'
643 - '{project}-defaults'
647 properties-content: ARTIFACT_TYPE=snapshot
648 - 'apex-upload-artifact'
652 name: 'apex-csit-promote-daily-{stream}-{os_version}'
654 # Job template for promoting CSIT Snapshots
656 # Required Variables:
657 # stream: branch with - in place of / (eg. stable)
658 # branch: branch (eg. stable)
659 node: '{virtual-slave}'
660 project-type: 'multijob'
661 disabled: '{disable_promote}'
671 gs-pathname: '{gs-pathname}'
673 name: ARTIFACT_VERSION
675 description: "Used for overriding the ARTIFACT_VERSION"
679 description: "Used for overriding the PROMOTE"
683 use-build-blocker: true
691 - timed: '0 12 * * 0'
695 name: apex-virtual-deploy-test
696 condition: SUCCESSFUL
698 - name: 'apex-virtual-{stream}'
699 current-parameters: true
700 predefined-parameters: |
701 DEPLOY_SCENARIO=os-odl-{os_scenario}-noha
703 GERRIT_BRANCH=$GERRIT_BRANCH
704 GERRIT_REFSPEC=$GERRIT_REFSPEC
705 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
706 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
707 FUNCTEST_SUITE_NAME=tempest_smoke_serial
708 FUNCTEST_MODE=testcase
709 node-parameters: true
710 kill-phase-on: FAILURE
714 name: create snapshot
715 condition: SUCCESSFUL
717 - name: 'apex-create-snapshot'
718 current-parameters: true
719 predefined-parameters: |
721 node-parameters: true
722 kill-phase-on: FAILURE
726 name: upload snapshot
727 condition: SUCCESSFUL
729 - name: 'apex-upload-snapshot'
730 current-parameters: true
731 predefined-parameters: |
733 node-parameters: true
734 kill-phase-on: FAILURE
740 name: 'apex-fdio-promote-daily-{stream}'
742 # Job template for promoting CSIT Snapshots
744 # Required Variables:
745 # stream: branch with - in place of / (eg. stable)
746 # branch: branch (eg. stable)
747 node: '{virtual-slave}'
748 project-type: 'multijob'
759 gs-pathname: '{gs-pathname}'
763 use-build-blocker: true
774 condition: SUCCESSFUL
776 - name: 'apex-build-{stream}'
777 current-parameters: false
778 predefined-parameters: |
779 GERRIT_BRANCH=$GERRIT_BRANCH
780 GERRIT_REFSPEC=$GERRIT_REFSPEC
781 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
782 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
783 node-parameters: false
784 kill-phase-on: FAILURE
789 condition: SUCCESSFUL
791 - name: 'apex-deploy-virtual-{stream}'
792 current-parameters: false
793 predefined-parameters: |
794 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
796 GERRIT_BRANCH=$GERRIT_BRANCH
797 GERRIT_REFSPEC=$GERRIT_REFSPEC
798 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
799 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
801 node-parameters: true
802 kill-phase-on: FAILURE
806 name: create snapshot
807 condition: SUCCESSFUL
809 - name: 'apex-create-snapshot'
810 current-parameters: false
811 predefined-parameters: |
813 node-parameters: true
814 kill-phase-on: FAILURE
818 name: upload snapshot
819 condition: SUCCESSFUL
821 - name: 'apex-upload-snapshot'
822 current-parameters: false
823 predefined-parameters: |
825 node-parameters: true
826 kill-phase-on: FAILURE
832 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
834 project-type: 'multijob'
847 - '{project}-defaults'
852 gs-pathname: '{gs-pathname}'
854 name: DEPLOY_SCENARIO
855 default: 'os-nosdn-nofeature-ha'
856 description: "Scenario to deploy with."
859 default: https://gerrit.opnfv.org/gerrit/$PROJECT
860 description: 'Git URL to use on this Jenkins Slave'
863 default: /root/.ssh/id_rsa
864 description: 'SSH key to use for Apex'
869 use-build-blocker: true
874 - 'apex-.*-promote.*'
876 - 'apex-.+-baremetal-.+'
883 - description-setter:
884 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
886 name: 'Baremetal Deploy'
887 condition: SUCCESSFUL
889 - name: 'apex-deploy-baremetal-{stream}'
890 node-parameters: true
891 current-parameters: true
892 predefined-parameters: |
894 GERRIT_BRANCH=$GERRIT_BRANCH
896 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
897 kill-phase-on: FAILURE
904 - name: 'yardstick-apex-baremetal-daily-{stream}'
905 node-parameters: true
906 current-parameters: false
907 predefined-parameters:
908 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
913 # Dovetail Danube test job
915 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
917 project-type: 'multijob'
924 - '{project}-defaults'
927 branch: 'stable/danube'
929 gs-pathname: '/danube'
931 name: DEPLOY_SCENARIO
932 default: 'os-nosdn-nofeature-ha'
933 description: "Scenario to deploy with."
938 use-build-blocker: true
943 - 'apex-.*-promote.*'
947 - timed: '' # '0 1 * * *'
950 - description-setter:
951 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
953 name: 'Baremetal Deploy'
954 condition: SUCCESSFUL
956 - name: 'apex-deploy-baremetal-danube'
957 node-parameters: true
958 current-parameters: true
959 predefined-parameters: |
961 GERRIT_BRANCH=$GERRIT_BRANCH
963 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
964 kill-phase-on: FAILURE
971 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
972 node-parameters: true
973 current-parameters: false
974 predefined-parameters:
975 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
980 ########################
982 ########################
989 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
991 name: ARTIFACT_VERSION
993 description: "Artifact version type"
995 name: BUILD_DIRECTORY
996 default: $WORKSPACE/.build
997 description: "Directory where the build artifact will be located upon the completion of the build."
999 name: CACHE_DIRECTORY
1000 default: $HOME/opnfv/apex-cache{gs-pathname}
1001 description: "Directory where the cache to be used during the build is located."
1002 # yamllint disable rule:line-length
1005 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1006 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1007 # yamllint enable rule:line-length
1010 default: '{gs-pathname}'
1011 description: "Version directory where opnfv artifacts are stored in gs repository"
1014 default: $GS_BASE{gs-pathname}
1015 description: "URL to Google Storage."
1019 description: "Flag to know if we should promote/upload snapshot artifacts."
1021 ########################
1023 ########################
1024 {% for stream in scenarios %}
1025 # {{ stream }} Builder
1027 name: apex-builder-{{ stream }}
1030 name: Baremetal Deploy and Test Phase
1031 condition: SUCCESSFUL
1033 {%- for scenario in scenarios[stream] %}
1034 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1035 node-parameters: false
1036 current-parameters: false
1037 predefined-parameters: |
1039 kill-phase-on: NEVER
1046 name: 'apex-upload-artifact'
1049 !include-raw: ./apex-upload-artifact.sh
1052 name: 'apex-download-artifact'
1055 !include-raw: ./apex-download-artifact.sh
1061 !include-raw: ./apex-deploy.sh
1064 name: 'apex-fetch-logs'
1067 !include-raw: ./apex-fetch-logs.sh
1069 #######################
1071 ########################
1075 - timed: '0 0 1-31/2 * *'
1080 - timed: '0 0 2-30/2 * *'
1083 name: 'apex-euphrates'
1085 - timed: '0 0 2-30/2 * *'
1090 - timed: '0 3 1 1 7'