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-proposed_tests-{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-{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
700 - timed: '0 12 * * 0'
704 name: apex-virtual-deploy-test
705 condition: SUCCESSFUL
707 - name: 'apex-virtual-{stream}'
708 current-parameters: true
709 predefined-parameters: |
710 DEPLOY_SCENARIO=os-odl-{os_scenario}-{topology}
712 GERRIT_BRANCH=$GERRIT_BRANCH
713 GERRIT_REFSPEC=$GERRIT_REFSPEC
714 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
715 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
716 FUNCTEST_SUITE_NAME=tempest_smoke
717 FUNCTEST_MODE=testcase
718 node-parameters: true
719 kill-phase-on: FAILURE
723 name: create snapshot
724 condition: SUCCESSFUL
726 - name: 'apex-create-snapshot'
727 current-parameters: true
728 predefined-parameters: |
730 node-parameters: true
731 kill-phase-on: FAILURE
735 name: upload snapshot
736 condition: SUCCESSFUL
738 - name: 'apex-upload-snapshot'
739 current-parameters: true
740 predefined-parameters: |
742 node-parameters: true
743 kill-phase-on: FAILURE
749 name: 'apex-fdio-promote-daily-{stream}'
751 # Job template for promoting CSIT Snapshots
753 # Required Variables:
754 # stream: branch with - in place of / (eg. stable)
755 # branch: branch (eg. stable)
756 node: '{virtual-slave}'
757 project-type: 'multijob'
768 gs-pathname: '{gs-pathname}'
772 use-build-blocker: true
783 condition: SUCCESSFUL
785 - name: 'apex-build-{stream}'
786 current-parameters: false
787 predefined-parameters: |
788 GERRIT_BRANCH=$GERRIT_BRANCH
789 GERRIT_REFSPEC=$GERRIT_REFSPEC
790 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
791 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
792 node-parameters: false
793 kill-phase-on: FAILURE
798 condition: SUCCESSFUL
800 - name: 'apex-deploy-virtual-{stream}'
801 current-parameters: false
802 predefined-parameters: |
803 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
805 GERRIT_BRANCH=$GERRIT_BRANCH
806 GERRIT_REFSPEC=$GERRIT_REFSPEC
807 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
808 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
810 node-parameters: true
811 kill-phase-on: FAILURE
815 name: create snapshot
816 condition: SUCCESSFUL
818 - name: 'apex-create-snapshot'
819 current-parameters: false
820 predefined-parameters: |
822 node-parameters: true
823 kill-phase-on: FAILURE
827 name: upload snapshot
828 condition: SUCCESSFUL
830 - name: 'apex-upload-snapshot'
831 current-parameters: false
832 predefined-parameters: |
834 node-parameters: true
835 kill-phase-on: FAILURE
841 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
843 project-type: 'multijob'
856 - '{project}-defaults'
861 gs-pathname: '{gs-pathname}'
863 name: DEPLOY_SCENARIO
864 default: 'os-nosdn-nofeature-ha'
865 description: "Scenario to deploy with."
868 default: https://gerrit.opnfv.org/gerrit/$PROJECT
869 description: 'Git URL to use on this Jenkins Slave'
872 default: /root/.ssh/id_rsa
873 description: 'SSH key to use for Apex'
878 use-build-blocker: true
883 - 'apex-.*-promote.*'
885 - 'apex-.+-baremetal-.+'
892 - description-setter:
893 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
895 name: 'Baremetal Deploy'
896 condition: SUCCESSFUL
898 - name: 'apex-deploy-baremetal-{stream}'
899 node-parameters: true
900 current-parameters: true
901 predefined-parameters: |
903 GERRIT_BRANCH=$GERRIT_BRANCH
905 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
906 kill-phase-on: FAILURE
913 - name: 'yardstick-apex-baremetal-daily-{stream}'
914 node-parameters: true
915 current-parameters: false
916 predefined-parameters:
917 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
922 # Dovetail Danube test job
924 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
926 project-type: 'multijob'
933 - '{project}-defaults'
936 branch: 'stable/danube'
938 gs-pathname: '/danube'
940 name: DEPLOY_SCENARIO
941 default: 'os-nosdn-nofeature-ha'
942 description: "Scenario to deploy with."
947 use-build-blocker: true
952 - 'apex-.*-promote.*'
956 - timed: '' # '0 1 * * *'
959 - description-setter:
960 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
962 name: 'Baremetal Deploy'
963 condition: SUCCESSFUL
965 - name: 'apex-deploy-baremetal-danube'
966 node-parameters: true
967 current-parameters: true
968 predefined-parameters: |
970 GERRIT_BRANCH=$GERRIT_BRANCH
972 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
973 kill-phase-on: FAILURE
980 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
981 node-parameters: true
982 current-parameters: false
983 predefined-parameters:
984 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
989 ########################
991 ########################
998 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1000 name: ARTIFACT_VERSION
1002 description: "Artifact version type"
1004 name: BUILD_DIRECTORY
1005 default: $WORKSPACE/.build
1006 description: "Directory where the build artifact will be located upon the completion of the build."
1008 name: CACHE_DIRECTORY
1009 default: $HOME/opnfv/apex-cache{gs-pathname}
1010 description: "Directory where the cache to be used during the build is located."
1011 # yamllint disable rule:line-length
1014 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1015 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1016 # yamllint enable rule:line-length
1019 default: '{gs-pathname}'
1020 description: "Version directory where opnfv artifacts are stored in gs repository"
1023 default: $GS_BASE{gs-pathname}
1024 description: "URL to Google Storage."
1028 description: "Flag to know if we should promote/upload snapshot artifacts."
1030 ########################
1032 ########################
1033 {% for stream in scenarios %}
1034 # {{ stream }} Builder
1036 name: apex-builder-{{ stream }}
1039 name: Baremetal Deploy and Test Phase
1040 condition: SUCCESSFUL
1042 {%- for scenario in scenarios[stream] %}
1043 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1044 node-parameters: false
1045 current-parameters: false
1046 predefined-parameters: |
1048 kill-phase-on: NEVER
1055 name: 'apex-upload-artifact'
1058 !include-raw: ./apex-upload-artifact.sh
1061 name: 'apex-download-artifact'
1064 !include-raw: ./apex-download-artifact.sh
1070 !include-raw: ./apex-deploy.sh
1073 name: 'apex-fetch-logs'
1076 !include-raw: ./apex-fetch-logs.sh
1078 #######################
1080 ########################
1084 - timed: '0 0 1-31/2 * *'
1089 - timed: '0 0 2-30/2 * *'
1092 name: 'apex-euphrates'
1094 - timed: '0 0 2-30/2 * *'
1099 - timed: '0 3 1 1 7'