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_version}'
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'
87 name: 'apex-fetch-logs-{stream}'
99 gs-pathname: '{gs-pathname}'
100 # yamllint enable rule:line-length
112 name: 'apex-runner-cperf-{stream}'
115 project-type: 'multijob'
122 gs-pathname: '{gs-pathname}'
128 default: https://gerrit.opnfv.org/gerrit/$PROJECT
129 description: "Used for overriding the GIT URL coming from parameters macro."
137 use-build-blocker: false
147 - description-setter:
148 description: "Deployed on $NODE_NAME"
150 name: 'Baremetal Deploy'
153 - name: 'apex-deploy-baremetal-{stream}'
154 node-parameters: false
155 current-parameters: true
156 predefined-parameters: |
157 GERRIT_BRANCH=$GERRIT_BRANCH
160 DEPLOY_SCENARIO={verify-scenario}
161 kill-phase-on: FAILURE
166 condition: SUCCESSFUL
168 - name: 'cperf-apex-intel-pod2-daily-master'
169 node-parameters: true
170 current-parameters: false
171 predefined-parameters:
172 DEPLOY_SCENARIO={verify-scenario}
179 name: 'apex-deploy-{platform}-{stream}'
194 - '{project}-{platform}-{stream}-defaults'
199 gs-pathname: '{gs-pathname}'
201 name: DEPLOY_SCENARIO
202 default: '{verify-scenario}'
203 description: "Scenario to deploy with."
204 # yamllint disable rule:line-length
208 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
210 # yamllint enable rule:line-length
214 use-build-blocker: true
228 - description-setter:
229 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
230 - 'apex-download-artifact'
235 # Virtual Deploy and Test
237 name: 'apex-virtual-{stream}'
239 project-type: 'multijob'
249 - '{project}-defaults'
250 - '{project}-virtual-{stream}-defaults'
251 - 'functest-suite-parameter'
256 gs-pathname: '{gs-pathname}'
258 name: DEPLOY_SCENARIO
259 default: '{verify-scenario}'
260 description: "Scenario to deploy with."
262 name: ARTIFACT_VERSION
264 description: "Used for overriding the ARTIFACT_VERSION"
269 use-build-blocker: true
275 - 'apex-verify-gate-.*'
282 - description-setter:
283 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
286 condition: SUCCESSFUL
288 - name: 'apex-deploy-virtual-{stream}'
289 current-parameters: false
290 predefined-parameters: |
291 ARTIFACT_VERSION=$ARTIFACT_VERSION
292 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
294 GERRIT_BRANCH=$GERRIT_BRANCH
295 GERRIT_REFSPEC=$GERRIT_REFSPEC
296 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
297 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
299 node-parameters: true
300 kill-phase-on: FAILURE
307 - name: 'functest-apex-virtual-suite-{stream}'
308 current-parameters: false
309 predefined-parameters: |
310 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
311 FUNCTEST_MODE=$FUNCTEST_MODE
312 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
313 GERRIT_BRANCH=$GERRIT_BRANCH
314 GERRIT_REFSPEC=$GERRIT_REFSPEC
315 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
316 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
317 node-parameters: true
322 name: apex-fetch-logs
324 - name: 'apex-fetch-logs-{stream}'
325 current-parameters: false
326 predefined-parameters: |
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 # Baremetal Deploy and Test
338 name: 'apex-{scenario}-baremetal-{scenario_stream}'
340 project-type: 'multijob'
348 - '{project}-defaults'
349 - '{project}-baremetal-{scenario_stream}-defaults'
354 gs-pathname: '{gs-pathname}'
356 name: DEPLOY_SCENARIO
357 default: '{scenario}'
358 description: "Scenario to deploy with."
363 use-build-blocker: true
368 - 'apex-.*-promote.*'
370 - 'apex-.+-baremetal-.+'
377 - description-setter:
378 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
380 name: 'Baremetal Deploy'
381 condition: SUCCESSFUL
382 execution-type: SEQUENTIALLY
384 - name: 'apex-deploy-baremetal-{scenario_stream}'
385 node-parameters: true
386 current-parameters: true
387 predefined-parameters: |
389 GERRIT_BRANCH=$GERRIT_BRANCH
391 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
395 - name: 'apex-fetch-logs-{scenario_stream}'
396 current-parameters: true
397 predefined-parameters: |
398 GERRIT_BRANCH=$GERRIT_BRANCH
400 node-parameters: true
405 name: 'OPNFV Test Suite'
408 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
409 node-parameters: true
410 current-parameters: false
411 predefined-parameters:
412 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
417 name: apex-fetch-logs
419 - name: 'apex-fetch-logs-{scenario_stream}'
420 current-parameters: true
421 predefined-parameters: |
422 GERRIT_BRANCH=$GERRIT_BRANCH
424 node-parameters: true
431 !include-raw-escape: ./update-build-result.groovy
435 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
437 project-type: 'multijob'
442 - '{project}-defaults'
443 - '{project}-baremetal-{scenario_stream}-defaults'
448 gs-pathname: '{gs-pathname}'
450 name: DEPLOY_SCENARIO
451 default: '{scenario}'
452 description: "Scenario to deploy with."
457 use-build-blocker: true
463 - 'apex-testsuite-.+-baremetal-.+'
470 - description-setter:
471 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
476 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
477 node-parameters: true
478 current-parameters: false
479 predefined-parameters:
480 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
488 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
489 node-parameters: true
490 current-parameters: false
491 predefined-parameters:
492 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
497 name: Dovetail-proposed_tests
500 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
501 node-parameters: true
502 current-parameters: false
503 predefined-parameters:
504 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
506 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
507 && $BUILD_NUMBER % 2 == 1"
511 name: Dovetail-default
514 - name: 'dovetail-apex-baremetal-default-{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/
521 && $BUILD_NUMBER % 2 == 0"
528 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
529 node-parameters: true
530 current-parameters: false
531 predefined-parameters:
532 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
533 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
537 # Build status is always success due conditional plugin prefetching
538 # build status before multijob phases execute
539 # - conditional-step:
540 # condition-kind: current-status
541 # condition-worst: SUCCESS
542 # condtion-best: SUCCESS
543 # on-evaluation-failure: mark-unstable
545 # - shell: 'echo "Tests Passed"'
548 name: 'apex-daily-{stream}'
550 # Job template for daily build
552 # Required Variables:
553 # stream: branch with - in place of / (eg. stable)
554 # branch: branch (eg. stable)
555 project-type: 'multijob'
557 disabled: '{obj:disable_daily}'
563 - '{project}-defaults'
564 - '{project}-baremetal-{stream}-defaults'
569 gs-pathname: '{gs-pathname}'
574 use-build-blocker: true
585 condition: SUCCESSFUL
587 - name: 'apex-build-{stream}'
588 current-parameters: false
589 predefined-parameters: |
590 GERRIT_BRANCH=$GERRIT_BRANCH
592 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
593 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
594 node-parameters: true
595 kill-phase-on: FAILURE
599 name: 'Verify and upload ISO'
600 condition: SUCCESSFUL
602 - name: 'apex-verify-iso-{stream}'
603 current-parameters: false
604 predefined-parameters: |
605 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
606 GERRIT_BRANCH=$GERRIT_BRANCH
608 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
609 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
610 node-parameters: true
611 kill-phase-on: FAILURE
614 - apex-builder-{stream}
618 name: 'apex-create-snapshot'
620 # Job template for clean
622 # Required Variables:
623 # stream: branch with - in place of / (eg. stable)
629 !include-raw-escape: ./apex-snapshot-create.sh
633 name: 'apex-upload-snapshot'
635 # Job template for clean
637 # Required Variables:
638 # stream: branch with - in place of / (eg. stable)
644 properties-content: ARTIFACT_TYPE=snapshot
645 - 'apex-upload-artifact'
649 name: 'apex-csit-promote-daily-{stream}-{os_version}'
651 # Job template for promoting CSIT Snapshots
653 # Required Variables:
654 # stream: branch with - in place of / (eg. stable)
655 # branch: branch (eg. stable)
656 node: '{virtual-slave}'
657 project-type: 'multijob'
658 disabled: '{disable_promote}'
668 gs-pathname: '{gs-pathname}'
670 name: ARTIFACT_VERSION
672 description: "Used for overriding the ARTIFACT_VERSION"
676 description: "Used for overriding the PROMOTE"
680 use-build-blocker: true
688 - timed: '0 12 * * 0'
692 name: apex-virtual-deploy-test
693 condition: SUCCESSFUL
695 - name: 'apex-virtual-{stream}'
696 current-parameters: true
697 predefined-parameters: |
698 DEPLOY_SCENARIO=os-odl-{os_scenario}-noha
700 GERRIT_BRANCH=$GERRIT_BRANCH
701 GERRIT_REFSPEC=$GERRIT_REFSPEC
702 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
703 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
704 FUNCTEST_SUITE_NAME=tempest_smoke_serial
705 FUNCTEST_MODE=testcase
706 node-parameters: true
707 kill-phase-on: FAILURE
711 name: create snapshot
712 condition: SUCCESSFUL
714 - name: 'apex-create-snapshot'
715 current-parameters: false
716 predefined-parameters: |
718 node-parameters: true
719 kill-phase-on: FAILURE
723 name: upload snapshot
724 condition: SUCCESSFUL
726 - name: 'apex-upload-snapshot'
727 current-parameters: false
728 predefined-parameters: |
730 node-parameters: true
731 kill-phase-on: FAILURE
737 name: 'apex-fdio-promote-daily-{stream}'
739 # Job template for promoting CSIT Snapshots
741 # Required Variables:
742 # stream: branch with - in place of / (eg. stable)
743 # branch: branch (eg. stable)
744 node: '{virtual-slave}'
745 project-type: 'multijob'
756 gs-pathname: '{gs-pathname}'
760 use-build-blocker: true
771 condition: SUCCESSFUL
773 - name: 'apex-build-{stream}'
774 current-parameters: false
775 predefined-parameters: |
776 GERRIT_BRANCH=$GERRIT_BRANCH
777 GERRIT_REFSPEC=$GERRIT_REFSPEC
778 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
779 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
780 node-parameters: false
781 kill-phase-on: FAILURE
786 condition: SUCCESSFUL
788 - name: 'apex-deploy-virtual-{stream}'
789 current-parameters: false
790 predefined-parameters: |
791 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
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
798 node-parameters: true
799 kill-phase-on: FAILURE
803 name: create snapshot
804 condition: SUCCESSFUL
806 - name: 'apex-create-snapshot'
807 current-parameters: false
808 predefined-parameters: |
810 node-parameters: true
811 kill-phase-on: FAILURE
815 name: upload snapshot
816 condition: SUCCESSFUL
818 - name: 'apex-upload-snapshot'
819 current-parameters: false
820 predefined-parameters: |
822 node-parameters: true
823 kill-phase-on: FAILURE
829 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
831 project-type: 'multijob'
844 - '{project}-defaults'
849 gs-pathname: '{gs-pathname}'
851 name: DEPLOY_SCENARIO
852 default: 'os-nosdn-nofeature-ha'
853 description: "Scenario to deploy with."
856 default: https://gerrit.opnfv.org/gerrit/$PROJECT
857 description: 'Git URL to use on this Jenkins Slave'
860 default: /root/.ssh/id_rsa
861 description: 'SSH key to use for Apex'
866 use-build-blocker: true
871 - 'apex-.*-promote.*'
873 - 'apex-.+-baremetal-.+'
880 - description-setter:
881 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
883 name: 'Baremetal Deploy'
884 condition: SUCCESSFUL
886 - name: 'apex-deploy-baremetal-{stream}'
887 node-parameters: true
888 current-parameters: true
889 predefined-parameters: |
891 GERRIT_BRANCH=$GERRIT_BRANCH
893 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
894 kill-phase-on: FAILURE
901 - name: 'yardstick-apex-baremetal-daily-{stream}'
902 node-parameters: true
903 current-parameters: false
904 predefined-parameters:
905 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
910 # Dovetail Danube test job
912 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
914 project-type: 'multijob'
921 - '{project}-defaults'
924 branch: 'stable/danube'
926 gs-pathname: '/danube'
928 name: DEPLOY_SCENARIO
929 default: 'os-nosdn-nofeature-ha'
930 description: "Scenario to deploy with."
935 use-build-blocker: true
940 - 'apex-.*-promote.*'
944 - timed: '' # '0 1 * * *'
947 - description-setter:
948 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
950 name: 'Baremetal Deploy'
951 condition: SUCCESSFUL
953 - name: 'apex-deploy-baremetal-danube'
954 node-parameters: true
955 current-parameters: true
956 predefined-parameters: |
958 GERRIT_BRANCH=$GERRIT_BRANCH
960 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
961 kill-phase-on: FAILURE
968 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
969 node-parameters: true
970 current-parameters: false
971 predefined-parameters:
972 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
977 ########################
979 ########################
986 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
988 name: ARTIFACT_VERSION
990 description: "Artifact version type"
992 name: BUILD_DIRECTORY
993 default: $WORKSPACE/.build
994 description: "Directory where the build artifact will be located upon the completion of the build."
996 name: CACHE_DIRECTORY
997 default: $HOME/opnfv/apex-cache{gs-pathname}
998 description: "Directory where the cache to be used during the build is located."
999 # yamllint disable rule:line-length
1002 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1003 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1004 # yamllint enable rule:line-length
1007 default: '{gs-pathname}'
1008 description: "Version directory where opnfv artifacts are stored in gs repository"
1011 default: $GS_BASE{gs-pathname}
1012 description: "URL to Google Storage."
1016 description: "Flag to know if we should promote/upload snapshot artifacts."
1018 ########################
1020 ########################
1021 {% for stream in scenarios %}
1022 # {{ stream }} Builder
1024 name: apex-builder-{{ stream }}
1027 name: Baremetal Deploy and Test Phase
1028 condition: SUCCESSFUL
1030 {%- for scenario in scenarios[stream] %}
1031 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1032 node-parameters: false
1033 current-parameters: false
1034 predefined-parameters: |
1036 kill-phase-on: NEVER
1043 name: 'apex-upload-artifact'
1046 !include-raw: ./apex-upload-artifact.sh
1049 name: 'apex-download-artifact'
1052 !include-raw: ./apex-download-artifact.sh
1058 !include-raw: ./apex-deploy.sh
1061 name: 'apex-fetch-logs'
1064 !include-raw: ./apex-fetch-logs.sh
1066 #######################
1068 ########################
1072 - timed: '0 0 1-31/2 * *'
1077 - timed: '0 0 2-30/2 * *'
1080 name: 'apex-euphrates'
1082 - timed: '0 0 2-30/2 * *'
1087 - timed: '0 3 1 1 7'