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-odl-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-odl-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'
255 gs-pathname: '{gs-pathname}'
257 name: DEPLOY_SCENARIO
258 default: '{verify-scenario}'
259 description: "Scenario to deploy with."
261 name: ARTIFACT_VERSION
263 description: "Used for overriding the ARTIFACT_VERSION"
268 use-build-blocker: true
272 - 'apex-.*-promote.*'
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
298 node-parameters: true
299 kill-phase-on: FAILURE
306 - name: 'functest-apex-virtual-suite-{stream}'
307 current-parameters: false
308 predefined-parameters: |
309 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
310 FUNCTEST_SUITE_NAME=healthcheck
311 GERRIT_BRANCH=$GERRIT_BRANCH
312 GERRIT_REFSPEC=$GERRIT_REFSPEC
313 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
314 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
315 node-parameters: true
320 name: apex-fetch-logs
322 - name: 'apex-fetch-logs-{stream}'
323 current-parameters: false
324 predefined-parameters: |
325 GERRIT_BRANCH=$GERRIT_BRANCH
326 GERRIT_REFSPEC=$GERRIT_REFSPEC
327 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
328 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
329 node-parameters: true
334 # Baremetal Deploy and Test
336 name: 'apex-{scenario}-baremetal-{scenario_stream}'
338 project-type: 'multijob'
346 - '{project}-defaults'
347 - '{project}-baremetal-{scenario_stream}-defaults'
352 gs-pathname: '{gs-pathname}'
354 name: DEPLOY_SCENARIO
355 default: '{scenario}'
356 description: "Scenario to deploy with."
361 use-build-blocker: true
366 - 'apex-.*-promote.*'
368 - 'apex-.+-baremetal-.+'
375 - description-setter:
376 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
378 name: 'Baremetal Deploy'
379 condition: SUCCESSFUL
380 execution-type: SEQUENTIALLY
382 - name: 'apex-deploy-baremetal-{scenario_stream}'
383 node-parameters: true
384 current-parameters: true
385 predefined-parameters: |
387 GERRIT_BRANCH=$GERRIT_BRANCH
389 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
393 - name: 'apex-fetch-logs-{scenario_stream}'
394 current-parameters: true
395 predefined-parameters: |
396 GERRIT_BRANCH=$GERRIT_BRANCH
398 node-parameters: true
403 name: 'OPNFV Test Suite'
406 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
407 node-parameters: true
408 current-parameters: false
409 predefined-parameters:
410 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
415 name: apex-fetch-logs
417 - name: 'apex-fetch-logs-{scenario_stream}'
418 current-parameters: true
419 predefined-parameters: |
420 GERRIT_BRANCH=$GERRIT_BRANCH
422 node-parameters: true
429 !include-raw-escape: ./update-build-result.groovy
433 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
435 project-type: 'multijob'
440 - '{project}-defaults'
441 - '{project}-baremetal-{scenario_stream}-defaults'
446 gs-pathname: '{gs-pathname}'
448 name: DEPLOY_SCENARIO
449 default: '{scenario}'
450 description: "Scenario to deploy with."
455 use-build-blocker: true
460 - 'apex-.*-promote.*'
462 - 'apex-testsuite-.+-baremetal-.+'
469 - description-setter:
470 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
475 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
476 node-parameters: true
477 current-parameters: false
478 predefined-parameters:
479 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
487 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
488 node-parameters: true
489 current-parameters: false
490 predefined-parameters:
491 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
496 name: Dovetail-proposed_tests
499 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
500 node-parameters: true
501 current-parameters: false
502 predefined-parameters:
503 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
505 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
506 && $BUILD_NUMBER % 2 == 1"
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/
520 && $BUILD_NUMBER % 2 == 0"
527 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
528 node-parameters: true
529 current-parameters: false
530 predefined-parameters:
531 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
532 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
536 # Build status is always success due conditional plugin prefetching
537 # build status before multijob phases execute
538 # - conditional-step:
539 # condition-kind: current-status
540 # condition-worst: SUCCESS
541 # condtion-best: SUCCESS
542 # on-evaluation-failure: mark-unstable
544 # - shell: 'echo "Tests Passed"'
547 name: 'apex-daily-{stream}'
549 # Job template for daily build
551 # Required Variables:
552 # stream: branch with - in place of / (eg. stable)
553 # branch: branch (eg. stable)
554 project-type: 'multijob'
556 disabled: '{obj:disable_daily}'
562 - '{project}-defaults'
563 - '{project}-baremetal-{stream}-defaults'
568 gs-pathname: '{gs-pathname}'
573 use-build-blocker: true
584 condition: SUCCESSFUL
586 - name: 'apex-build-{stream}'
587 current-parameters: false
588 predefined-parameters: |
589 GERRIT_BRANCH=$GERRIT_BRANCH
591 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
592 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
593 node-parameters: true
594 kill-phase-on: FAILURE
598 name: 'Verify and upload ISO'
599 condition: SUCCESSFUL
601 - name: 'apex-verify-iso-{stream}'
602 current-parameters: false
603 predefined-parameters: |
604 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
605 GERRIT_BRANCH=$GERRIT_BRANCH
607 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
608 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
609 node-parameters: true
610 kill-phase-on: FAILURE
613 - apex-builder-{stream}
617 name: 'apex-create-snapshot'
619 # Job template for clean
621 # Required Variables:
622 # stream: branch with - in place of / (eg. stable)
628 !include-raw-escape: ./apex-snapshot-create.sh
632 name: 'apex-upload-snapshot'
634 # Job template for clean
636 # Required Variables:
637 # stream: branch with - in place of / (eg. stable)
643 properties-content: ARTIFACT_TYPE=snapshot
644 - 'apex-upload-artifact'
648 name: 'apex-csit-promote-daily-{stream}-{os_version}'
650 # Job template for promoting CSIT Snapshots
652 # Required Variables:
653 # stream: branch with - in place of / (eg. stable)
654 # branch: branch (eg. stable)
655 node: '{virtual-slave}'
656 project-type: 'multijob'
657 disabled: '{disable_promote}'
667 gs-pathname: '{gs-pathname}'
671 use-build-blocker: true
680 - timed: '0 12 * * 0'
684 name: apex-virtual-deploy-test
685 condition: SUCCESSFUL
687 - name: 'apex-virtual-{stream}'
688 current-parameters: true
689 predefined-parameters: |
690 DEPLOY_SCENARIO=os-odl-{os_scenario}-noha
692 GERRIT_BRANCH=$GERRIT_BRANCH
693 GERRIT_REFSPEC=$GERRIT_REFSPEC
694 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
695 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
697 node-parameters: true
698 kill-phase-on: FAILURE
702 name: create snapshot
703 condition: SUCCESSFUL
705 - name: 'apex-create-snapshot'
706 current-parameters: false
707 predefined-parameters: |
709 node-parameters: true
710 kill-phase-on: FAILURE
714 name: upload snapshot
715 condition: SUCCESSFUL
717 - name: 'apex-upload-snapshot'
718 current-parameters: false
719 predefined-parameters: |
721 node-parameters: true
722 kill-phase-on: FAILURE
728 name: 'apex-fdio-promote-daily-{stream}'
730 # Job template for promoting CSIT Snapshots
732 # Required Variables:
733 # stream: branch with - in place of / (eg. stable)
734 # branch: branch (eg. stable)
735 node: '{virtual-slave}'
736 project-type: 'multijob'
747 gs-pathname: '{gs-pathname}'
751 use-build-blocker: true
762 condition: SUCCESSFUL
764 - name: 'apex-build-{stream}'
765 current-parameters: false
766 predefined-parameters: |
767 GERRIT_BRANCH=$GERRIT_BRANCH
768 GERRIT_REFSPEC=$GERRIT_REFSPEC
769 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
770 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
771 node-parameters: false
772 kill-phase-on: FAILURE
777 condition: SUCCESSFUL
779 - name: 'apex-deploy-virtual-{stream}'
780 current-parameters: false
781 predefined-parameters: |
782 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
784 GERRIT_BRANCH=$GERRIT_BRANCH
785 GERRIT_REFSPEC=$GERRIT_REFSPEC
786 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
787 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
789 node-parameters: true
790 kill-phase-on: FAILURE
794 name: create snapshot
795 condition: SUCCESSFUL
797 - name: 'apex-create-snapshot'
798 current-parameters: false
799 predefined-parameters: |
801 node-parameters: true
802 kill-phase-on: FAILURE
806 name: upload snapshot
807 condition: SUCCESSFUL
809 - name: 'apex-upload-snapshot'
810 current-parameters: false
811 predefined-parameters: |
813 node-parameters: true
814 kill-phase-on: FAILURE
820 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
822 project-type: 'multijob'
835 - '{project}-defaults'
840 gs-pathname: '{gs-pathname}'
842 name: DEPLOY_SCENARIO
843 default: 'os-nosdn-nofeature-ha'
844 description: "Scenario to deploy with."
847 default: https://gerrit.opnfv.org/gerrit/$PROJECT
848 description: 'Git URL to use on this Jenkins Slave'
851 default: /root/.ssh/id_rsa
852 description: 'SSH key to use for Apex'
857 use-build-blocker: true
862 - 'apex-.*-promote.*'
864 - 'apex-.+-baremetal-.+'
871 - description-setter:
872 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
874 name: 'Baremetal Deploy'
875 condition: SUCCESSFUL
877 - name: 'apex-deploy-baremetal-{stream}'
878 node-parameters: true
879 current-parameters: true
880 predefined-parameters: |
882 GERRIT_BRANCH=$GERRIT_BRANCH
884 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
885 kill-phase-on: FAILURE
892 - name: 'yardstick-apex-baremetal-daily-{stream}'
893 node-parameters: true
894 current-parameters: false
895 predefined-parameters:
896 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
901 # Dovetail Danube test job
903 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
905 project-type: 'multijob'
912 - '{project}-defaults'
915 branch: 'stable/danube'
917 gs-pathname: '/danube'
919 name: DEPLOY_SCENARIO
920 default: 'os-nosdn-nofeature-ha'
921 description: "Scenario to deploy with."
926 use-build-blocker: true
931 - 'apex-.*-promote.*'
935 - timed: '' # '0 1 * * *'
938 - description-setter:
939 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
941 name: 'Baremetal Deploy'
942 condition: SUCCESSFUL
944 - name: 'apex-deploy-baremetal-danube'
945 node-parameters: true
946 current-parameters: true
947 predefined-parameters: |
949 GERRIT_BRANCH=$GERRIT_BRANCH
951 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
952 kill-phase-on: FAILURE
959 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
960 node-parameters: true
961 current-parameters: false
962 predefined-parameters:
963 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
968 ########################
970 ########################
977 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
979 name: ARTIFACT_VERSION
981 description: "Artifact version type"
983 name: BUILD_DIRECTORY
984 default: $WORKSPACE/.build
985 description: "Directory where the build artifact will be located upon the completion of the build."
987 name: CACHE_DIRECTORY
988 default: $HOME/opnfv/apex-cache{gs-pathname}
989 description: "Directory where the cache to be used during the build is located."
990 # yamllint disable rule:line-length
993 default: https://gerrit.opnfv.org/gerrit/$PROJECT
994 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
995 # yamllint enable rule:line-length
998 default: '{gs-pathname}'
999 description: "Version directory where opnfv artifacts are stored in gs repository"
1002 default: $GS_BASE{gs-pathname}
1003 description: "URL to Google Storage."
1007 description: "Flag to know if we should promote/upload snapshot artifacts."
1009 ########################
1011 ########################
1012 {% for stream in scenarios %}
1013 # {{ stream }} Builder
1015 name: apex-builder-{{ stream }}
1018 name: Baremetal Deploy and Test Phase
1019 condition: SUCCESSFUL
1021 {%- for scenario in scenarios[stream] %}
1022 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1023 node-parameters: false
1024 current-parameters: false
1025 predefined-parameters: |
1027 kill-phase-on: NEVER
1034 name: 'apex-upload-artifact'
1037 !include-raw: ./apex-upload-artifact.sh
1040 name: 'apex-download-artifact'
1043 !include-raw: ./apex-download-artifact.sh
1049 !include-raw: ./apex-deploy.sh
1052 name: 'apex-fetch-logs'
1055 !include-raw: ./apex-fetch-logs.sh
1057 #######################
1059 ########################
1063 - timed: '0 0 1-31/2 * *'
1068 - timed: '0 0 2-30/2 * *'
1071 name: 'apex-euphrates'
1073 - timed: '0 0 2-30/2 * *'
1078 - timed: '0 3 1 1 7'