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-odl-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-odl-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'
255 gs-pathname: '{gs-pathname}'
257 name: DEPLOY_SCENARIO
258 default: '{verify-scenario}'
259 description: "Scenario to deploy with."
261 name: ARTIFACT_VERSION
263 description: "Used for overriding the ARTIFACT_VERSION"
268 use-build-blocker: true
272 - 'apex-.*-promote.*'
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
298 node-parameters: true
299 kill-phase-on: FAILURE
306 - name: 'functest-apex-virtual-suite-{stream}'
307 current-parameters: false
308 predefined-parameters: |
309 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
310 FUNCTEST_SUITE_NAME=healthcheck
311 GERRIT_BRANCH=$GERRIT_BRANCH
312 GERRIT_REFSPEC=$GERRIT_REFSPEC
313 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
314 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
315 node-parameters: true
320 name: apex-fetch-logs
322 - name: 'apex-fetch-logs-{stream}'
323 current-parameters: false
324 predefined-parameters: |
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 # Baremetal Deploy and Test
336 name: 'apex-{scenario}-baremetal-{scenario_stream}'
338 project-type: 'multijob'
346 - '{project}-defaults'
347 - '{project}-baremetal-{scenario_stream}-defaults'
352 gs-pathname: '{gs-pathname}'
354 name: DEPLOY_SCENARIO
355 default: '{scenario}'
356 description: "Scenario to deploy with."
361 use-build-blocker: true
366 - 'apex-.*-promote.*'
368 - 'apex-.+-baremetal-.+'
375 - description-setter:
376 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
378 name: 'Baremetal Deploy'
379 condition: SUCCESSFUL
380 execution-type: SEQUENTIALLY
382 - name: 'apex-deploy-baremetal-{scenario_stream}'
383 node-parameters: true
384 current-parameters: true
385 predefined-parameters: |
387 GERRIT_BRANCH=$GERRIT_BRANCH
389 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
393 - name: 'apex-fetch-logs-{scenario_stream}'
394 current-parameters: true
395 predefined-parameters: |
396 GERRIT_BRANCH=$GERRIT_BRANCH
398 node-parameters: true
403 name: 'OPNFV Test Suite'
406 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
407 node-parameters: true
408 current-parameters: false
409 predefined-parameters:
410 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
415 name: apex-fetch-logs
417 - name: 'apex-fetch-logs-{scenario_stream}'
418 current-parameters: true
419 predefined-parameters: |
420 GERRIT_BRANCH=$GERRIT_BRANCH
422 node-parameters: true
429 !include-raw-escape: ./update-build-result.groovy
433 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
435 project-type: 'multijob'
440 - '{project}-defaults'
441 - '{project}-baremetal-{scenario_stream}-defaults'
446 gs-pathname: '{gs-pathname}'
448 name: DEPLOY_SCENARIO
449 default: '{scenario}'
450 description: "Scenario to deploy with."
455 use-build-blocker: true
460 - 'apex-.*-promote.*'
462 - 'apex-testsuite-.+-baremetal-.+'
469 - description-setter:
470 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
475 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
476 node-parameters: true
477 current-parameters: false
478 predefined-parameters:
479 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
487 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
488 node-parameters: true
489 current-parameters: false
490 predefined-parameters:
491 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
496 name: Dovetail-proposed_tests
499 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
500 node-parameters: true
501 current-parameters: false
502 predefined-parameters:
503 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
505 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
506 && $BUILD_NUMBER % 2 == 1"
510 name: Dovetail-default
513 - name: 'dovetail-apex-baremetal-default-{scenario_stream}'
514 node-parameters: true
515 current-parameters: false
516 predefined-parameters:
517 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
519 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
520 && $BUILD_NUMBER % 2 == 0"
527 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
528 node-parameters: true
529 current-parameters: false
530 predefined-parameters:
531 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
532 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
536 # Build status is always success due conditional plugin prefetching
537 # build status before multijob phases execute
538 # - conditional-step:
539 # condition-kind: current-status
540 # condition-worst: SUCCESS
541 # condtion-best: SUCCESS
542 # on-evaluation-failure: mark-unstable
544 # - shell: 'echo "Tests Passed"'
547 name: 'apex-daily-{stream}'
549 # Job template for daily build
551 # Required Variables:
552 # stream: branch with - in place of / (eg. stable)
553 # branch: branch (eg. stable)
554 project-type: 'multijob'
556 disabled: '{obj:disable_daily}'
562 - '{project}-defaults'
563 - '{project}-baremetal-{stream}-defaults'
568 gs-pathname: '{gs-pathname}'
573 use-build-blocker: true
584 condition: SUCCESSFUL
586 - name: 'apex-build-{stream}'
587 current-parameters: false
588 predefined-parameters: |
589 GERRIT_BRANCH=$GERRIT_BRANCH
591 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
592 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
593 node-parameters: true
594 kill-phase-on: FAILURE
598 name: 'Verify and upload ISO'
599 condition: SUCCESSFUL
601 - name: 'apex-verify-iso-{stream}'
602 current-parameters: false
603 predefined-parameters: |
604 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
605 GERRIT_BRANCH=$GERRIT_BRANCH
607 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
608 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
609 node-parameters: true
610 kill-phase-on: FAILURE
613 - apex-builder-{stream}
617 name: 'apex-create-snapshot'
619 # Job template for clean
621 # Required Variables:
622 # stream: branch with - in place of / (eg. stable)
628 !include-raw-escape: ./apex-snapshot-create.sh
632 name: 'apex-upload-snapshot'
634 # Job template for clean
636 # Required Variables:
637 # stream: branch with - in place of / (eg. stable)
643 properties-content: ARTIFACT_TYPE=snapshot
644 - 'apex-upload-artifact'
648 name: 'apex-csit-promote-daily-{stream}-{os_version}'
650 # Job template for promoting CSIT Snapshots
652 # Required Variables:
653 # stream: branch with - in place of / (eg. stable)
654 # branch: branch (eg. stable)
655 node: '{virtual-slave}'
656 project-type: 'multijob'
657 disabled: '{disable_promote}'
667 gs-pathname: '{gs-pathname}'
671 use-build-blocker: true
680 - timed: '0 12 * * 0'
685 condition: SUCCESSFUL
687 - name: 'apex-deploy-virtual-{stream}'
688 current-parameters: false
689 predefined-parameters: |
690 DEPLOY_SCENARIO=os-odl-{os_scenario}-noha
692 GERRIT_BRANCH=$GERRIT_BRANCH
693 GERRIT_REFSPEC=$GERRIT_REFSPEC
694 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
695 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
697 node-parameters: true
698 kill-phase-on: FAILURE
703 condition: SUCCESSFUL
705 - name: 'functest-apex-virtual-suite-{stream}'
706 current-parameters: false
707 predefined-parameters: |
708 DEPLOY_SCENARIO=os-odl-{os_scenario}-noha
709 FUNCTEST_SUITE_NAME=tempest_smoke_serial
710 GERRIT_BRANCH=$GERRIT_BRANCH
711 GERRIT_REFSPEC=$GERRIT_REFSPEC
712 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
713 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
714 node-parameters: true
715 kill-phase-on: FAILURE
719 name: create snapshot
720 condition: SUCCESSFUL
722 - name: 'apex-create-snapshot'
723 current-parameters: false
724 predefined-parameters: |
726 node-parameters: true
727 kill-phase-on: FAILURE
731 name: upload snapshot
732 condition: SUCCESSFUL
734 - name: 'apex-upload-snapshot'
735 current-parameters: false
736 predefined-parameters: |
738 node-parameters: true
739 kill-phase-on: FAILURE
745 name: 'apex-fdio-promote-daily-{stream}'
747 # Job template for promoting CSIT Snapshots
749 # Required Variables:
750 # stream: branch with - in place of / (eg. stable)
751 # branch: branch (eg. stable)
752 node: '{virtual-slave}'
753 project-type: 'multijob'
764 gs-pathname: '{gs-pathname}'
768 use-build-blocker: true
779 condition: SUCCESSFUL
781 - name: 'apex-build-{stream}'
782 current-parameters: false
783 predefined-parameters: |
784 GERRIT_BRANCH=$GERRIT_BRANCH
785 GERRIT_REFSPEC=$GERRIT_REFSPEC
786 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
787 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
788 node-parameters: false
789 kill-phase-on: FAILURE
794 condition: SUCCESSFUL
796 - name: 'apex-deploy-virtual-{stream}'
797 current-parameters: false
798 predefined-parameters: |
799 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
801 GERRIT_BRANCH=$GERRIT_BRANCH
802 GERRIT_REFSPEC=$GERRIT_REFSPEC
803 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
804 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
806 node-parameters: true
807 kill-phase-on: FAILURE
811 name: create snapshot
812 condition: SUCCESSFUL
814 - name: 'apex-create-snapshot'
815 current-parameters: false
816 predefined-parameters: |
818 node-parameters: true
819 kill-phase-on: FAILURE
823 name: upload snapshot
824 condition: SUCCESSFUL
826 - name: 'apex-upload-snapshot'
827 current-parameters: false
828 predefined-parameters: |
830 node-parameters: true
831 kill-phase-on: FAILURE
837 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
839 project-type: 'multijob'
852 - '{project}-defaults'
857 gs-pathname: '{gs-pathname}'
859 name: DEPLOY_SCENARIO
860 default: 'os-nosdn-nofeature-ha'
861 description: "Scenario to deploy with."
864 default: https://gerrit.opnfv.org/gerrit/$PROJECT
865 description: 'Git URL to use on this Jenkins Slave'
868 default: /root/.ssh/id_rsa
869 description: 'SSH key to use for Apex'
874 use-build-blocker: true
879 - 'apex-.*-promote.*'
881 - 'apex-.+-baremetal-.+'
888 - description-setter:
889 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
891 name: 'Baremetal Deploy'
892 condition: SUCCESSFUL
894 - name: 'apex-deploy-baremetal-{stream}'
895 node-parameters: true
896 current-parameters: true
897 predefined-parameters: |
899 GERRIT_BRANCH=$GERRIT_BRANCH
901 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
902 kill-phase-on: FAILURE
909 - name: 'yardstick-apex-baremetal-daily-{stream}'
910 node-parameters: true
911 current-parameters: false
912 predefined-parameters:
913 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
918 # Dovetail Danube test job
920 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
922 project-type: 'multijob'
929 - '{project}-defaults'
932 branch: 'stable/danube'
934 gs-pathname: '/danube'
936 name: DEPLOY_SCENARIO
937 default: 'os-nosdn-nofeature-ha'
938 description: "Scenario to deploy with."
943 use-build-blocker: true
948 - 'apex-.*-promote.*'
952 - timed: '' # '0 1 * * *'
955 - description-setter:
956 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
958 name: 'Baremetal Deploy'
959 condition: SUCCESSFUL
961 - name: 'apex-deploy-baremetal-danube'
962 node-parameters: true
963 current-parameters: true
964 predefined-parameters: |
966 GERRIT_BRANCH=$GERRIT_BRANCH
968 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
969 kill-phase-on: FAILURE
976 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
977 node-parameters: true
978 current-parameters: false
979 predefined-parameters:
980 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
985 ########################
987 ########################
994 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
996 name: ARTIFACT_VERSION
998 description: "Artifact version type"
1000 name: BUILD_DIRECTORY
1001 default: $WORKSPACE/.build
1002 description: "Directory where the build artifact will be located upon the completion of the build."
1004 name: CACHE_DIRECTORY
1005 default: $HOME/opnfv/apex-cache{gs-pathname}
1006 description: "Directory where the cache to be used during the build is located."
1007 # yamllint disable rule:line-length
1010 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1011 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1012 # yamllint enable rule:line-length
1015 default: '{gs-pathname}'
1016 description: "Version directory where opnfv artifacts are stored in gs repository"
1019 default: $GS_BASE{gs-pathname}
1020 description: "URL to Google Storage."
1024 description: "Flag to know if we should promote/upload snapshot artifacts."
1026 ########################
1028 ########################
1029 {% for stream in scenarios %}
1030 # {{ stream }} Builder
1032 name: apex-builder-{{ stream }}
1035 name: Baremetal Deploy and Test Phase
1036 condition: SUCCESSFUL
1038 {%- for scenario in scenarios[stream] %}
1039 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1040 node-parameters: false
1041 current-parameters: false
1042 predefined-parameters: |
1044 kill-phase-on: NEVER
1051 name: 'apex-upload-artifact'
1054 !include-raw: ./apex-upload-artifact.sh
1057 name: 'apex-download-artifact'
1060 !include-raw: ./apex-download-artifact.sh
1066 !include-raw: ./apex-deploy.sh
1069 name: 'apex-fetch-logs'
1072 !include-raw: ./apex-fetch-logs.sh
1074 #######################
1076 ########################
1080 - timed: '0 0 1-31/2 * *'
1085 - timed: '0 0 2-30/2 * *'
1088 name: 'apex-euphrates'
1090 - timed: '0 0 2-30/2 * *'
1095 - timed: '0 3 1 1 7'