6 - 'apex-runner-cperf-{stream}'
7 - 'apex-virtual-{stream}'
8 - 'apex-deploy-{platform}-{stream}'
9 - 'apex-daily-{stream}'
10 - 'apex-csit-promote-daily-{stream}'
11 - 'apex-fdio-promote-daily-{stream}'
12 - 'apex-{scenario}-baremetal-{scenario_stream}'
13 - 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
14 - 'apex-upload-snapshot'
15 - 'apex-create-snapshot'
16 - 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
17 - 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
18 # stream: branch with - in place of / (eg. stable-arno)
19 # branch: branch (eg. stable/arno)
24 build-slave: 'apex-build-master'
25 virtual-slave: 'apex-virtual-master'
26 baremetal-slave: 'apex-baremetal-master'
27 verify-scenario: 'os-odl-nofeature-ha'
28 scenario_stream: 'master'
30 disable_promote: false
32 branch: 'stable/fraser'
33 gs-pathname: '/fraser'
34 build-slave: 'apex-build-master'
35 virtual-slave: 'apex-virtual-master'
36 baremetal-slave: 'apex-baremetal-master'
37 verify-scenario: 'os-odl-nofeature-ha'
38 scenario_stream: 'fraser'
41 - euphrates: &euphrates
42 branch: 'stable/euphrates'
43 gs-pathname: '/euphrates'
44 build-slave: 'apex-build-master'
45 virtual-slave: 'apex-virtual-master'
46 baremetal-slave: 'apex-baremetal-master'
47 verify-scenario: 'os-odl-nofeature-ha'
48 scenario_stream: 'euphrates'
52 branch: 'stable/danube'
53 gs-pathname: '/danube'
54 build-slave: 'apex-build-danube'
55 virtual-slave: 'apex-virtual-danube'
56 baremetal-slave: 'apex-baremetal-danube'
57 verify-scenario: 'os-odl_l3-nofeature-ha'
58 scenario_stream: 'danube'
64 {%- for stream in scenarios %}
65 {%- for scenario in scenarios[stream] %}
80 name: 'apex-runner-cperf-{stream}'
83 project-type: 'multijob'
90 gs-pathname: '{gs-pathname}'
96 default: https://gerrit.opnfv.org/gerrit/$PROJECT
97 description: "Used for overriding the GIT URL coming from parameters macro."
105 use-build-blocker: false
115 - description-setter:
116 description: "Deployed on $NODE_NAME"
118 name: 'Baremetal Deploy'
121 - name: 'apex-deploy-baremetal-{stream}'
122 node-parameters: false
123 current-parameters: true
124 predefined-parameters: |
125 GERRIT_BRANCH=$GERRIT_BRANCH
128 DEPLOY_SCENARIO={verify-scenario}
129 kill-phase-on: FAILURE
134 condition: SUCCESSFUL
136 - name: 'cperf-apex-intel-pod2-daily-master'
137 node-parameters: true
138 current-parameters: false
139 predefined-parameters:
140 DEPLOY_SCENARIO={verify-scenario}
147 name: 'apex-deploy-{platform}-{stream}'
162 - '{project}-{platform}-{stream}-defaults'
167 gs-pathname: '{gs-pathname}'
169 name: DEPLOY_SCENARIO
170 default: '{verify-scenario}'
171 description: "Scenario to deploy with."
172 # yamllint disable rule:line-length
176 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
178 # yamllint enable rule:line-length
182 use-build-blocker: true
196 - description-setter:
197 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
198 - 'apex-download-artifact'
203 # Virtual Deploy and Test
205 name: 'apex-virtual-{stream}'
207 project-type: 'multijob'
217 - '{project}-defaults'
218 - '{project}-virtual-{stream}-defaults'
223 gs-pathname: '{gs-pathname}'
225 name: DEPLOY_SCENARIO
226 default: '{verify-scenario}'
227 description: "Scenario to deploy with."
229 name: ARTIFACT_VERSION
231 description: "Used for overriding the ARTIFACT_VERSION"
236 use-build-blocker: true
240 - 'apex-.*-promote.*'
243 - 'apex-verify-gate-.*'
250 - description-setter:
251 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
254 condition: SUCCESSFUL
256 - name: 'apex-deploy-virtual-{stream}'
257 current-parameters: false
258 predefined-parameters: |
259 ARTIFACT_VERSION=$ARTIFACT_VERSION
260 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
262 GERRIT_BRANCH=$GERRIT_BRANCH
263 GERRIT_REFSPEC=$GERRIT_REFSPEC
264 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
265 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
266 node-parameters: true
267 kill-phase-on: FAILURE
272 condition: SUCCESSFUL
274 - name: 'functest-apex-virtual-suite-{stream}'
275 current-parameters: false
276 predefined-parameters: |
277 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
278 FUNCTEST_SUITE_NAME=healthcheck
279 GERRIT_BRANCH=$GERRIT_BRANCH
280 GERRIT_REFSPEC=$GERRIT_REFSPEC
281 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
282 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
283 node-parameters: true
288 # Baremetal Deploy and Test
290 name: 'apex-{scenario}-baremetal-{scenario_stream}'
292 project-type: 'multijob'
300 - '{project}-defaults'
301 - '{project}-baremetal-{scenario_stream}-defaults'
306 gs-pathname: '{gs-pathname}'
308 name: DEPLOY_SCENARIO
309 default: '{scenario}'
310 description: "Scenario to deploy with."
315 use-build-blocker: true
320 - 'apex-.*-promote.*'
322 - 'apex-.+-baremetal-.+'
329 - description-setter:
330 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
332 name: 'Baremetal Deploy'
333 condition: SUCCESSFUL
335 - name: 'apex-deploy-baremetal-{scenario_stream}'
336 node-parameters: true
337 current-parameters: true
338 predefined-parameters: |
340 GERRIT_BRANCH=$GERRIT_BRANCH
342 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
343 kill-phase-on: FAILURE
347 name: 'OPNFV Test Suite'
349 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
350 node-parameters: true
351 current-parameters: false
352 predefined-parameters:
353 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
361 !include-raw-escape: ./update-build-result.groovy
365 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
367 project-type: 'multijob'
372 - '{project}-defaults'
373 - '{project}-baremetal-{scenario_stream}-defaults'
378 gs-pathname: '{gs-pathname}'
380 name: DEPLOY_SCENARIO
381 default: '{scenario}'
382 description: "Scenario to deploy with."
387 use-build-blocker: true
392 - 'apex-.*-promote.*'
394 - 'apex-testsuite-.+-baremetal-.+'
401 - description-setter:
402 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
407 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
408 node-parameters: true
409 current-parameters: false
410 predefined-parameters:
411 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
419 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
420 node-parameters: true
421 current-parameters: false
422 predefined-parameters:
423 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
428 name: Dovetail-proposed_tests
431 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
432 node-parameters: true
433 current-parameters: false
434 predefined-parameters:
435 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
437 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
438 && $BUILD_NUMBER % 2 == 1"
442 name: Dovetail-default
445 - name: 'dovetail-apex-baremetal-default-{scenario_stream}'
446 node-parameters: true
447 current-parameters: false
448 predefined-parameters:
449 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
451 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
452 && $BUILD_NUMBER % 2 == 0"
459 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
460 node-parameters: true
461 current-parameters: false
462 predefined-parameters:
463 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
464 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
468 # Build status is always success due conditional plugin prefetching
469 # build status before multijob phases execute
470 # - conditional-step:
471 # condition-kind: current-status
472 # condition-worst: SUCCESS
473 # condtion-best: SUCCESS
474 # on-evaluation-failure: mark-unstable
476 # - shell: 'echo "Tests Passed"'
479 name: 'apex-daily-{stream}'
481 # Job template for daily build
483 # Required Variables:
484 # stream: branch with - in place of / (eg. stable)
485 # branch: branch (eg. stable)
486 project-type: 'multijob'
488 disabled: '{obj:disable_daily}'
494 - '{project}-defaults'
495 - '{project}-baremetal-{stream}-defaults'
500 gs-pathname: '{gs-pathname}'
505 use-build-blocker: true
516 condition: SUCCESSFUL
518 - name: 'apex-build-{stream}'
519 current-parameters: false
520 predefined-parameters: |
521 GERRIT_BRANCH=$GERRIT_BRANCH
523 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
524 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
525 node-parameters: true
526 kill-phase-on: FAILURE
530 name: 'Verify and upload ISO'
531 condition: SUCCESSFUL
533 - name: 'apex-verify-iso-{stream}'
534 current-parameters: false
535 predefined-parameters: |
536 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
537 GERRIT_BRANCH=$GERRIT_BRANCH
539 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
540 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
541 node-parameters: true
542 kill-phase-on: FAILURE
545 - apex-builder-{stream}
549 name: 'apex-create-snapshot'
551 # Job template for clean
553 # Required Variables:
554 # stream: branch with - in place of / (eg. stable)
560 !include-raw-escape: ./apex-snapshot-create.sh
564 name: 'apex-upload-snapshot'
566 # Job template for clean
568 # Required Variables:
569 # stream: branch with - in place of / (eg. stable)
575 properties-content: ARTIFACT_TYPE=snapshot
576 - 'apex-upload-artifact'
580 name: 'apex-csit-promote-daily-{stream}'
582 # Job template for promoting CSIT Snapshots
584 # Required Variables:
585 # stream: branch with - in place of / (eg. stable)
586 # branch: branch (eg. stable)
587 node: '{virtual-slave}'
588 project-type: 'multijob'
589 disabled: '{disable_promote}'
599 gs-pathname: '{gs-pathname}'
603 use-build-blocker: true
612 - timed: '0 12 * * 0'
617 condition: SUCCESSFUL
619 - name: 'apex-deploy-virtual-{stream}'
620 current-parameters: false
621 predefined-parameters: |
622 DEPLOY_SCENARIO=os-odl-{os_version}_upstream-noha
624 GERRIT_BRANCH=$GERRIT_BRANCH
625 GERRIT_REFSPEC=$GERRIT_REFSPEC
626 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
627 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
629 node-parameters: true
630 kill-phase-on: FAILURE
635 condition: SUCCESSFUL
637 - name: 'functest-apex-virtual-suite-{stream}'
638 current-parameters: false
639 predefined-parameters: |
640 DEPLOY_SCENARIO=os-odl-{os_version}_upstream-noha
641 FUNCTEST_SUITE_NAME=tempest_smoke_serial
642 GERRIT_BRANCH=$GERRIT_BRANCH
643 GERRIT_REFSPEC=$GERRIT_REFSPEC
644 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
645 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
646 node-parameters: true
647 kill-phase-on: FAILURE
651 name: create snapshot
652 condition: SUCCESSFUL
654 - name: 'apex-create-snapshot'
655 current-parameters: false
656 predefined-parameters: |
658 node-parameters: true
659 kill-phase-on: FAILURE
663 name: upload snapshot
664 condition: SUCCESSFUL
666 - name: 'apex-upload-snapshot'
667 current-parameters: false
668 predefined-parameters: |
670 node-parameters: true
671 kill-phase-on: FAILURE
677 name: 'apex-fdio-promote-daily-{stream}'
679 # Job template for promoting CSIT Snapshots
681 # Required Variables:
682 # stream: branch with - in place of / (eg. stable)
683 # branch: branch (eg. stable)
684 node: '{virtual-slave}'
685 project-type: 'multijob'
696 gs-pathname: '{gs-pathname}'
700 use-build-blocker: true
711 condition: SUCCESSFUL
713 - name: 'apex-build-{stream}'
714 current-parameters: false
715 predefined-parameters: |
716 GERRIT_BRANCH=$GERRIT_BRANCH
717 GERRIT_REFSPEC=$GERRIT_REFSPEC
718 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
719 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
720 node-parameters: false
721 kill-phase-on: FAILURE
726 condition: SUCCESSFUL
728 - name: 'apex-deploy-virtual-{stream}'
729 current-parameters: false
730 predefined-parameters: |
731 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
733 GERRIT_BRANCH=$GERRIT_BRANCH
734 GERRIT_REFSPEC=$GERRIT_REFSPEC
735 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
736 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
738 node-parameters: true
739 kill-phase-on: FAILURE
743 name: create snapshot
744 condition: SUCCESSFUL
746 - name: 'apex-create-snapshot'
747 current-parameters: false
748 predefined-parameters: |
750 node-parameters: true
751 kill-phase-on: FAILURE
755 name: upload snapshot
756 condition: SUCCESSFUL
758 - name: 'apex-upload-snapshot'
759 current-parameters: false
760 predefined-parameters: |
762 node-parameters: true
763 kill-phase-on: FAILURE
769 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
771 project-type: 'multijob'
784 - '{project}-defaults'
789 gs-pathname: '{gs-pathname}'
791 name: DEPLOY_SCENARIO
792 default: 'os-nosdn-nofeature-ha'
793 description: "Scenario to deploy with."
796 default: https://gerrit.opnfv.org/gerrit/$PROJECT
797 description: 'Git URL to use on this Jenkins Slave'
800 default: /root/.ssh/id_rsa
801 description: 'SSH key to use for Apex'
806 use-build-blocker: true
811 - 'apex-.*-promote.*'
813 - 'apex-.+-baremetal-.+'
820 - description-setter:
821 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
823 name: 'Baremetal Deploy'
824 condition: SUCCESSFUL
826 - name: 'apex-deploy-baremetal-{stream}'
827 node-parameters: true
828 current-parameters: true
829 predefined-parameters: |
831 GERRIT_BRANCH=$GERRIT_BRANCH
833 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
834 kill-phase-on: FAILURE
841 - name: 'yardstick-apex-baremetal-daily-{stream}'
842 node-parameters: true
843 current-parameters: false
844 predefined-parameters:
845 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
850 # Dovetail Danube test job
852 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
854 project-type: 'multijob'
861 - '{project}-defaults'
864 branch: 'stable/danube'
866 gs-pathname: '/danube'
868 name: DEPLOY_SCENARIO
869 default: 'os-nosdn-nofeature-ha'
870 description: "Scenario to deploy with."
875 use-build-blocker: true
880 - 'apex-.*-promote.*'
884 - timed: '' # '0 1 * * *'
887 - description-setter:
888 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
890 name: 'Baremetal Deploy'
891 condition: SUCCESSFUL
893 - name: 'apex-deploy-baremetal-danube'
894 node-parameters: true
895 current-parameters: true
896 predefined-parameters: |
898 GERRIT_BRANCH=$GERRIT_BRANCH
900 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
901 kill-phase-on: FAILURE
908 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
909 node-parameters: true
910 current-parameters: false
911 predefined-parameters:
912 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
917 ########################
919 ########################
926 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
928 name: ARTIFACT_VERSION
930 description: "Artifact version type"
932 name: BUILD_DIRECTORY
933 default: $WORKSPACE/.build
934 description: "Directory where the build artifact will be located upon the completion of the build."
936 name: CACHE_DIRECTORY
937 default: $HOME/opnfv/apex-cache{gs-pathname}
938 description: "Directory where the cache to be used during the build is located."
939 # yamllint disable rule:line-length
942 default: https://gerrit.opnfv.org/gerrit/$PROJECT
943 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
944 # yamllint enable rule:line-length
947 default: '{gs-pathname}'
948 description: "Version directory where opnfv artifacts are stored in gs repository"
951 default: $GS_BASE{gs-pathname}
952 description: "URL to Google Storage."
956 description: "Flag to know if we should promote/upload snapshot artifacts."
958 ########################
960 ########################
961 {% for stream in scenarios %}
962 # {{ stream }} Builder
964 name: apex-builder-{{ stream }}
967 name: Baremetal Deploy and Test Phase
968 condition: SUCCESSFUL
970 {%- for scenario in scenarios[stream] %}
971 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
972 node-parameters: false
973 current-parameters: false
974 predefined-parameters: |
983 name: 'apex-upload-artifact'
986 !include-raw: ./apex-upload-artifact.sh
989 name: 'apex-download-artifact'
992 !include-raw: ./apex-download-artifact.sh
998 !include-raw: ./apex-deploy.sh
1000 #######################
1002 ########################
1006 - timed: '0 0 1-31/2 * *'
1011 - timed: '0 0 2-30/2 * *'
1014 name: 'apex-euphrates'
1016 - timed: '0 0 2-30/2 * *'
1021 - timed: '0 3 1 1 7'