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/"
510 name: Dovetail-default
513 - name: 'dovetail-apex-baremetal-default-{scenario_stream}'
514 node-parameters: true
515 current-parameters: false
516 predefined-parameters:
517 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
519 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
526 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
527 node-parameters: true
528 current-parameters: false
529 predefined-parameters:
530 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
531 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
535 # Build status is always success due conditional plugin prefetching
536 # build status before multijob phases execute
537 # - conditional-step:
538 # condition-kind: current-status
539 # condition-worst: SUCCESS
540 # condtion-best: SUCCESS
541 # on-evaluation-failure: mark-unstable
543 # - shell: 'echo "Tests Passed"'
546 name: 'apex-daily-{stream}'
548 # Job template for daily build
550 # Required Variables:
551 # stream: branch with - in place of / (eg. stable)
552 # branch: branch (eg. stable)
553 project-type: 'multijob'
555 disabled: '{obj:disable_daily}'
561 - '{project}-defaults'
562 - '{project}-baremetal-{stream}-defaults'
567 gs-pathname: '{gs-pathname}'
572 use-build-blocker: true
583 condition: SUCCESSFUL
585 - name: 'apex-build-{stream}'
586 current-parameters: false
587 predefined-parameters: |
588 GERRIT_BRANCH=$GERRIT_BRANCH
590 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
591 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
592 node-parameters: true
593 kill-phase-on: FAILURE
597 name: 'Verify and upload ISO'
598 condition: SUCCESSFUL
600 - name: 'apex-verify-iso-{stream}'
601 current-parameters: false
602 predefined-parameters: |
603 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
604 GERRIT_BRANCH=$GERRIT_BRANCH
606 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
607 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
608 node-parameters: true
609 kill-phase-on: FAILURE
612 - apex-builder-{stream}
616 name: 'apex-create-snapshot'
618 # Job template for clean
620 # Required Variables:
621 # stream: branch with - in place of / (eg. stable)
627 !include-raw-escape: ./apex-snapshot-create.sh
631 name: 'apex-upload-snapshot'
633 # Job template for clean
635 # Required Variables:
636 # stream: branch with - in place of / (eg. stable)
642 properties-content: ARTIFACT_TYPE=snapshot
643 - 'apex-upload-artifact'
647 name: 'apex-csit-promote-daily-{stream}-{os_version}'
649 # Job template for promoting CSIT Snapshots
651 # Required Variables:
652 # stream: branch with - in place of / (eg. stable)
653 # branch: branch (eg. stable)
654 node: '{virtual-slave}'
655 project-type: 'multijob'
656 disabled: '{disable_promote}'
666 gs-pathname: '{gs-pathname}'
668 name: ARTIFACT_VERSION
670 description: "Used for overriding the ARTIFACT_VERSION"
674 description: "Used for overriding the PROMOTE"
678 use-build-blocker: true
686 - timed: '0 12 * * 0'
690 name: apex-virtual-deploy-test
691 condition: SUCCESSFUL
693 - name: 'apex-virtual-{stream}'
694 current-parameters: true
695 predefined-parameters: |
696 DEPLOY_SCENARIO=os-odl-{os_scenario}-noha
698 GERRIT_BRANCH=$GERRIT_BRANCH
699 GERRIT_REFSPEC=$GERRIT_REFSPEC
700 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
701 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
702 FUNCTEST_SUITE_NAME=tempest_smoke_serial
703 FUNCTEST_MODE=testcase
704 node-parameters: true
705 kill-phase-on: FAILURE
709 name: create snapshot
710 condition: SUCCESSFUL
712 - name: 'apex-create-snapshot'
713 current-parameters: false
714 predefined-parameters: |
716 node-parameters: true
717 kill-phase-on: FAILURE
721 name: upload snapshot
722 condition: SUCCESSFUL
724 - name: 'apex-upload-snapshot'
725 current-parameters: false
726 predefined-parameters: |
728 node-parameters: true
729 kill-phase-on: FAILURE
735 name: 'apex-fdio-promote-daily-{stream}'
737 # Job template for promoting CSIT Snapshots
739 # Required Variables:
740 # stream: branch with - in place of / (eg. stable)
741 # branch: branch (eg. stable)
742 node: '{virtual-slave}'
743 project-type: 'multijob'
754 gs-pathname: '{gs-pathname}'
758 use-build-blocker: true
769 condition: SUCCESSFUL
771 - name: 'apex-build-{stream}'
772 current-parameters: false
773 predefined-parameters: |
774 GERRIT_BRANCH=$GERRIT_BRANCH
775 GERRIT_REFSPEC=$GERRIT_REFSPEC
776 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
777 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
778 node-parameters: false
779 kill-phase-on: FAILURE
784 condition: SUCCESSFUL
786 - name: 'apex-deploy-virtual-{stream}'
787 current-parameters: false
788 predefined-parameters: |
789 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
791 GERRIT_BRANCH=$GERRIT_BRANCH
792 GERRIT_REFSPEC=$GERRIT_REFSPEC
793 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
794 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
796 node-parameters: true
797 kill-phase-on: FAILURE
801 name: create snapshot
802 condition: SUCCESSFUL
804 - name: 'apex-create-snapshot'
805 current-parameters: false
806 predefined-parameters: |
808 node-parameters: true
809 kill-phase-on: FAILURE
813 name: upload snapshot
814 condition: SUCCESSFUL
816 - name: 'apex-upload-snapshot'
817 current-parameters: false
818 predefined-parameters: |
820 node-parameters: true
821 kill-phase-on: FAILURE
827 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
829 project-type: 'multijob'
842 - '{project}-defaults'
847 gs-pathname: '{gs-pathname}'
849 name: DEPLOY_SCENARIO
850 default: 'os-nosdn-nofeature-ha'
851 description: "Scenario to deploy with."
854 default: https://gerrit.opnfv.org/gerrit/$PROJECT
855 description: 'Git URL to use on this Jenkins Slave'
858 default: /root/.ssh/id_rsa
859 description: 'SSH key to use for Apex'
864 use-build-blocker: true
869 - 'apex-.*-promote.*'
871 - 'apex-.+-baremetal-.+'
878 - description-setter:
879 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
881 name: 'Baremetal Deploy'
882 condition: SUCCESSFUL
884 - name: 'apex-deploy-baremetal-{stream}'
885 node-parameters: true
886 current-parameters: true
887 predefined-parameters: |
889 GERRIT_BRANCH=$GERRIT_BRANCH
891 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
892 kill-phase-on: FAILURE
899 - name: 'yardstick-apex-baremetal-daily-{stream}'
900 node-parameters: true
901 current-parameters: false
902 predefined-parameters:
903 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
908 # Dovetail Danube test job
910 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
912 project-type: 'multijob'
919 - '{project}-defaults'
922 branch: 'stable/danube'
924 gs-pathname: '/danube'
926 name: DEPLOY_SCENARIO
927 default: 'os-nosdn-nofeature-ha'
928 description: "Scenario to deploy with."
933 use-build-blocker: true
938 - 'apex-.*-promote.*'
942 - timed: '' # '0 1 * * *'
945 - description-setter:
946 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
948 name: 'Baremetal Deploy'
949 condition: SUCCESSFUL
951 - name: 'apex-deploy-baremetal-danube'
952 node-parameters: true
953 current-parameters: true
954 predefined-parameters: |
956 GERRIT_BRANCH=$GERRIT_BRANCH
958 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
959 kill-phase-on: FAILURE
966 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
967 node-parameters: true
968 current-parameters: false
969 predefined-parameters:
970 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
975 ########################
977 ########################
984 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
986 name: ARTIFACT_VERSION
988 description: "Artifact version type"
990 name: BUILD_DIRECTORY
991 default: $WORKSPACE/.build
992 description: "Directory where the build artifact will be located upon the completion of the build."
994 name: CACHE_DIRECTORY
995 default: $HOME/opnfv/apex-cache{gs-pathname}
996 description: "Directory where the cache to be used during the build is located."
997 # yamllint disable rule:line-length
1000 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1001 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1002 # yamllint enable rule:line-length
1005 default: '{gs-pathname}'
1006 description: "Version directory where opnfv artifacts are stored in gs repository"
1009 default: $GS_BASE{gs-pathname}
1010 description: "URL to Google Storage."
1014 description: "Flag to know if we should promote/upload snapshot artifacts."
1016 ########################
1018 ########################
1019 {% for stream in scenarios %}
1020 # {{ stream }} Builder
1022 name: apex-builder-{{ stream }}
1025 name: Baremetal Deploy and Test Phase
1026 condition: SUCCESSFUL
1028 {%- for scenario in scenarios[stream] %}
1029 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1030 node-parameters: false
1031 current-parameters: false
1032 predefined-parameters: |
1034 kill-phase-on: NEVER
1041 name: 'apex-upload-artifact'
1044 !include-raw: ./apex-upload-artifact.sh
1047 name: 'apex-download-artifact'
1050 !include-raw: ./apex-download-artifact.sh
1056 !include-raw: ./apex-deploy.sh
1059 name: 'apex-fetch-logs'
1062 !include-raw: ./apex-fetch-logs.sh
1064 #######################
1066 ########################
1070 - timed: '0 0 1-31/2 * *'
1075 - timed: '0 0 2-30/2 * *'
1078 name: 'apex-euphrates'
1080 - timed: '0 0 2-30/2 * *'
1085 - timed: '0 3 1 1 7'