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.*'
718 - timed: '0 12 * * 0'
722 name: apex-virtual-deploy-test
723 condition: SUCCESSFUL
725 - name: 'apex-virtual-{stream}'
726 current-parameters: true
727 predefined-parameters: |
728 DEPLOY_SCENARIO=os-odl-{os_scenario}-{topology}
730 GERRIT_BRANCH=$GERRIT_BRANCH
731 GERRIT_REFSPEC=$GERRIT_REFSPEC
732 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
733 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
734 FUNCTEST_SUITE_NAME=tempest_smoke
735 FUNCTEST_MODE=testcase
736 node-parameters: true
737 kill-phase-on: FAILURE
741 name: create snapshot
742 condition: SUCCESSFUL
744 - name: 'apex-create-snapshot'
745 current-parameters: true
746 predefined-parameters: |
748 node-parameters: true
749 kill-phase-on: FAILURE
753 name: upload snapshot
754 condition: SUCCESSFUL
756 - name: 'apex-upload-snapshot'
757 current-parameters: true
758 predefined-parameters: |
760 node-parameters: true
761 kill-phase-on: FAILURE
767 name: 'apex-fdio-promote-daily-{stream}'
769 # Job template for promoting CSIT Snapshots
771 # Required Variables:
772 # stream: branch with - in place of / (eg. stable)
773 # branch: branch (eg. stable)
774 node: '{virtual-slave}'
775 project-type: 'multijob'
786 gs-pathname: '{gs-pathname}'
790 use-build-blocker: true
801 condition: SUCCESSFUL
803 - name: 'apex-build-{stream}'
804 current-parameters: false
805 predefined-parameters: |
806 GERRIT_BRANCH=$GERRIT_BRANCH
807 GERRIT_REFSPEC=$GERRIT_REFSPEC
808 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
809 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
810 node-parameters: false
811 kill-phase-on: FAILURE
816 condition: SUCCESSFUL
818 - name: 'apex-deploy-virtual-{stream}'
819 current-parameters: false
820 predefined-parameters: |
821 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
823 GERRIT_BRANCH=$GERRIT_BRANCH
824 GERRIT_REFSPEC=$GERRIT_REFSPEC
825 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
826 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
828 node-parameters: true
829 kill-phase-on: FAILURE
833 name: create snapshot
834 condition: SUCCESSFUL
836 - name: 'apex-create-snapshot'
837 current-parameters: false
838 predefined-parameters: |
840 node-parameters: true
841 kill-phase-on: FAILURE
845 name: upload snapshot
846 condition: SUCCESSFUL
848 - name: 'apex-upload-snapshot'
849 current-parameters: false
850 predefined-parameters: |
852 node-parameters: true
853 kill-phase-on: FAILURE
859 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
861 project-type: 'multijob'
874 - '{project}-defaults'
879 gs-pathname: '{gs-pathname}'
881 name: DEPLOY_SCENARIO
882 default: 'os-nosdn-nofeature-ha'
883 description: "Scenario to deploy with."
886 default: https://gerrit.opnfv.org/gerrit/$PROJECT
887 description: 'Git URL to use on this Jenkins Slave'
890 default: /root/.ssh/id_rsa
891 description: 'SSH key to use for Apex'
896 use-build-blocker: true
901 - 'apex-.*-promote.*'
903 - 'apex-.+-baremetal-.+'
910 - description-setter:
911 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
913 name: 'Baremetal Deploy'
914 condition: SUCCESSFUL
916 - name: 'apex-deploy-baremetal-{stream}'
917 node-parameters: true
918 current-parameters: true
919 predefined-parameters: |
921 GERRIT_BRANCH=$GERRIT_BRANCH
923 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
924 kill-phase-on: FAILURE
931 - name: 'yardstick-apex-baremetal-daily-{stream}'
932 node-parameters: true
933 current-parameters: false
934 predefined-parameters:
935 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
940 # Dovetail Danube test job
942 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
944 project-type: 'multijob'
951 - '{project}-defaults'
954 branch: 'stable/danube'
956 gs-pathname: '/danube'
958 name: DEPLOY_SCENARIO
959 default: 'os-nosdn-nofeature-ha'
960 description: "Scenario to deploy with."
965 use-build-blocker: true
970 - 'apex-.*-promote.*'
974 - timed: '' # '0 1 * * *'
977 - description-setter:
978 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
980 name: 'Baremetal Deploy'
981 condition: SUCCESSFUL
983 - name: 'apex-deploy-baremetal-danube'
984 node-parameters: true
985 current-parameters: true
986 predefined-parameters: |
988 GERRIT_BRANCH=$GERRIT_BRANCH
990 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
991 kill-phase-on: FAILURE
998 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
999 node-parameters: true
1000 current-parameters: false
1001 predefined-parameters:
1002 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
1003 kill-phase-on: NEVER
1004 abort-all-job: false
1007 ########################
1009 ########################
1011 name: apex-parameter
1016 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
1018 name: ARTIFACT_VERSION
1020 description: "Artifact version type"
1022 name: BUILD_DIRECTORY
1023 default: $WORKSPACE/.build
1024 description: "Directory where the build artifact will be located upon the completion of the build."
1026 name: CACHE_DIRECTORY
1027 default: $HOME/opnfv/apex-cache{gs-pathname}
1028 description: "Directory where the cache to be used during the build is located."
1029 # yamllint disable rule:line-length
1032 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1033 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1034 # yamllint enable rule:line-length
1037 default: '{gs-pathname}'
1038 description: "Version directory where opnfv artifacts are stored in gs repository"
1041 default: $GS_BASE{gs-pathname}
1042 description: "URL to Google Storage."
1046 description: "Flag to know if we should promote/upload snapshot artifacts."
1048 ########################
1050 ########################
1051 {% for stream in scenarios %}
1052 # {{ stream }} Builder
1054 name: apex-builder-{{ stream }}
1057 name: Baremetal Deploy and Test Phase
1058 condition: SUCCESSFUL
1060 {%- for scenario in scenarios[stream] %}
1061 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1062 node-parameters: false
1063 current-parameters: false
1064 predefined-parameters: |
1066 kill-phase-on: NEVER
1073 name: 'apex-upload-artifact'
1076 !include-raw: ./apex-upload-artifact.sh
1079 name: 'apex-download-artifact'
1082 !include-raw: ./apex-download-artifact.sh
1088 !include-raw: ./apex-deploy.sh
1091 name: 'apex-fetch-logs'
1094 !include-raw: ./apex-fetch-logs.sh
1096 #######################
1098 ########################
1102 - timed: '0 0 1-31/2 * *'
1107 - timed: '0 0 2-30/2 * *'
1110 name: 'apex-euphrates'
1112 - timed: '0 0 2-30/2 * *'
1117 - timed: '0 3 1 1 7'