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}'
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
229 - description-setter:
230 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
231 - 'apex-download-artifact'
236 # Virtual Deploy and Test
238 name: 'apex-virtual-{stream}'
240 project-type: 'multijob'
250 - '{project}-defaults'
251 - '{project}-virtual-{stream}-defaults'
252 - 'functest-suite-parameter'
257 gs-pathname: '{gs-pathname}'
259 name: DEPLOY_SCENARIO
260 default: '{verify-scenario}'
261 description: "Scenario to deploy with."
263 name: ARTIFACT_VERSION
265 description: "Used for overriding the ARTIFACT_VERSION"
270 use-build-blocker: true
276 - 'apex-verify-gate-.*'
277 - 'apex-.*-promote.*'
285 - description-setter:
286 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
289 condition: SUCCESSFUL
291 - name: 'apex-deploy-virtual-{stream}'
292 current-parameters: false
293 predefined-parameters: |
294 ARTIFACT_VERSION=$ARTIFACT_VERSION
295 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
297 GERRIT_BRANCH=$GERRIT_BRANCH
298 GERRIT_REFSPEC=$GERRIT_REFSPEC
299 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
300 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
302 node-parameters: true
303 kill-phase-on: FAILURE
307 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
308 echo 'REPO=opnfv' > functest_repo
310 echo 'REPO=ollivier' > functest_repo
313 properties-file: functest_repo
318 - name: 'functest-apex-virtual-suite-{stream}'
319 current-parameters: false
320 predefined-parameters: |
321 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
322 FUNCTEST_MODE=$FUNCTEST_MODE
323 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
325 GERRIT_BRANCH=$GERRIT_BRANCH
326 GERRIT_REFSPEC=$GERRIT_REFSPEC
327 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
328 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
329 node-parameters: true
334 name: apex-fetch-logs
336 - name: 'apex-fetch-logs-{stream}'
337 current-parameters: false
338 predefined-parameters: |
339 GERRIT_BRANCH=$GERRIT_BRANCH
340 GERRIT_REFSPEC=$GERRIT_REFSPEC
341 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
342 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
343 node-parameters: true
348 # Baremetal Deploy and Test
350 name: 'apex-{scenario}-baremetal-{scenario_stream}'
352 project-type: 'multijob'
360 - '{project}-defaults'
361 - '{project}-baremetal-{scenario_stream}-defaults'
366 gs-pathname: '{gs-pathname}'
368 name: DEPLOY_SCENARIO
369 default: '{scenario}'
370 description: "Scenario to deploy with."
375 use-build-blocker: true
380 - 'apex-.*-promote.*'
382 - 'apex-.+-baremetal-.+'
389 - description-setter:
390 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
392 name: 'Baremetal Deploy'
393 condition: SUCCESSFUL
394 execution-type: SEQUENTIALLY
396 - name: 'apex-deploy-baremetal-{scenario_stream}'
397 node-parameters: true
398 current-parameters: true
399 predefined-parameters: |
401 GERRIT_BRANCH=$GERRIT_BRANCH
403 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
407 - name: 'apex-fetch-logs-{scenario_stream}'
408 current-parameters: true
409 predefined-parameters: |
410 GERRIT_BRANCH=$GERRIT_BRANCH
412 node-parameters: true
417 name: 'OPNFV Test Suite'
420 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
421 node-parameters: true
422 current-parameters: false
423 predefined-parameters:
424 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
429 name: apex-fetch-logs
431 - name: 'apex-fetch-logs-{scenario_stream}'
432 current-parameters: true
433 predefined-parameters: |
434 GERRIT_BRANCH=$GERRIT_BRANCH
436 node-parameters: true
443 !include-raw-escape: ./update-build-result.groovy
447 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
449 project-type: 'multijob'
454 - '{project}-defaults'
455 - '{project}-baremetal-{scenario_stream}-defaults'
460 gs-pathname: '{gs-pathname}'
462 name: DEPLOY_SCENARIO
463 default: '{scenario}'
464 description: "Scenario to deploy with."
469 use-build-blocker: true
475 - 'apex-testsuite-.+-baremetal-.+'
482 - description-setter:
483 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
488 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
489 node-parameters: true
490 current-parameters: false
491 predefined-parameters:
492 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
500 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
501 node-parameters: true
502 current-parameters: false
503 predefined-parameters:
504 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
509 name: Dovetail-proposed_tests
512 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
513 node-parameters: true
514 current-parameters: false
515 predefined-parameters:
516 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
518 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
522 name: Dovetail-default
525 - name: 'dovetail-apex-baremetal-default-{scenario_stream}'
526 node-parameters: true
527 current-parameters: false
528 predefined-parameters:
529 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
531 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
538 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
539 node-parameters: true
540 current-parameters: false
541 predefined-parameters:
542 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
543 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
547 # Build status is always success due conditional plugin prefetching
548 # build status before multijob phases execute
549 # - conditional-step:
550 # condition-kind: current-status
551 # condition-worst: SUCCESS
552 # condtion-best: SUCCESS
553 # on-evaluation-failure: mark-unstable
555 # - shell: 'echo "Tests Passed"'
558 name: 'apex-daily-{stream}'
560 # Job template for daily build
562 # Required Variables:
563 # stream: branch with - in place of / (eg. stable)
564 # branch: branch (eg. stable)
565 project-type: 'multijob'
567 disabled: '{obj:disable_daily}'
573 - '{project}-defaults'
574 - '{project}-baremetal-{stream}-defaults'
579 gs-pathname: '{gs-pathname}'
584 use-build-blocker: true
595 condition: SUCCESSFUL
597 - name: 'apex-build-{stream}'
598 current-parameters: false
599 predefined-parameters: |
600 GERRIT_BRANCH=$GERRIT_BRANCH
602 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
603 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
604 node-parameters: true
605 kill-phase-on: FAILURE
609 name: 'Verify and upload ISO'
610 condition: SUCCESSFUL
612 - name: 'apex-verify-iso-{stream}'
613 current-parameters: false
614 predefined-parameters: |
615 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
616 GERRIT_BRANCH=$GERRIT_BRANCH
618 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
619 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
620 node-parameters: true
621 kill-phase-on: FAILURE
624 - apex-builder-{stream}
628 name: 'apex-create-snapshot'
633 - '{project}-defaults'
637 !include-raw-escape: ./apex-snapshot-create.sh
641 name: 'apex-upload-snapshot'
646 - '{project}-defaults'
650 properties-content: ARTIFACT_TYPE=snapshot
651 - 'apex-upload-artifact'
655 name: 'apex-csit-promote-daily-{stream}-os-{os_version}'
657 # Job template for promoting CSIT Snapshots
659 # Required Variables:
660 # stream: branch with - in place of / (eg. stable)
661 # branch: branch (eg. stable)
662 node: '{virtual-slave}'
663 project-type: 'multijob'
664 disabled: '{disable_promote}'
674 gs-pathname: '{gs-pathname}'
676 name: ARTIFACT_VERSION
678 description: "Used for overriding the ARTIFACT_VERSION"
682 description: "Used for overriding the PROMOTE"
686 use-build-blocker: true
694 - timed: '0 12 * * 0'
698 name: apex-virtual-deploy-test
699 condition: SUCCESSFUL
701 - name: 'apex-virtual-{stream}'
702 current-parameters: true
703 predefined-parameters: |
704 DEPLOY_SCENARIO=os-odl-{os_scenario}-noha
706 GERRIT_BRANCH=$GERRIT_BRANCH
707 GERRIT_REFSPEC=$GERRIT_REFSPEC
708 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
709 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
710 FUNCTEST_SUITE_NAME=tempest_smoke_serial
711 FUNCTEST_MODE=testcase
712 node-parameters: true
713 kill-phase-on: FAILURE
717 name: create snapshot
718 condition: SUCCESSFUL
720 - name: 'apex-create-snapshot'
721 current-parameters: true
722 predefined-parameters: |
724 node-parameters: true
725 kill-phase-on: FAILURE
729 name: upload snapshot
730 condition: SUCCESSFUL
732 - name: 'apex-upload-snapshot'
733 current-parameters: true
734 predefined-parameters: |
736 node-parameters: true
737 kill-phase-on: FAILURE
743 name: 'apex-fdio-promote-daily-{stream}'
745 # Job template for promoting CSIT Snapshots
747 # Required Variables:
748 # stream: branch with - in place of / (eg. stable)
749 # branch: branch (eg. stable)
750 node: '{virtual-slave}'
751 project-type: 'multijob'
762 gs-pathname: '{gs-pathname}'
766 use-build-blocker: true
777 condition: SUCCESSFUL
779 - name: 'apex-build-{stream}'
780 current-parameters: false
781 predefined-parameters: |
782 GERRIT_BRANCH=$GERRIT_BRANCH
783 GERRIT_REFSPEC=$GERRIT_REFSPEC
784 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
785 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
786 node-parameters: false
787 kill-phase-on: FAILURE
792 condition: SUCCESSFUL
794 - name: 'apex-deploy-virtual-{stream}'
795 current-parameters: false
796 predefined-parameters: |
797 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
799 GERRIT_BRANCH=$GERRIT_BRANCH
800 GERRIT_REFSPEC=$GERRIT_REFSPEC
801 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
802 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
804 node-parameters: true
805 kill-phase-on: FAILURE
809 name: create snapshot
810 condition: SUCCESSFUL
812 - name: 'apex-create-snapshot'
813 current-parameters: false
814 predefined-parameters: |
816 node-parameters: true
817 kill-phase-on: FAILURE
821 name: upload snapshot
822 condition: SUCCESSFUL
824 - name: 'apex-upload-snapshot'
825 current-parameters: false
826 predefined-parameters: |
828 node-parameters: true
829 kill-phase-on: FAILURE
835 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
837 project-type: 'multijob'
850 - '{project}-defaults'
855 gs-pathname: '{gs-pathname}'
857 name: DEPLOY_SCENARIO
858 default: 'os-nosdn-nofeature-ha'
859 description: "Scenario to deploy with."
862 default: https://gerrit.opnfv.org/gerrit/$PROJECT
863 description: 'Git URL to use on this Jenkins Slave'
866 default: /root/.ssh/id_rsa
867 description: 'SSH key to use for Apex'
872 use-build-blocker: true
877 - 'apex-.*-promote.*'
879 - 'apex-.+-baremetal-.+'
886 - description-setter:
887 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
889 name: 'Baremetal Deploy'
890 condition: SUCCESSFUL
892 - name: 'apex-deploy-baremetal-{stream}'
893 node-parameters: true
894 current-parameters: true
895 predefined-parameters: |
897 GERRIT_BRANCH=$GERRIT_BRANCH
899 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
900 kill-phase-on: FAILURE
907 - name: 'yardstick-apex-baremetal-daily-{stream}'
908 node-parameters: true
909 current-parameters: false
910 predefined-parameters:
911 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
916 # Dovetail Danube test job
918 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
920 project-type: 'multijob'
927 - '{project}-defaults'
930 branch: 'stable/danube'
932 gs-pathname: '/danube'
934 name: DEPLOY_SCENARIO
935 default: 'os-nosdn-nofeature-ha'
936 description: "Scenario to deploy with."
941 use-build-blocker: true
946 - 'apex-.*-promote.*'
950 - timed: '' # '0 1 * * *'
953 - description-setter:
954 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
956 name: 'Baremetal Deploy'
957 condition: SUCCESSFUL
959 - name: 'apex-deploy-baremetal-danube'
960 node-parameters: true
961 current-parameters: true
962 predefined-parameters: |
964 GERRIT_BRANCH=$GERRIT_BRANCH
966 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
967 kill-phase-on: FAILURE
974 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
975 node-parameters: true
976 current-parameters: false
977 predefined-parameters:
978 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
983 ########################
985 ########################
992 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
994 name: ARTIFACT_VERSION
996 description: "Artifact version type"
998 name: BUILD_DIRECTORY
999 default: $WORKSPACE/.build
1000 description: "Directory where the build artifact will be located upon the completion of the build."
1002 name: CACHE_DIRECTORY
1003 default: $HOME/opnfv/apex-cache{gs-pathname}
1004 description: "Directory where the cache to be used during the build is located."
1005 # yamllint disable rule:line-length
1008 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1009 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1010 # yamllint enable rule:line-length
1013 default: '{gs-pathname}'
1014 description: "Version directory where opnfv artifacts are stored in gs repository"
1017 default: $GS_BASE{gs-pathname}
1018 description: "URL to Google Storage."
1022 description: "Flag to know if we should promote/upload snapshot artifacts."
1024 ########################
1026 ########################
1027 {% for stream in scenarios %}
1028 # {{ stream }} Builder
1030 name: apex-builder-{{ stream }}
1033 name: Baremetal Deploy and Test Phase
1034 condition: SUCCESSFUL
1036 {%- for scenario in scenarios[stream] %}
1037 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1038 node-parameters: false
1039 current-parameters: false
1040 predefined-parameters: |
1042 kill-phase-on: NEVER
1049 name: 'apex-upload-artifact'
1052 !include-raw: ./apex-upload-artifact.sh
1055 name: 'apex-download-artifact'
1058 !include-raw: ./apex-download-artifact.sh
1064 !include-raw: ./apex-deploy.sh
1067 name: 'apex-fetch-logs'
1070 !include-raw: ./apex-fetch-logs.sh
1072 #######################
1074 ########################
1078 - timed: '0 0 1-31/2 * *'
1083 - timed: '0 0 2-30/2 * *'
1086 name: 'apex-euphrates'
1088 - timed: '0 0 2-30/2 * *'
1093 - timed: '0 3 1 1 7'