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-noha'
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 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
420 echo 'REPO=opnfv' > functest_properties
422 echo 'REPO=ollivier' > functest_properties
424 features=$(echo $DEPLOY_SCENARIO | sed -r -n 's/os-.+-(.+)-(noha|ha)/\1/p')
425 if [ "$features" == 'queens' ]; then
426 functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-queens-(noha|ha)/\1-nofeature-\2/p')
427 elif [[ "$features" =~ 'queens' ]]; then
428 functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-(.+)_queens-(noha|ha)/\1-\2-\3/p')
430 functest_scenario=$DEPLOY_SCENARIO
432 echo "DEPLOY_SCENARIO=$functest_scenario" >> functest_properties
434 properties-file: functest_properties
435 override-build-parameters: true
437 name: 'OPNFV Test Suite'
440 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
441 node-parameters: true
442 current-parameters: false
443 predefined-parameters:
444 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
449 name: apex-fetch-logs
451 - name: 'apex-fetch-logs-{scenario_stream}'
452 current-parameters: true
453 predefined-parameters: |
454 GERRIT_BRANCH=$GERRIT_BRANCH
456 node-parameters: true
463 !include-raw-escape: ./update-build-result.groovy
467 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
469 project-type: 'multijob'
474 - '{project}-defaults'
475 - '{project}-baremetal-{scenario_stream}-defaults'
480 gs-pathname: '{gs-pathname}'
482 name: DEPLOY_SCENARIO
483 default: '{scenario}'
484 description: "Scenario to deploy with."
489 use-build-blocker: true
495 - 'apex-testsuite-.+-baremetal-.+'
502 - description-setter:
503 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
508 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
509 node-parameters: true
510 current-parameters: false
511 predefined-parameters:
512 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
520 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
521 node-parameters: true
522 current-parameters: false
523 predefined-parameters:
524 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
529 name: Dovetail-proposed_tests
532 - name: 'dovetail-apex-baremetal-default-mandatory-{scenario_stream}'
533 node-parameters: true
534 current-parameters: false
535 predefined-parameters:
536 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
538 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
542 name: Dovetail-default
545 - name: 'dovetail-apex-baremetal-default-optional-{scenario_stream}'
546 node-parameters: true
547 current-parameters: false
548 predefined-parameters:
549 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
551 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
558 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
559 node-parameters: true
560 current-parameters: false
561 predefined-parameters:
562 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
563 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
567 # Build status is always success due conditional plugin prefetching
568 # build status before multijob phases execute
569 # - conditional-step:
570 # condition-kind: current-status
571 # condition-worst: SUCCESS
572 # condtion-best: SUCCESS
573 # on-evaluation-failure: mark-unstable
575 # - shell: 'echo "Tests Passed"'
578 name: 'apex-daily-{stream}'
580 # Job template for daily build
582 # Required Variables:
583 # stream: branch with - in place of / (eg. stable)
584 # branch: branch (eg. stable)
585 project-type: 'multijob'
587 disabled: '{obj:disable_daily}'
593 - '{project}-defaults'
594 - '{project}-baremetal-{stream}-defaults'
599 gs-pathname: '{gs-pathname}'
604 use-build-blocker: true
615 condition: SUCCESSFUL
617 - name: 'apex-build-{stream}'
618 current-parameters: false
619 predefined-parameters: |
620 GERRIT_BRANCH=$GERRIT_BRANCH
622 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
623 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
624 node-parameters: true
625 kill-phase-on: FAILURE
629 name: 'Verify and upload ISO'
630 condition: SUCCESSFUL
632 - name: 'apex-verify-iso-{stream}'
633 current-parameters: false
634 predefined-parameters: |
635 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
636 GERRIT_BRANCH=$GERRIT_BRANCH
638 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
639 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
640 node-parameters: true
641 kill-phase-on: FAILURE
644 - apex-builder-{stream}
648 name: 'apex-create-snapshot'
653 - '{project}-defaults'
657 !include-raw-escape: ./apex-snapshot-create.sh
661 name: 'apex-upload-snapshot'
666 - '{project}-defaults'
670 properties-content: ARTIFACT_TYPE=snapshot
671 - 'apex-upload-artifact'
675 name: 'apex-csit-promote-daily-{stream}-os-{os_version}-{topology}'
677 # Job template for promoting CSIT Snapshots
679 # Required Variables:
680 # stream: branch with - in place of / (eg. stable)
681 # branch: branch (eg. stable)
682 node: '{virtual-slave}'
683 project-type: 'multijob'
684 disabled: '{disable_promote}'
694 gs-pathname: '{gs-pathname}'
696 name: ARTIFACT_VERSION
698 description: "Used for overriding the ARTIFACT_VERSION"
702 description: "Used for overriding the PROMOTE"
705 default: $GS_BASE{gs-pathname}/{os_version}/{topology}
706 description: "User for overriding GS_URL from apex params"
710 use-build-blocker: true
716 - 'apex-csit-promote.*'
723 - timed: '0 12 * * 0'
727 name: apex-virtual-deploy-test
728 condition: SUCCESSFUL
730 - name: 'apex-virtual-{stream}'
731 current-parameters: true
732 predefined-parameters: |
733 DEPLOY_SCENARIO=os-odl-{os_scenario}-{topology}
735 GERRIT_BRANCH=$GERRIT_BRANCH
736 GERRIT_REFSPEC=$GERRIT_REFSPEC
737 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
738 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
739 FUNCTEST_SUITE_NAME=tempest_smoke
740 FUNCTEST_MODE=testcase
741 node-parameters: true
742 kill-phase-on: FAILURE
746 name: create snapshot
747 condition: SUCCESSFUL
749 - name: 'apex-create-snapshot'
750 current-parameters: true
751 predefined-parameters: |
753 node-parameters: true
754 kill-phase-on: FAILURE
758 name: upload snapshot
759 condition: SUCCESSFUL
761 - name: 'apex-upload-snapshot'
762 current-parameters: true
763 predefined-parameters: |
765 node-parameters: true
766 kill-phase-on: FAILURE
772 name: 'apex-fdio-promote-daily-{stream}'
774 # Job template for promoting CSIT Snapshots
776 # Required Variables:
777 # stream: branch with - in place of / (eg. stable)
778 # branch: branch (eg. stable)
779 node: '{virtual-slave}'
780 project-type: 'multijob'
791 gs-pathname: '{gs-pathname}'
795 use-build-blocker: true
806 condition: SUCCESSFUL
808 - name: 'apex-build-{stream}'
809 current-parameters: false
810 predefined-parameters: |
811 GERRIT_BRANCH=$GERRIT_BRANCH
812 GERRIT_REFSPEC=$GERRIT_REFSPEC
813 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
814 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
815 node-parameters: false
816 kill-phase-on: FAILURE
821 condition: SUCCESSFUL
823 - name: 'apex-deploy-virtual-{stream}'
824 current-parameters: false
825 predefined-parameters: |
826 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
828 GERRIT_BRANCH=$GERRIT_BRANCH
829 GERRIT_REFSPEC=$GERRIT_REFSPEC
830 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
831 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
833 node-parameters: true
834 kill-phase-on: FAILURE
838 name: create snapshot
839 condition: SUCCESSFUL
841 - name: 'apex-create-snapshot'
842 current-parameters: false
843 predefined-parameters: |
845 node-parameters: true
846 kill-phase-on: FAILURE
850 name: upload snapshot
851 condition: SUCCESSFUL
853 - name: 'apex-upload-snapshot'
854 current-parameters: false
855 predefined-parameters: |
857 node-parameters: true
858 kill-phase-on: FAILURE
864 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
866 project-type: 'multijob'
879 - '{project}-defaults'
884 gs-pathname: '{gs-pathname}'
886 name: DEPLOY_SCENARIO
887 default: 'os-nosdn-nofeature-ha'
888 description: "Scenario to deploy with."
891 default: https://gerrit.opnfv.org/gerrit/$PROJECT
892 description: 'Git URL to use on this Jenkins Slave'
895 default: /root/.ssh/id_rsa
896 description: 'SSH key to use for Apex'
901 use-build-blocker: true
906 - 'apex-.*-promote.*'
908 - 'apex-.+-baremetal-.+'
915 - description-setter:
916 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
918 name: 'Baremetal Deploy'
919 condition: SUCCESSFUL
921 - name: 'apex-deploy-baremetal-{stream}'
922 node-parameters: true
923 current-parameters: true
924 predefined-parameters: |
926 GERRIT_BRANCH=$GERRIT_BRANCH
928 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
929 kill-phase-on: FAILURE
936 - name: 'yardstick-apex-baremetal-daily-{stream}'
937 node-parameters: true
938 current-parameters: false
939 predefined-parameters:
940 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
945 # Dovetail Danube test job
947 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
949 project-type: 'multijob'
956 - '{project}-defaults'
959 branch: 'stable/danube'
961 gs-pathname: '/danube'
963 name: DEPLOY_SCENARIO
964 default: 'os-nosdn-nofeature-ha'
965 description: "Scenario to deploy with."
970 use-build-blocker: true
975 - 'apex-.*-promote.*'
979 - timed: '' # '0 1 * * *'
982 - description-setter:
983 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
985 name: 'Baremetal Deploy'
986 condition: SUCCESSFUL
988 - name: 'apex-deploy-baremetal-danube'
989 node-parameters: true
990 current-parameters: true
991 predefined-parameters: |
993 GERRIT_BRANCH=$GERRIT_BRANCH
995 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
996 kill-phase-on: FAILURE
1003 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
1004 node-parameters: true
1005 current-parameters: false
1006 predefined-parameters:
1007 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1008 kill-phase-on: NEVER
1009 abort-all-job: false
1012 ########################
1014 ########################
1016 name: apex-parameter
1021 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1023 name: ARTIFACT_VERSION
1025 description: "Artifact version type"
1027 name: BUILD_DIRECTORY
1028 default: $WORKSPACE/.build
1029 description: "Directory where the build artifact will be located upon the completion of the build."
1031 name: CACHE_DIRECTORY
1032 default: $HOME/opnfv/apex-cache{gs-pathname}
1033 description: "Directory where the cache to be used during the build is located."
1034 # yamllint disable rule:line-length
1037 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1038 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1039 # yamllint enable rule:line-length
1042 default: '{gs-pathname}'
1043 description: "Version directory where opnfv artifacts are stored in gs repository"
1046 default: $GS_BASE{gs-pathname}
1047 description: "URL to Google Storage."
1051 description: "Flag to know if we should promote/upload snapshot artifacts."
1053 ########################
1055 ########################
1056 {% for stream in scenarios %}
1057 # {{ stream }} Builder
1059 name: apex-builder-{{ stream }}
1062 name: Baremetal Deploy and Test Phase
1063 condition: SUCCESSFUL
1065 {%- for scenario in scenarios[stream] %}
1066 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1067 node-parameters: false
1068 current-parameters: false
1069 predefined-parameters: |
1071 kill-phase-on: NEVER
1078 name: 'apex-upload-artifact'
1081 !include-raw: ./apex-upload-artifact.sh
1084 name: 'apex-download-artifact'
1087 !include-raw: ./apex-download-artifact.sh
1093 !include-raw: ./apex-deploy.sh
1096 name: 'apex-fetch-logs'
1099 !include-raw: ./apex-fetch-logs.sh
1101 #######################
1103 ########################
1107 - timed: '0 0 1-31/2 * *'
1112 - timed: '0 0 2-30/2 * *'
1115 name: 'apex-euphrates'
1117 - timed: '0 0 2-30/2 * *'
1122 - timed: '0 3 1 1 7'