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-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'
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 name: 'OPNFV Test Suite'
422 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
423 node-parameters: true
424 current-parameters: false
425 predefined-parameters:
426 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
431 name: apex-fetch-logs
433 - name: 'apex-fetch-logs-{scenario_stream}'
434 current-parameters: true
435 predefined-parameters: |
436 GERRIT_BRANCH=$GERRIT_BRANCH
438 node-parameters: true
445 !include-raw-escape: ./update-build-result.groovy
449 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
451 project-type: 'multijob'
456 - '{project}-defaults'
457 - '{project}-baremetal-{scenario_stream}-defaults'
462 gs-pathname: '{gs-pathname}'
464 name: DEPLOY_SCENARIO
465 default: '{scenario}'
466 description: "Scenario to deploy with."
471 use-build-blocker: true
477 - 'apex-testsuite-.+-baremetal-.+'
484 - description-setter:
485 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
490 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
491 node-parameters: true
492 current-parameters: false
493 predefined-parameters:
494 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
502 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
503 node-parameters: true
504 current-parameters: false
505 predefined-parameters:
506 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
511 name: Dovetail-proposed_tests
514 - name: 'dovetail-apex-baremetal-default-mandatory-{scenario_stream}'
515 node-parameters: true
516 current-parameters: false
517 predefined-parameters:
518 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
520 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
524 name: Dovetail-default
527 - name: 'dovetail-apex-baremetal-default-optional-{scenario_stream}'
528 node-parameters: true
529 current-parameters: false
530 predefined-parameters:
531 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
533 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
540 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
541 node-parameters: true
542 current-parameters: false
543 predefined-parameters:
544 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
545 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
549 # Build status is always success due conditional plugin prefetching
550 # build status before multijob phases execute
551 # - conditional-step:
552 # condition-kind: current-status
553 # condition-worst: SUCCESS
554 # condtion-best: SUCCESS
555 # on-evaluation-failure: mark-unstable
557 # - shell: 'echo "Tests Passed"'
560 name: 'apex-daily-{stream}'
562 # Job template for daily build
564 # Required Variables:
565 # stream: branch with - in place of / (eg. stable)
566 # branch: branch (eg. stable)
567 project-type: 'multijob'
569 disabled: '{obj:disable_daily}'
575 - '{project}-defaults'
576 - '{project}-baremetal-{stream}-defaults'
581 gs-pathname: '{gs-pathname}'
586 use-build-blocker: true
597 condition: SUCCESSFUL
599 - name: 'apex-build-{stream}'
600 current-parameters: false
601 predefined-parameters: |
602 GERRIT_BRANCH=$GERRIT_BRANCH
604 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
605 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
606 node-parameters: true
607 kill-phase-on: FAILURE
611 name: 'Verify and upload ISO'
612 condition: SUCCESSFUL
614 - name: 'apex-verify-iso-{stream}'
615 current-parameters: false
616 predefined-parameters: |
617 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
618 GERRIT_BRANCH=$GERRIT_BRANCH
620 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
621 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
622 node-parameters: true
623 kill-phase-on: FAILURE
626 - apex-builder-{stream}
630 name: 'apex-create-snapshot'
635 - '{project}-defaults'
639 !include-raw-escape: ./apex-snapshot-create.sh
643 name: 'apex-upload-snapshot'
648 - '{project}-defaults'
652 properties-content: ARTIFACT_TYPE=snapshot
653 - 'apex-upload-artifact'
657 name: 'apex-csit-promote-daily-{stream}-os-{os_version}-{topology}'
659 # Job template for promoting CSIT Snapshots
661 # Required Variables:
662 # stream: branch with - in place of / (eg. stable)
663 # branch: branch (eg. stable)
664 node: '{virtual-slave}'
665 project-type: 'multijob'
666 disabled: '{disable_promote}'
676 gs-pathname: '{gs-pathname}'
678 name: ARTIFACT_VERSION
680 description: "Used for overriding the ARTIFACT_VERSION"
684 description: "Used for overriding the PROMOTE"
687 default: $GS_BASE{gs-pathname}/{os_version}/{topology}
688 description: "User for overriding GS_URL from apex params"
692 use-build-blocker: true
698 - 'apex-csit-promote.*'
705 - timed: '0 12 * * 0'
709 name: apex-virtual-deploy-test
710 condition: SUCCESSFUL
712 - name: 'apex-virtual-{stream}'
713 current-parameters: true
714 predefined-parameters: |
715 DEPLOY_SCENARIO=os-odl-{os_scenario}-{topology}
717 GERRIT_BRANCH=$GERRIT_BRANCH
718 GERRIT_REFSPEC=$GERRIT_REFSPEC
719 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
720 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
721 FUNCTEST_SUITE_NAME=tempest_smoke
722 FUNCTEST_MODE=testcase
723 node-parameters: true
724 kill-phase-on: FAILURE
728 name: create snapshot
729 condition: SUCCESSFUL
731 - name: 'apex-create-snapshot'
732 current-parameters: true
733 predefined-parameters: |
735 node-parameters: true
736 kill-phase-on: FAILURE
740 name: upload snapshot
741 condition: SUCCESSFUL
743 - name: 'apex-upload-snapshot'
744 current-parameters: true
745 predefined-parameters: |
747 node-parameters: true
748 kill-phase-on: FAILURE
754 name: 'apex-fdio-promote-daily-{stream}'
756 # Job template for promoting CSIT Snapshots
758 # Required Variables:
759 # stream: branch with - in place of / (eg. stable)
760 # branch: branch (eg. stable)
761 node: '{virtual-slave}'
762 project-type: 'multijob'
773 gs-pathname: '{gs-pathname}'
777 use-build-blocker: true
788 condition: SUCCESSFUL
790 - name: 'apex-build-{stream}'
791 current-parameters: false
792 predefined-parameters: |
793 GERRIT_BRANCH=$GERRIT_BRANCH
794 GERRIT_REFSPEC=$GERRIT_REFSPEC
795 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
796 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
797 node-parameters: false
798 kill-phase-on: FAILURE
803 condition: SUCCESSFUL
805 - name: 'apex-deploy-virtual-{stream}'
806 current-parameters: false
807 predefined-parameters: |
808 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
810 GERRIT_BRANCH=$GERRIT_BRANCH
811 GERRIT_REFSPEC=$GERRIT_REFSPEC
812 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
813 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
815 node-parameters: true
816 kill-phase-on: FAILURE
820 name: create snapshot
821 condition: SUCCESSFUL
823 - name: 'apex-create-snapshot'
824 current-parameters: false
825 predefined-parameters: |
827 node-parameters: true
828 kill-phase-on: FAILURE
832 name: upload snapshot
833 condition: SUCCESSFUL
835 - name: 'apex-upload-snapshot'
836 current-parameters: false
837 predefined-parameters: |
839 node-parameters: true
840 kill-phase-on: FAILURE
846 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
848 project-type: 'multijob'
861 - '{project}-defaults'
866 gs-pathname: '{gs-pathname}'
868 name: DEPLOY_SCENARIO
869 default: 'os-nosdn-nofeature-ha'
870 description: "Scenario to deploy with."
873 default: https://gerrit.opnfv.org/gerrit/$PROJECT
874 description: 'Git URL to use on this Jenkins Slave'
877 default: /root/.ssh/id_rsa
878 description: 'SSH key to use for Apex'
883 use-build-blocker: true
888 - 'apex-.*-promote.*'
890 - 'apex-.+-baremetal-.+'
897 - description-setter:
898 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
900 name: 'Baremetal Deploy'
901 condition: SUCCESSFUL
903 - name: 'apex-deploy-baremetal-{stream}'
904 node-parameters: true
905 current-parameters: true
906 predefined-parameters: |
908 GERRIT_BRANCH=$GERRIT_BRANCH
910 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
911 kill-phase-on: FAILURE
918 - name: 'yardstick-apex-baremetal-daily-{stream}'
919 node-parameters: true
920 current-parameters: false
921 predefined-parameters:
922 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
927 # Dovetail Danube test job
929 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
931 project-type: 'multijob'
938 - '{project}-defaults'
941 branch: 'stable/danube'
943 gs-pathname: '/danube'
945 name: DEPLOY_SCENARIO
946 default: 'os-nosdn-nofeature-ha'
947 description: "Scenario to deploy with."
952 use-build-blocker: true
957 - 'apex-.*-promote.*'
961 - timed: '' # '0 1 * * *'
964 - description-setter:
965 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
967 name: 'Baremetal Deploy'
968 condition: SUCCESSFUL
970 - name: 'apex-deploy-baremetal-danube'
971 node-parameters: true
972 current-parameters: true
973 predefined-parameters: |
975 GERRIT_BRANCH=$GERRIT_BRANCH
977 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
978 kill-phase-on: FAILURE
985 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
986 node-parameters: true
987 current-parameters: false
988 predefined-parameters:
989 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
994 ########################
996 ########################
1003 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1005 name: ARTIFACT_VERSION
1007 description: "Artifact version type"
1009 name: BUILD_DIRECTORY
1010 default: $WORKSPACE/.build
1011 description: "Directory where the build artifact will be located upon the completion of the build."
1013 name: CACHE_DIRECTORY
1014 default: $HOME/opnfv/apex-cache{gs-pathname}
1015 description: "Directory where the cache to be used during the build is located."
1016 # yamllint disable rule:line-length
1019 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1020 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1021 # yamllint enable rule:line-length
1024 default: '{gs-pathname}'
1025 description: "Version directory where opnfv artifacts are stored in gs repository"
1028 default: $GS_BASE{gs-pathname}
1029 description: "URL to Google Storage."
1033 description: "Flag to know if we should promote/upload snapshot artifacts."
1035 ########################
1037 ########################
1038 {% for stream in scenarios %}
1039 # {{ stream }} Builder
1041 name: apex-builder-{{ stream }}
1044 name: Baremetal Deploy and Test Phase
1045 condition: SUCCESSFUL
1047 {%- for scenario in scenarios[stream] %}
1048 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1049 node-parameters: false
1050 current-parameters: false
1051 predefined-parameters: |
1053 kill-phase-on: NEVER
1060 name: 'apex-upload-artifact'
1063 !include-raw: ./apex-upload-artifact.sh
1066 name: 'apex-download-artifact'
1069 !include-raw: ./apex-download-artifact.sh
1075 !include-raw: ./apex-deploy.sh
1078 name: 'apex-fetch-logs'
1081 !include-raw: ./apex-fetch-logs.sh
1083 #######################
1085 ########################
1089 - timed: '0 0 1-31/2 * *'
1094 - timed: '0 0 2-30/2 * *'
1097 name: 'apex-euphrates'
1099 - timed: '0 0 2-30/2 * *'
1104 - timed: '0 3 1 1 7'