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 - euphrates: &euphrates
31 branch: 'stable/euphrates'
32 gs-pathname: '/euphrates'
33 build-slave: 'apex-build-master'
34 virtual-slave: 'apex-virtual-master'
35 baremetal-slave: 'apex-baremetal-master'
36 verify-scenario: 'os-odl-nofeature-ha'
37 scenario_stream: 'euphrates'
40 branch: 'stable/danube'
41 gs-pathname: '/danube'
42 build-slave: 'apex-build-danube'
43 virtual-slave: 'apex-virtual-danube'
44 baremetal-slave: 'apex-baremetal-danube'
45 verify-scenario: 'os-odl_l3-nofeature-ha'
46 scenario_stream: 'danube'
51 {%- for stream in scenarios %}
52 {%- for scenario in scenarios[stream] %}
63 name: 'apex-runner-cperf-{stream}'
66 project-type: 'multijob'
73 gs-pathname: '{gs-pathname}'
79 default: https://gerrit.opnfv.org/gerrit/$PROJECT
80 description: "Used for overriding the GIT URL coming from parameters macro."
88 use-build-blocker: false
99 description: "Deployed on $NODE_NAME"
101 name: 'Baremetal Deploy'
104 - name: 'apex-deploy-baremetal-{stream}'
105 node-parameters: false
106 current-parameters: true
107 predefined-parameters: |
108 GERRIT_BRANCH=$GERRIT_BRANCH
111 DEPLOY_SCENARIO={verify-scenario}
112 kill-phase-on: FAILURE
117 condition: SUCCESSFUL
119 - name: 'cperf-apex-intel-pod2-daily-master'
120 node-parameters: true
121 current-parameters: false
122 predefined-parameters:
123 DEPLOY_SCENARIO={verify-scenario}
130 name: 'apex-deploy-{platform}-{stream}'
145 - '{project}-{platform}-{stream}-defaults'
150 gs-pathname: '{gs-pathname}'
152 name: DEPLOY_SCENARIO
153 default: '{verify-scenario}'
154 description: "Scenario to deploy with."
155 # yamllint disable rule:line-length
159 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
161 # yamllint enable rule:line-length
165 use-build-blocker: true
179 - description-setter:
180 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
181 - 'apex-download-artifact'
186 # Virtual Deploy and Test
188 name: 'apex-virtual-{stream}'
190 project-type: 'multijob'
200 - '{project}-defaults'
201 - '{project}-virtual-{stream}-defaults'
206 gs-pathname: '{gs-pathname}'
208 name: DEPLOY_SCENARIO
209 default: '{verify-scenario}'
210 description: "Scenario to deploy with."
212 name: ARTIFACT_VERSION
214 description: "Used for overriding the ARTIFACT_VERSION"
219 use-build-blocker: true
223 - 'apex-.*-promote.*'
226 - 'apex-verify-gate-.*'
233 - description-setter:
234 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
237 condition: SUCCESSFUL
239 - name: 'apex-deploy-virtual-{stream}'
240 current-parameters: false
241 predefined-parameters: |
242 ARTIFACT_VERSION=$ARTIFACT_VERSION
243 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
245 GERRIT_BRANCH=$GERRIT_BRANCH
246 GERRIT_REFSPEC=$GERRIT_REFSPEC
247 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
248 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
249 node-parameters: true
250 kill-phase-on: FAILURE
255 condition: SUCCESSFUL
257 - name: 'functest-apex-virtual-suite-{stream}'
258 current-parameters: false
259 predefined-parameters: |
260 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
261 FUNCTEST_SUITE_NAME=healthcheck
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
271 # Baremetal Deploy and Test
273 name: 'apex-{scenario}-baremetal-{scenario_stream}'
275 project-type: 'multijob'
283 - '{project}-defaults'
284 - '{project}-baremetal-{scenario_stream}-defaults'
289 gs-pathname: '{gs-pathname}'
291 name: DEPLOY_SCENARIO
292 default: '{scenario}'
293 description: "Scenario to deploy with."
298 use-build-blocker: true
303 - 'apex-.*-promote.*'
305 - 'apex-.+-baremetal-.+'
312 - description-setter:
313 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
315 name: 'Baremetal Deploy'
316 condition: SUCCESSFUL
318 - name: 'apex-deploy-baremetal-{scenario_stream}'
319 node-parameters: true
320 current-parameters: true
321 predefined-parameters: |
323 GERRIT_BRANCH=$GERRIT_BRANCH
325 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
326 kill-phase-on: FAILURE
330 name: 'OPNFV Test Suite'
332 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
333 node-parameters: true
334 current-parameters: false
335 predefined-parameters:
336 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
344 !include-raw-escape: ./update-build-result.groovy
348 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
350 project-type: 'multijob'
355 - '{project}-defaults'
356 - '{project}-baremetal-{scenario_stream}-defaults'
361 gs-pathname: '{gs-pathname}'
363 name: DEPLOY_SCENARIO
364 default: '{scenario}'
365 description: "Scenario to deploy with."
370 use-build-blocker: true
375 - 'apex-.*-promote.*'
377 - 'apex-testsuite-.+-baremetal-.+'
384 - description-setter:
385 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
390 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
391 node-parameters: true
392 current-parameters: false
393 predefined-parameters:
394 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
402 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
403 node-parameters: true
404 current-parameters: false
405 predefined-parameters:
406 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
411 name: Dovetail-proposed_tests
414 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
415 node-parameters: true
416 current-parameters: false
417 predefined-parameters:
418 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
420 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
421 && $BUILD_NUMBER % 2 == 1"
425 name: Dovetail-default
428 - name: 'dovetail-apex-baremetal-default-{scenario_stream}'
429 node-parameters: true
430 current-parameters: false
431 predefined-parameters:
432 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
434 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
435 && $BUILD_NUMBER % 2 == 0"
442 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
443 node-parameters: true
444 current-parameters: false
445 predefined-parameters:
446 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
447 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
451 # Build status is always success due conditional plugin prefetching
452 # build status before multijob phases execute
453 # - conditional-step:
454 # condition-kind: current-status
455 # condition-worst: SUCCESS
456 # condtion-best: SUCCESS
457 # on-evaluation-failure: mark-unstable
459 # - shell: 'echo "Tests Passed"'
462 name: 'apex-daily-{stream}'
464 # Job template for daily build
466 # Required Variables:
467 # stream: branch with - in place of / (eg. stable)
468 # branch: branch (eg. stable)
469 project-type: 'multijob'
471 disabled: '{obj:disable_daily}'
477 - '{project}-defaults'
478 - '{project}-baremetal-{stream}-defaults'
483 gs-pathname: '{gs-pathname}'
488 use-build-blocker: true
499 condition: SUCCESSFUL
501 - name: 'apex-build-{stream}'
502 current-parameters: false
503 predefined-parameters: |
504 GERRIT_BRANCH=$GERRIT_BRANCH
506 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
507 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
508 node-parameters: true
509 kill-phase-on: FAILURE
513 name: 'Verify and upload ISO'
514 condition: SUCCESSFUL
516 - name: 'apex-verify-iso-{stream}'
517 current-parameters: false
518 predefined-parameters: |
519 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
520 GERRIT_BRANCH=$GERRIT_BRANCH
522 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
523 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
524 node-parameters: true
525 kill-phase-on: FAILURE
528 - apex-builder-{stream}
532 name: 'apex-create-snapshot'
534 # Job template for clean
536 # Required Variables:
537 # stream: branch with - in place of / (eg. stable)
543 !include-raw-escape: ./apex-snapshot-create.sh
547 name: 'apex-upload-snapshot'
549 # Job template for clean
551 # Required Variables:
552 # stream: branch with - in place of / (eg. stable)
558 properties-content: ARTIFACT_TYPE=snapshot
559 - 'apex-upload-artifact'
563 name: 'apex-csit-promote-daily-{stream}'
565 # Job template for promoting CSIT Snapshots
567 # Required Variables:
568 # stream: branch with - in place of / (eg. stable)
569 # branch: branch (eg. stable)
570 node: '{virtual-slave}'
571 project-type: 'multijob'
582 gs-pathname: '{gs-pathname}'
586 use-build-blocker: true
595 - timed: '0 12 * * 0'
600 condition: SUCCESSFUL
602 - name: 'apex-build-{stream}'
603 current-parameters: false
604 predefined-parameters: |
605 GERRIT_BRANCH=$GERRIT_BRANCH
606 GERRIT_REFSPEC=$GERRIT_REFSPEC
607 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
608 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
609 node-parameters: false
610 kill-phase-on: FAILURE
615 condition: SUCCESSFUL
617 - name: 'apex-deploy-virtual-{stream}'
618 current-parameters: false
619 predefined-parameters: |
620 DEPLOY_SCENARIO=os-odl_l3-csit-noha
622 GERRIT_BRANCH=$GERRIT_BRANCH
623 GERRIT_REFSPEC=$GERRIT_REFSPEC
624 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
625 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
627 node-parameters: true
628 kill-phase-on: FAILURE
633 condition: SUCCESSFUL
635 - name: 'functest-apex-virtual-suite-{stream}'
636 current-parameters: false
637 predefined-parameters: |
638 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
639 FUNCTEST_SUITE_NAME=tempest_smoke_serial
640 GERRIT_BRANCH=$GERRIT_BRANCH
641 GERRIT_REFSPEC=$GERRIT_REFSPEC
642 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
643 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
644 node-parameters: true
645 kill-phase-on: FAILURE
649 name: create snapshot
650 condition: SUCCESSFUL
652 - name: 'apex-create-snapshot'
653 current-parameters: false
654 predefined-parameters: |
656 node-parameters: true
657 kill-phase-on: FAILURE
661 name: upload snapshot
662 condition: SUCCESSFUL
664 - name: 'apex-upload-snapshot'
665 current-parameters: false
666 predefined-parameters: |
668 node-parameters: true
669 kill-phase-on: FAILURE
675 name: 'apex-fdio-promote-daily-{stream}'
677 # Job template for promoting CSIT Snapshots
679 # Required Variables:
680 # stream: branch with - in place of / (eg. stable)
681 # branch: branch (eg. stable)
682 node: '{virtual-slave}'
683 project-type: 'multijob'
694 gs-pathname: '{gs-pathname}'
698 use-build-blocker: true
709 condition: SUCCESSFUL
711 - name: 'apex-build-{stream}'
712 current-parameters: false
713 predefined-parameters: |
714 GERRIT_BRANCH=$GERRIT_BRANCH
715 GERRIT_REFSPEC=$GERRIT_REFSPEC
716 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
717 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
718 node-parameters: false
719 kill-phase-on: FAILURE
724 condition: SUCCESSFUL
726 - name: 'apex-deploy-virtual-{stream}'
727 current-parameters: false
728 predefined-parameters: |
729 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
731 GERRIT_BRANCH=$GERRIT_BRANCH
732 GERRIT_REFSPEC=$GERRIT_REFSPEC
733 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
734 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
736 node-parameters: true
737 kill-phase-on: FAILURE
741 name: create snapshot
742 condition: SUCCESSFUL
744 - name: 'apex-create-snapshot'
745 current-parameters: false
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: false
758 predefined-parameters: |
760 node-parameters: true
761 kill-phase-on: FAILURE
767 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
769 project-type: 'multijob'
782 - '{project}-defaults'
787 gs-pathname: '{gs-pathname}'
789 name: DEPLOY_SCENARIO
790 default: 'os-nosdn-nofeature-ha'
791 description: "Scenario to deploy with."
794 default: https://gerrit.opnfv.org/gerrit/$PROJECT
795 description: 'Git URL to use on this Jenkins Slave'
798 default: /root/.ssh/id_rsa
799 description: 'SSH key to use for Apex'
804 use-build-blocker: true
809 - 'apex-.*-promote.*'
811 - 'apex-.+-baremetal-.+'
818 - description-setter:
819 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
821 name: 'Baremetal Deploy'
822 condition: SUCCESSFUL
824 - name: 'apex-deploy-baremetal-{stream}'
825 node-parameters: true
826 current-parameters: true
827 predefined-parameters: |
829 GERRIT_BRANCH=$GERRIT_BRANCH
831 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
832 kill-phase-on: FAILURE
839 - name: 'yardstick-apex-baremetal-daily-{stream}'
840 node-parameters: true
841 current-parameters: false
842 predefined-parameters:
843 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
848 # Dovetail Danube test job
850 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
852 project-type: 'multijob'
859 - '{project}-defaults'
862 branch: 'stable/danube'
864 gs-pathname: '/danube'
866 name: DEPLOY_SCENARIO
867 default: 'os-nosdn-nofeature-ha'
868 description: "Scenario to deploy with."
873 use-build-blocker: true
878 - 'apex-.*-promote.*'
882 - timed: '' # '0 1 * * *'
885 - description-setter:
886 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
888 name: 'Baremetal Deploy'
889 condition: SUCCESSFUL
891 - name: 'apex-deploy-baremetal-danube'
892 node-parameters: true
893 current-parameters: true
894 predefined-parameters: |
896 GERRIT_BRANCH=$GERRIT_BRANCH
898 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
899 kill-phase-on: FAILURE
906 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
907 node-parameters: true
908 current-parameters: false
909 predefined-parameters:
910 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
915 ########################
917 ########################
924 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
926 name: ARTIFACT_VERSION
928 description: "Artifact version type"
930 name: BUILD_DIRECTORY
931 default: $WORKSPACE/.build
932 description: "Directory where the build artifact will be located upon the completion of the build."
934 name: CACHE_DIRECTORY
935 default: $HOME/opnfv/apex-cache{gs-pathname}
936 description: "Directory where the cache to be used during the build is located."
937 # yamllint disable rule:line-length
940 default: https://gerrit.opnfv.org/gerrit/$PROJECT
941 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
942 # yamllint enable rule:line-length
945 default: '{gs-pathname}'
946 description: "Version directory where opnfv artifacts are stored in gs repository"
949 default: $GS_BASE{gs-pathname}
950 description: "URL to Google Storage."
954 description: "Flag to know if we should promote/upload snapshot artifacts."
956 ########################
958 ########################
959 {% for stream in scenarios %}
960 # {{ stream }} Builder
962 name: apex-builder-{{ stream }}
965 name: Baremetal Deploy and Test Phase
966 condition: SUCCESSFUL
968 {%- for scenario in scenarios[stream] %}
969 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
970 node-parameters: false
971 current-parameters: false
972 predefined-parameters: |
981 name: 'apex-upload-artifact'
984 !include-raw: ./apex-upload-artifact.sh
987 name: 'apex-download-artifact'
990 !include-raw: ./apex-download-artifact.sh
996 !include-raw: ./apex-deploy.sh
998 #######################
1000 ########################
1004 - timed: '0 0 1-31/2 * *'
1007 name: 'apex-euphrates'
1009 - timed: '0 0 2-30/2 * *'
1014 - timed: '0 3 1 1 7'