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}'
132 node: 'apex-{platform}-{stream}'
147 - '{project}-{platform}-{stream}-defaults'
152 gs-pathname: '{gs-pathname}'
154 name: DEPLOY_SCENARIO
155 default: '{verify-scenario}'
156 description: "Scenario to deploy with."
157 # yamllint disable rule:line-length
161 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
163 # yamllint enable rule:line-length
167 use-build-blocker: true
181 - description-setter:
182 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
183 - 'apex-download-artifact'
188 # Virtual Deploy and Test
190 name: 'apex-virtual-{stream}'
192 node: 'apex-virtual-master'
194 project-type: 'multijob'
202 - '{project}-defaults'
203 - '{project}-virtual-{stream}-defaults'
208 gs-pathname: '{gs-pathname}'
210 name: DEPLOY_SCENARIO
211 default: '{verify-scenario}'
212 description: "Scenario to deploy with."
214 name: ARTIFACT_VERSION
216 description: "Used for overriding the ARTIFACT_VERSION"
221 use-build-blocker: true
225 - 'apex-.*-promote.*'
228 - 'apex-verify-gate-.*'
235 - description-setter:
236 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
239 condition: SUCCESSFUL
241 - name: 'apex-deploy-virtual-{stream}'
242 current-parameters: false
243 predefined-parameters: |
244 ARTIFACT_VERSION=$ARTIFACT_VERSION
245 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
247 GERRIT_BRANCH=$GERRIT_BRANCH
248 GERRIT_REFSPEC=$GERRIT_REFSPEC
249 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
250 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
251 node-parameters: true
252 kill-phase-on: FAILURE
257 condition: SUCCESSFUL
259 - name: 'functest-apex-virtual-suite-{stream}'
260 current-parameters: false
261 predefined-parameters: |
262 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
263 FUNCTEST_SUITE_NAME=healthcheck
264 GERRIT_BRANCH=$GERRIT_BRANCH
265 GERRIT_REFSPEC=$GERRIT_REFSPEC
266 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
267 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
268 node-parameters: true
273 # Baremetal Deploy and Test
275 name: 'apex-{scenario}-baremetal-{scenario_stream}'
277 project-type: 'multijob'
285 - '{project}-defaults'
286 - '{project}-baremetal-{scenario_stream}-defaults'
291 gs-pathname: '{gs-pathname}'
293 name: DEPLOY_SCENARIO
294 default: '{scenario}'
295 description: "Scenario to deploy with."
300 use-build-blocker: true
305 - 'apex-.*-promote.*'
307 - 'apex-.+-baremetal-.+'
314 - description-setter:
315 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
317 name: 'Baremetal Deploy'
318 condition: SUCCESSFUL
320 - name: 'apex-deploy-baremetal-{scenario_stream}'
321 node-parameters: true
322 current-parameters: true
323 predefined-parameters: |
325 GERRIT_BRANCH=$GERRIT_BRANCH
327 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
328 kill-phase-on: FAILURE
332 name: 'OPNFV Test Suite'
334 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
335 node-parameters: true
336 current-parameters: false
337 predefined-parameters:
338 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
346 !include-raw-escape: ./update-build-result.groovy
350 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
352 project-type: 'multijob'
357 - '{project}-defaults'
358 - '{project}-baremetal-{scenario_stream}-defaults'
363 gs-pathname: '{gs-pathname}'
365 name: DEPLOY_SCENARIO
366 default: '{scenario}'
367 description: "Scenario to deploy with."
372 use-build-blocker: true
377 - 'apex-.*-promote.*'
379 - 'apex-testsuite-.+-baremetal-.+'
386 - description-setter:
387 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
392 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
393 node-parameters: true
394 current-parameters: false
395 predefined-parameters:
396 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
404 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
405 node-parameters: true
406 current-parameters: false
407 predefined-parameters:
408 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
416 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
417 node-parameters: true
418 current-parameters: false
419 predefined-parameters:
420 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
422 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|nosdn-kvm|odl_l3-fdio)-ha/"
429 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
430 node-parameters: true
431 current-parameters: false
432 predefined-parameters:
433 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
434 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
438 # Build status is always success due conditional plugin prefetching
439 # build status before multijob phases execute
440 # - conditional-step:
441 # condition-kind: current-status
442 # condition-worst: SUCCESS
443 # condtion-best: SUCCESS
444 # on-evaluation-failure: mark-unstable
446 # - shell: 'echo "Tests Passed"'
449 name: 'apex-daily-{stream}'
451 # Job template for daily build
453 # Required Variables:
454 # stream: branch with - in place of / (eg. stable)
455 # branch: branch (eg. stable)
456 project-type: 'multijob'
458 node: '{baremetal-slave}'
460 disabled: '{obj:disable_daily}'
466 - '{project}-defaults'
467 - '{project}-baremetal-{stream}-defaults'
472 gs-pathname: '{gs-pathname}'
477 use-build-blocker: true
488 condition: SUCCESSFUL
490 - name: 'apex-build-{stream}'
491 current-parameters: false
492 predefined-parameters: |
493 GERRIT_BRANCH=$GERRIT_BRANCH
495 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
496 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
497 node-parameters: true
498 kill-phase-on: FAILURE
502 name: 'Verify and upload ISO'
503 condition: SUCCESSFUL
505 - name: 'apex-verify-iso-{stream}'
506 current-parameters: false
507 predefined-parameters: |
508 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
509 GERRIT_BRANCH=$GERRIT_BRANCH
511 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
512 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
513 node-parameters: true
514 kill-phase-on: FAILURE
517 - apex-builder-{stream}
521 name: 'apex-create-snapshot'
523 # Job template for clean
525 # Required Variables:
526 # stream: branch with - in place of / (eg. stable)
532 !include-raw-escape: ./apex-snapshot-create.sh
536 name: 'apex-upload-snapshot'
538 # Job template for clean
540 # Required Variables:
541 # stream: branch with - in place of / (eg. stable)
547 properties-content: ARTIFACT_TYPE=snapshot
548 - 'apex-upload-artifact'
552 name: 'apex-csit-promote-daily-{stream}'
554 # Job template for promoting CSIT Snapshots
556 # Required Variables:
557 # stream: branch with - in place of / (eg. stable)
558 # branch: branch (eg. stable)
559 node: '{virtual-slave}'
560 project-type: 'multijob'
571 gs-pathname: '{gs-pathname}'
575 use-build-blocker: true
584 - timed: '0 12 * * 0'
589 condition: SUCCESSFUL
591 - name: 'apex-build-{stream}'
592 current-parameters: false
593 predefined-parameters: |
594 GERRIT_BRANCH=$GERRIT_BRANCH
595 GERRIT_REFSPEC=$GERRIT_REFSPEC
596 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
597 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
598 node-parameters: false
599 kill-phase-on: FAILURE
604 condition: SUCCESSFUL
606 - name: 'apex-deploy-virtual-{stream}'
607 current-parameters: false
608 predefined-parameters: |
609 DEPLOY_SCENARIO=os-odl_l3-csit-noha
611 GERRIT_BRANCH=$GERRIT_BRANCH
612 GERRIT_REFSPEC=$GERRIT_REFSPEC
613 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
614 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
616 node-parameters: true
617 kill-phase-on: FAILURE
622 condition: SUCCESSFUL
624 - name: 'functest-apex-virtual-suite-{stream}'
625 current-parameters: false
626 predefined-parameters: |
627 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
628 FUNCTEST_SUITE_NAME=tempest_smoke_serial
629 GERRIT_BRANCH=$GERRIT_BRANCH
630 GERRIT_REFSPEC=$GERRIT_REFSPEC
631 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
632 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
633 node-parameters: true
634 kill-phase-on: FAILURE
638 name: create snapshot
639 condition: SUCCESSFUL
641 - name: 'apex-create-snapshot'
642 current-parameters: false
643 predefined-parameters: |
645 node-parameters: true
646 kill-phase-on: FAILURE
650 name: upload snapshot
651 condition: SUCCESSFUL
653 - name: 'apex-upload-snapshot'
654 current-parameters: false
655 predefined-parameters: |
657 node-parameters: true
658 kill-phase-on: FAILURE
664 name: 'apex-fdio-promote-daily-{stream}'
666 # Job template for promoting CSIT Snapshots
668 # Required Variables:
669 # stream: branch with - in place of / (eg. stable)
670 # branch: branch (eg. stable)
671 node: '{virtual-slave}'
672 project-type: 'multijob'
683 gs-pathname: '{gs-pathname}'
687 use-build-blocker: true
698 condition: SUCCESSFUL
700 - name: 'apex-build-{stream}'
701 current-parameters: false
702 predefined-parameters: |
703 GERRIT_BRANCH=$GERRIT_BRANCH
704 GERRIT_REFSPEC=$GERRIT_REFSPEC
705 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
706 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
707 node-parameters: false
708 kill-phase-on: FAILURE
713 condition: SUCCESSFUL
715 - name: 'apex-deploy-virtual-{stream}'
716 current-parameters: false
717 predefined-parameters: |
718 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
720 GERRIT_BRANCH=$GERRIT_BRANCH
721 GERRIT_REFSPEC=$GERRIT_REFSPEC
722 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
723 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
725 node-parameters: true
726 kill-phase-on: FAILURE
730 name: create snapshot
731 condition: SUCCESSFUL
733 - name: 'apex-create-snapshot'
734 current-parameters: false
735 predefined-parameters: |
737 node-parameters: true
738 kill-phase-on: FAILURE
742 name: upload snapshot
743 condition: SUCCESSFUL
745 - name: 'apex-upload-snapshot'
746 current-parameters: false
747 predefined-parameters: |
749 node-parameters: true
750 kill-phase-on: FAILURE
756 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
758 project-type: 'multijob'
771 - '{project}-defaults'
776 gs-pathname: '{gs-pathname}'
778 name: DEPLOY_SCENARIO
779 default: 'os-nosdn-nofeature-ha'
780 description: "Scenario to deploy with."
783 default: https://gerrit.opnfv.org/gerrit/$PROJECT
784 description: 'Git URL to use on this Jenkins Slave'
787 default: /root/.ssh/id_rsa
788 description: 'SSH key to use for Apex'
793 use-build-blocker: true
798 - 'apex-.*-promote.*'
800 - 'apex-.+-baremetal-.+'
807 - description-setter:
808 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
810 name: 'Baremetal Deploy'
811 condition: SUCCESSFUL
813 - name: 'apex-deploy-baremetal-{stream}'
814 node-parameters: true
815 current-parameters: true
816 predefined-parameters: |
818 GERRIT_BRANCH=$GERRIT_BRANCH
820 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
821 kill-phase-on: FAILURE
828 - name: 'yardstick-apex-baremetal-daily-{stream}'
829 node-parameters: true
830 current-parameters: false
831 predefined-parameters:
832 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
837 # Dovetail Danube test job
839 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
841 project-type: 'multijob'
848 - '{project}-defaults'
851 branch: 'stable/danube'
853 gs-pathname: '/danube'
855 name: DEPLOY_SCENARIO
856 default: 'os-nosdn-nofeature-ha'
857 description: "Scenario to deploy with."
862 use-build-blocker: true
867 - 'apex-.*-promote.*'
871 - timed: '' # '0 1 * * *'
874 - description-setter:
875 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
877 name: 'Baremetal Deploy'
878 condition: SUCCESSFUL
880 - name: 'apex-deploy-baremetal-danube'
881 node-parameters: true
882 current-parameters: true
883 predefined-parameters: |
885 GERRIT_BRANCH=$GERRIT_BRANCH
887 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
888 kill-phase-on: FAILURE
895 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
896 node-parameters: true
897 current-parameters: false
898 predefined-parameters:
899 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
904 ########################
906 ########################
913 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
915 name: ARTIFACT_VERSION
917 description: "Artifact version type"
919 name: BUILD_DIRECTORY
920 default: $WORKSPACE/.build
921 description: "Directory where the build artifact will be located upon the completion of the build."
923 name: CACHE_DIRECTORY
924 default: $HOME/opnfv/apex-cache{gs-pathname}
925 description: "Directory where the cache to be used during the build is located."
926 # yamllint disable rule:line-length
929 default: https://gerrit.opnfv.org/gerrit/$PROJECT
930 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
931 # yamllint enable rule:line-length
934 default: '{gs-pathname}'
935 description: "Version directory where opnfv artifacts are stored in gs repository"
938 default: $GS_BASE{gs-pathname}
939 description: "URL to Google Storage."
943 description: "Flag to know if we should promote/upload snapshot artifacts."
945 ########################
947 ########################
948 {% for stream in scenarios %}
949 # {{ stream }} Builder
951 name: apex-builder-{{ stream }}
954 name: Baremetal Deploy and Test Phase
955 condition: SUCCESSFUL
957 {%- for scenario in scenarios[stream] %}
958 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
959 node-parameters: false
960 current-parameters: false
961 predefined-parameters: |
970 name: 'apex-upload-artifact'
973 !include-raw: ./apex-upload-artifact.sh
976 name: 'apex-download-artifact'
979 !include-raw: ./apex-download-artifact.sh
985 !include-raw: ./apex-deploy.sh
987 #######################
989 ########################
996 name: 'apex-euphrates'
998 - timed: '0 12 * * *'
1003 - timed: '0 3 1 1 7'