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 features=$(echo $DEPLOY_SCENARIO | sed -r -n 's/os-.+-(.+)-(noha|ha)/\1/p')
420 if [ "$features" == 'queens' ]; then
421 functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-queens-(noha|ha)/\1-nofeature-\2/p')
422 elif [[ "$features" =~ 'queens' ]]; then
423 functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-(.+)_queens-(noha|ha)/\1-\2-\3/p')
425 functest_scenario=$DEPLOY_SCENARIO
427 echo "DEPLOY_SCENARIO=$functest_scenario" > functest_scenario
429 properties-file: functest_scenario
430 override-build-parameters: true
432 name: 'OPNFV Test Suite'
435 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
436 node-parameters: true
437 current-parameters: false
438 predefined-parameters:
439 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
444 name: apex-fetch-logs
446 - name: 'apex-fetch-logs-{scenario_stream}'
447 current-parameters: true
448 predefined-parameters: |
449 GERRIT_BRANCH=$GERRIT_BRANCH
451 node-parameters: true
458 !include-raw-escape: ./update-build-result.groovy
462 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
464 project-type: 'multijob'
469 - '{project}-defaults'
470 - '{project}-baremetal-{scenario_stream}-defaults'
475 gs-pathname: '{gs-pathname}'
477 name: DEPLOY_SCENARIO
478 default: '{scenario}'
479 description: "Scenario to deploy with."
484 use-build-blocker: true
490 - 'apex-testsuite-.+-baremetal-.+'
497 - description-setter:
498 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
503 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
504 node-parameters: true
505 current-parameters: false
506 predefined-parameters:
507 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
515 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
516 node-parameters: true
517 current-parameters: false
518 predefined-parameters:
519 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
524 name: Dovetail-proposed_tests
527 - name: 'dovetail-apex-baremetal-default-mandatory-{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/"
537 name: Dovetail-default
540 - name: 'dovetail-apex-baremetal-default-optional-{scenario_stream}'
541 node-parameters: true
542 current-parameters: false
543 predefined-parameters:
544 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
546 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
553 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
554 node-parameters: true
555 current-parameters: false
556 predefined-parameters:
557 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
558 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
562 # Build status is always success due conditional plugin prefetching
563 # build status before multijob phases execute
564 # - conditional-step:
565 # condition-kind: current-status
566 # condition-worst: SUCCESS
567 # condtion-best: SUCCESS
568 # on-evaluation-failure: mark-unstable
570 # - shell: 'echo "Tests Passed"'
573 name: 'apex-daily-{stream}'
575 # Job template for daily build
577 # Required Variables:
578 # stream: branch with - in place of / (eg. stable)
579 # branch: branch (eg. stable)
580 project-type: 'multijob'
582 disabled: '{obj:disable_daily}'
588 - '{project}-defaults'
589 - '{project}-baremetal-{stream}-defaults'
594 gs-pathname: '{gs-pathname}'
599 use-build-blocker: true
610 condition: SUCCESSFUL
612 - name: 'apex-build-{stream}'
613 current-parameters: false
614 predefined-parameters: |
615 GERRIT_BRANCH=$GERRIT_BRANCH
617 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
618 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
619 node-parameters: true
620 kill-phase-on: FAILURE
624 name: 'Verify and upload ISO'
625 condition: SUCCESSFUL
627 - name: 'apex-verify-iso-{stream}'
628 current-parameters: false
629 predefined-parameters: |
630 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
631 GERRIT_BRANCH=$GERRIT_BRANCH
633 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
634 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
635 node-parameters: true
636 kill-phase-on: FAILURE
639 - apex-builder-{stream}
643 name: 'apex-create-snapshot'
648 - '{project}-defaults'
652 !include-raw-escape: ./apex-snapshot-create.sh
656 name: 'apex-upload-snapshot'
661 - '{project}-defaults'
665 properties-content: ARTIFACT_TYPE=snapshot
666 - 'apex-upload-artifact'
670 name: 'apex-csit-promote-daily-{stream}-os-{os_version}-{topology}'
672 # Job template for promoting CSIT Snapshots
674 # Required Variables:
675 # stream: branch with - in place of / (eg. stable)
676 # branch: branch (eg. stable)
677 node: '{virtual-slave}'
678 project-type: 'multijob'
679 disabled: '{disable_promote}'
689 gs-pathname: '{gs-pathname}'
691 name: ARTIFACT_VERSION
693 description: "Used for overriding the ARTIFACT_VERSION"
697 description: "Used for overriding the PROMOTE"
700 default: $GS_BASE{gs-pathname}/{os_version}/{topology}
701 description: "User for overriding GS_URL from apex params"
705 use-build-blocker: true
711 - 'apex-csit-promote.*'
719 - timed: '0 12 * * 0'
723 name: apex-virtual-deploy-test
724 condition: SUCCESSFUL
726 - name: 'apex-virtual-{stream}'
727 current-parameters: true
728 predefined-parameters: |
729 DEPLOY_SCENARIO=os-odl-{os_scenario}-{topology}
731 GERRIT_BRANCH=$GERRIT_BRANCH
732 GERRIT_REFSPEC=$GERRIT_REFSPEC
733 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
734 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
735 FUNCTEST_SUITE_NAME=tempest_smoke
736 FUNCTEST_MODE=testcase
737 node-parameters: true
738 kill-phase-on: FAILURE
742 name: create snapshot
743 condition: SUCCESSFUL
745 - name: 'apex-create-snapshot'
746 current-parameters: true
747 predefined-parameters: |
749 node-parameters: true
750 kill-phase-on: FAILURE
754 name: upload snapshot
755 condition: SUCCESSFUL
757 - name: 'apex-upload-snapshot'
758 current-parameters: true
759 predefined-parameters: |
761 node-parameters: true
762 kill-phase-on: FAILURE
768 name: 'apex-fdio-promote-daily-{stream}'
770 # Job template for promoting CSIT Snapshots
772 # Required Variables:
773 # stream: branch with - in place of / (eg. stable)
774 # branch: branch (eg. stable)
775 node: '{virtual-slave}'
776 project-type: 'multijob'
787 gs-pathname: '{gs-pathname}'
791 use-build-blocker: true
802 condition: SUCCESSFUL
804 - name: 'apex-build-{stream}'
805 current-parameters: false
806 predefined-parameters: |
807 GERRIT_BRANCH=$GERRIT_BRANCH
808 GERRIT_REFSPEC=$GERRIT_REFSPEC
809 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
810 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
811 node-parameters: false
812 kill-phase-on: FAILURE
817 condition: SUCCESSFUL
819 - name: 'apex-deploy-virtual-{stream}'
820 current-parameters: false
821 predefined-parameters: |
822 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
824 GERRIT_BRANCH=$GERRIT_BRANCH
825 GERRIT_REFSPEC=$GERRIT_REFSPEC
826 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
827 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
829 node-parameters: true
830 kill-phase-on: FAILURE
834 name: create snapshot
835 condition: SUCCESSFUL
837 - name: 'apex-create-snapshot'
838 current-parameters: false
839 predefined-parameters: |
841 node-parameters: true
842 kill-phase-on: FAILURE
846 name: upload snapshot
847 condition: SUCCESSFUL
849 - name: 'apex-upload-snapshot'
850 current-parameters: false
851 predefined-parameters: |
853 node-parameters: true
854 kill-phase-on: FAILURE
860 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
862 project-type: 'multijob'
875 - '{project}-defaults'
880 gs-pathname: '{gs-pathname}'
882 name: DEPLOY_SCENARIO
883 default: 'os-nosdn-nofeature-ha'
884 description: "Scenario to deploy with."
887 default: https://gerrit.opnfv.org/gerrit/$PROJECT
888 description: 'Git URL to use on this Jenkins Slave'
891 default: /root/.ssh/id_rsa
892 description: 'SSH key to use for Apex'
897 use-build-blocker: true
902 - 'apex-.*-promote.*'
904 - 'apex-.+-baremetal-.+'
911 - description-setter:
912 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
914 name: 'Baremetal Deploy'
915 condition: SUCCESSFUL
917 - name: 'apex-deploy-baremetal-{stream}'
918 node-parameters: true
919 current-parameters: true
920 predefined-parameters: |
922 GERRIT_BRANCH=$GERRIT_BRANCH
924 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
925 kill-phase-on: FAILURE
932 - name: 'yardstick-apex-baremetal-daily-{stream}'
933 node-parameters: true
934 current-parameters: false
935 predefined-parameters:
936 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
941 # Dovetail Danube test job
943 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
945 project-type: 'multijob'
952 - '{project}-defaults'
955 branch: 'stable/danube'
957 gs-pathname: '/danube'
959 name: DEPLOY_SCENARIO
960 default: 'os-nosdn-nofeature-ha'
961 description: "Scenario to deploy with."
966 use-build-blocker: true
971 - 'apex-.*-promote.*'
975 - timed: '' # '0 1 * * *'
978 - description-setter:
979 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
981 name: 'Baremetal Deploy'
982 condition: SUCCESSFUL
984 - name: 'apex-deploy-baremetal-danube'
985 node-parameters: true
986 current-parameters: true
987 predefined-parameters: |
989 GERRIT_BRANCH=$GERRIT_BRANCH
991 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
992 kill-phase-on: FAILURE
999 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
1000 node-parameters: true
1001 current-parameters: false
1002 predefined-parameters:
1003 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1004 kill-phase-on: NEVER
1005 abort-all-job: false
1008 ########################
1010 ########################
1012 name: apex-parameter
1017 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1019 name: ARTIFACT_VERSION
1021 description: "Artifact version type"
1023 name: BUILD_DIRECTORY
1024 default: $WORKSPACE/.build
1025 description: "Directory where the build artifact will be located upon the completion of the build."
1027 name: CACHE_DIRECTORY
1028 default: $HOME/opnfv/apex-cache{gs-pathname}
1029 description: "Directory where the cache to be used during the build is located."
1030 # yamllint disable rule:line-length
1033 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1034 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1035 # yamllint enable rule:line-length
1038 default: '{gs-pathname}'
1039 description: "Version directory where opnfv artifacts are stored in gs repository"
1042 default: $GS_BASE{gs-pathname}
1043 description: "URL to Google Storage."
1047 description: "Flag to know if we should promote/upload snapshot artifacts."
1049 ########################
1051 ########################
1052 {% for stream in scenarios %}
1053 # {{ stream }} Builder
1055 name: apex-builder-{{ stream }}
1058 name: Baremetal Deploy and Test Phase
1059 condition: SUCCESSFUL
1061 {%- for scenario in scenarios[stream] %}
1062 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1063 node-parameters: false
1064 current-parameters: false
1065 predefined-parameters: |
1067 kill-phase-on: NEVER
1074 name: 'apex-upload-artifact'
1077 !include-raw: ./apex-upload-artifact.sh
1080 name: 'apex-download-artifact'
1083 !include-raw: ./apex-download-artifact.sh
1089 !include-raw: ./apex-deploy.sh
1092 name: 'apex-fetch-logs'
1095 !include-raw: ./apex-fetch-logs.sh
1097 #######################
1099 ########################
1103 - timed: '0 0 1-31/2 * *'
1108 - timed: '0 0 2-30/2 * *'
1111 name: 'apex-euphrates'
1113 - timed: '0 0 2-30/2 * *'
1118 - timed: '0 3 1 1 7'