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 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
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|nosdn-kvm|odl_l3-fdio)-ha/"
427 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
428 node-parameters: true
429 current-parameters: false
430 predefined-parameters:
431 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
432 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
436 # Build status is always success due conditional plugin prefetching
437 # build status before multijob phases execute
438 # - conditional-step:
439 # condition-kind: current-status
440 # condition-worst: SUCCESS
441 # condtion-best: SUCCESS
442 # on-evaluation-failure: mark-unstable
444 # - shell: 'echo "Tests Passed"'
447 name: 'apex-daily-{stream}'
449 # Job template for daily build
451 # Required Variables:
452 # stream: branch with - in place of / (eg. stable)
453 # branch: branch (eg. stable)
454 project-type: 'multijob'
456 node: '{baremetal-slave}'
458 disabled: '{obj:disable_daily}'
464 - '{project}-defaults'
465 - '{project}-baremetal-{stream}-defaults'
470 gs-pathname: '{gs-pathname}'
475 use-build-blocker: true
486 condition: SUCCESSFUL
488 - name: 'apex-build-{stream}'
489 current-parameters: false
490 predefined-parameters: |
491 GERRIT_BRANCH=$GERRIT_BRANCH
493 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
494 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
495 node-parameters: true
496 kill-phase-on: FAILURE
500 name: 'Verify and upload ISO'
501 condition: SUCCESSFUL
503 - name: 'apex-verify-iso-{stream}'
504 current-parameters: false
505 predefined-parameters: |
506 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
507 GERRIT_BRANCH=$GERRIT_BRANCH
509 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
510 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
511 node-parameters: true
512 kill-phase-on: FAILURE
515 - apex-builder-{stream}
519 name: 'apex-create-snapshot'
521 # Job template for clean
523 # Required Variables:
524 # stream: branch with - in place of / (eg. stable)
530 !include-raw-escape: ./apex-snapshot-create.sh
534 name: 'apex-upload-snapshot'
536 # Job template for clean
538 # Required Variables:
539 # stream: branch with - in place of / (eg. stable)
545 properties-content: ARTIFACT_TYPE=snapshot
546 - 'apex-upload-artifact'
550 name: 'apex-csit-promote-daily-{stream}'
552 # Job template for promoting CSIT Snapshots
554 # Required Variables:
555 # stream: branch with - in place of / (eg. stable)
556 # branch: branch (eg. stable)
557 node: '{virtual-slave}'
558 project-type: 'multijob'
569 gs-pathname: '{gs-pathname}'
573 use-build-blocker: true
582 - timed: '0 12 * * 0'
587 condition: SUCCESSFUL
589 - name: 'apex-build-{stream}'
590 current-parameters: false
591 predefined-parameters: |
592 GERRIT_BRANCH=$GERRIT_BRANCH
593 GERRIT_REFSPEC=$GERRIT_REFSPEC
594 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
595 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
596 node-parameters: false
597 kill-phase-on: FAILURE
602 condition: SUCCESSFUL
604 - name: 'apex-deploy-virtual-{stream}'
605 current-parameters: false
606 predefined-parameters: |
607 DEPLOY_SCENARIO=os-odl_l3-csit-noha
609 GERRIT_BRANCH=$GERRIT_BRANCH
610 GERRIT_REFSPEC=$GERRIT_REFSPEC
611 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
612 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
614 node-parameters: true
615 kill-phase-on: FAILURE
620 condition: SUCCESSFUL
622 - name: 'functest-apex-virtual-suite-{stream}'
623 current-parameters: false
624 predefined-parameters: |
625 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
626 FUNCTEST_SUITE_NAME=tempest_smoke_serial
627 GERRIT_BRANCH=$GERRIT_BRANCH
628 GERRIT_REFSPEC=$GERRIT_REFSPEC
629 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
630 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
631 node-parameters: true
632 kill-phase-on: FAILURE
636 name: create snapshot
637 condition: SUCCESSFUL
639 - name: 'apex-create-snapshot'
640 current-parameters: false
641 predefined-parameters: |
643 node-parameters: true
644 kill-phase-on: FAILURE
648 name: upload snapshot
649 condition: SUCCESSFUL
651 - name: 'apex-upload-snapshot'
652 current-parameters: false
653 predefined-parameters: |
655 node-parameters: true
656 kill-phase-on: FAILURE
662 name: 'apex-fdio-promote-daily-{stream}'
664 # Job template for promoting CSIT Snapshots
666 # Required Variables:
667 # stream: branch with - in place of / (eg. stable)
668 # branch: branch (eg. stable)
669 node: '{virtual-slave}'
670 project-type: 'multijob'
681 gs-pathname: '{gs-pathname}'
685 use-build-blocker: true
696 condition: SUCCESSFUL
698 - name: 'apex-build-{stream}'
699 current-parameters: false
700 predefined-parameters: |
701 GERRIT_BRANCH=$GERRIT_BRANCH
702 GERRIT_REFSPEC=$GERRIT_REFSPEC
703 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
704 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
705 node-parameters: false
706 kill-phase-on: FAILURE
711 condition: SUCCESSFUL
713 - name: 'apex-deploy-virtual-{stream}'
714 current-parameters: false
715 predefined-parameters: |
716 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
718 GERRIT_BRANCH=$GERRIT_BRANCH
719 GERRIT_REFSPEC=$GERRIT_REFSPEC
720 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
721 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
723 node-parameters: true
724 kill-phase-on: FAILURE
728 name: create snapshot
729 condition: SUCCESSFUL
731 - name: 'apex-create-snapshot'
732 current-parameters: false
733 predefined-parameters: |
735 node-parameters: true
736 kill-phase-on: FAILURE
740 name: upload snapshot
741 condition: SUCCESSFUL
743 - name: 'apex-upload-snapshot'
744 current-parameters: false
745 predefined-parameters: |
747 node-parameters: true
748 kill-phase-on: FAILURE
754 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
756 project-type: 'multijob'
769 - '{project}-defaults'
774 gs-pathname: '{gs-pathname}'
776 name: DEPLOY_SCENARIO
777 default: 'os-nosdn-nofeature-ha'
778 description: "Scenario to deploy with."
781 default: https://gerrit.opnfv.org/gerrit/$PROJECT
782 description: 'Git URL to use on this Jenkins Slave'
785 default: /root/.ssh/id_rsa
786 description: 'SSH key to use for Apex'
791 use-build-blocker: true
796 - 'apex-.*-promote.*'
798 - 'apex-.+-baremetal-.+'
805 - description-setter:
806 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
808 name: 'Baremetal Deploy'
809 condition: SUCCESSFUL
811 - name: 'apex-deploy-baremetal-{stream}'
812 node-parameters: true
813 current-parameters: true
814 predefined-parameters: |
816 GERRIT_BRANCH=$GERRIT_BRANCH
818 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
819 kill-phase-on: FAILURE
826 - name: 'yardstick-apex-baremetal-daily-{stream}'
827 node-parameters: true
828 current-parameters: false
829 predefined-parameters:
830 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
835 # Dovetail Danube test job
837 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
839 project-type: 'multijob'
846 - '{project}-defaults'
849 branch: 'stable/danube'
851 gs-pathname: '/danube'
853 name: DEPLOY_SCENARIO
854 default: 'os-nosdn-nofeature-ha'
855 description: "Scenario to deploy with."
860 use-build-blocker: true
865 - 'apex-.*-promote.*'
869 - timed: '' # '0 1 * * *'
872 - description-setter:
873 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
875 name: 'Baremetal Deploy'
876 condition: SUCCESSFUL
878 - name: 'apex-deploy-baremetal-danube'
879 node-parameters: true
880 current-parameters: true
881 predefined-parameters: |
883 GERRIT_BRANCH=$GERRIT_BRANCH
885 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
886 kill-phase-on: FAILURE
893 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
894 node-parameters: true
895 current-parameters: false
896 predefined-parameters:
897 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
902 ########################
904 ########################
911 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
913 name: ARTIFACT_VERSION
915 description: "Artifact version type"
917 name: BUILD_DIRECTORY
918 default: $WORKSPACE/.build
919 description: "Directory where the build artifact will be located upon the completion of the build."
921 name: CACHE_DIRECTORY
922 default: $HOME/opnfv/apex-cache{gs-pathname}
923 description: "Directory where the cache to be used during the build is located."
924 # yamllint disable rule:line-length
927 default: https://gerrit.opnfv.org/gerrit/$PROJECT
928 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
929 # yamllint enable rule:line-length
932 default: '{gs-pathname}'
933 description: "Version directory where opnfv artifacts are stored in gs repository"
936 default: $GS_BASE{gs-pathname}
937 description: "URL to Google Storage."
941 description: "Flag to know if we should promote/upload snapshot artifacts."
943 ########################
945 ########################
946 {% for stream in scenarios %}
947 # {{ stream }} Builder
949 name: apex-builder-{{ stream }}
952 name: Baremetal Deploy and Test Phase
953 condition: SUCCESSFUL
955 {%- for scenario in scenarios[stream] %}
956 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
957 node-parameters: false
958 current-parameters: false
959 predefined-parameters: |
968 name: 'apex-upload-artifact'
971 !include-raw: ./apex-upload-artifact.sh
974 name: 'apex-download-artifact'
977 !include-raw: ./apex-download-artifact.sh
983 !include-raw: ./apex-deploy.sh
985 #######################
987 ########################
994 name: 'apex-euphrates'
996 - timed: '0 12 * * *'
1001 - timed: '0 3 1 1 7'