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'
198 - '{project}-defaults'
199 - '{project}-virtual-{stream}-defaults'
204 gs-pathname: '{gs-pathname}'
206 name: DEPLOY_SCENARIO
207 default: '{verify-scenario}'
208 description: "Scenario to deploy with."
210 name: ARTIFACT_VERSION
212 description: "Used for overriding the ARTIFACT_VERSION"
217 use-build-blocker: true
221 - 'apex-.*-promote.*'
224 - 'apex-verify-gate-.*'
231 - description-setter:
232 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
235 condition: SUCCESSFUL
237 - name: 'apex-deploy-virtual-{stream}'
238 current-parameters: false
239 predefined-parameters: |
240 ARTIFACT_VERSION=$ARTIFACT_VERSION
241 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
243 GERRIT_BRANCH=$GERRIT_BRANCH
244 GERRIT_REFSPEC=$GERRIT_REFSPEC
245 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
246 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
247 node-parameters: true
248 kill-phase-on: FAILURE
253 condition: SUCCESSFUL
255 - name: 'functest-apex-virtual-suite-{stream}'
256 current-parameters: false
257 predefined-parameters: |
258 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
259 FUNCTEST_SUITE_NAME=healthcheck
260 GERRIT_BRANCH=$GERRIT_BRANCH
261 GERRIT_REFSPEC=$GERRIT_REFSPEC
262 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
263 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
264 node-parameters: true
269 # Baremetal Deploy and Test
271 name: 'apex-{scenario}-baremetal-{scenario_stream}'
273 project-type: 'multijob'
281 - '{project}-defaults'
282 - '{project}-baremetal-{scenario_stream}-defaults'
287 gs-pathname: '{gs-pathname}'
289 name: DEPLOY_SCENARIO
290 default: '{scenario}'
291 description: "Scenario to deploy with."
296 use-build-blocker: true
301 - 'apex-.*-promote.*'
303 - 'apex-.+-baremetal-.+'
310 - description-setter:
311 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
313 name: 'Baremetal Deploy'
314 condition: SUCCESSFUL
316 - name: 'apex-deploy-baremetal-{scenario_stream}'
317 node-parameters: true
318 current-parameters: true
319 predefined-parameters: |
321 GERRIT_BRANCH=$GERRIT_BRANCH
323 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
324 kill-phase-on: FAILURE
328 name: 'OPNFV Test Suite'
330 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
331 node-parameters: true
332 current-parameters: false
333 predefined-parameters:
334 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
342 !include-raw-escape: ./update-build-result.groovy
346 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
348 project-type: 'multijob'
353 - '{project}-defaults'
354 - '{project}-baremetal-{scenario_stream}-defaults'
359 gs-pathname: '{gs-pathname}'
361 name: DEPLOY_SCENARIO
362 default: '{scenario}'
363 description: "Scenario to deploy with."
368 use-build-blocker: true
373 - 'apex-.*-promote.*'
375 - 'apex-testsuite-.+-baremetal-.+'
382 - description-setter:
383 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
388 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
389 node-parameters: true
390 current-parameters: false
391 predefined-parameters:
392 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
400 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
401 node-parameters: true
402 current-parameters: false
403 predefined-parameters:
404 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
412 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
413 node-parameters: true
414 current-parameters: false
415 predefined-parameters:
416 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
418 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
425 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
426 node-parameters: true
427 current-parameters: false
428 predefined-parameters:
429 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
430 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
434 # Build status is always success due conditional plugin prefetching
435 # build status before multijob phases execute
436 # - conditional-step:
437 # condition-kind: current-status
438 # condition-worst: SUCCESS
439 # condtion-best: SUCCESS
440 # on-evaluation-failure: mark-unstable
442 # - shell: 'echo "Tests Passed"'
445 name: 'apex-daily-{stream}'
447 # Job template for daily build
449 # Required Variables:
450 # stream: branch with - in place of / (eg. stable)
451 # branch: branch (eg. stable)
452 project-type: 'multijob'
454 disabled: '{obj:disable_daily}'
460 - '{project}-defaults'
461 - '{project}-baremetal-{stream}-defaults'
466 gs-pathname: '{gs-pathname}'
471 use-build-blocker: true
482 condition: SUCCESSFUL
484 - name: 'apex-build-{stream}'
485 current-parameters: false
486 predefined-parameters: |
487 GERRIT_BRANCH=$GERRIT_BRANCH
489 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
490 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
491 node-parameters: true
492 kill-phase-on: FAILURE
496 name: 'Verify and upload ISO'
497 condition: SUCCESSFUL
499 - name: 'apex-verify-iso-{stream}'
500 current-parameters: false
501 predefined-parameters: |
502 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
503 GERRIT_BRANCH=$GERRIT_BRANCH
505 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
506 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
507 node-parameters: true
508 kill-phase-on: FAILURE
511 - apex-builder-{stream}
515 name: 'apex-create-snapshot'
517 # Job template for clean
519 # Required Variables:
520 # stream: branch with - in place of / (eg. stable)
526 !include-raw-escape: ./apex-snapshot-create.sh
530 name: 'apex-upload-snapshot'
532 # Job template for clean
534 # Required Variables:
535 # stream: branch with - in place of / (eg. stable)
541 properties-content: ARTIFACT_TYPE=snapshot
542 - 'apex-upload-artifact'
546 name: 'apex-csit-promote-daily-{stream}'
548 # Job template for promoting CSIT Snapshots
550 # Required Variables:
551 # stream: branch with - in place of / (eg. stable)
552 # branch: branch (eg. stable)
553 node: '{virtual-slave}'
554 project-type: 'multijob'
565 gs-pathname: '{gs-pathname}'
569 use-build-blocker: true
578 - timed: '0 12 * * 0'
583 condition: SUCCESSFUL
585 - name: 'apex-build-{stream}'
586 current-parameters: false
587 predefined-parameters: |
588 GERRIT_BRANCH=$GERRIT_BRANCH
589 GERRIT_REFSPEC=$GERRIT_REFSPEC
590 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
591 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
592 node-parameters: false
593 kill-phase-on: FAILURE
598 condition: SUCCESSFUL
600 - name: 'apex-deploy-virtual-{stream}'
601 current-parameters: false
602 predefined-parameters: |
603 DEPLOY_SCENARIO=os-odl_l3-csit-noha
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
610 node-parameters: true
611 kill-phase-on: FAILURE
616 condition: SUCCESSFUL
618 - name: 'functest-apex-virtual-suite-{stream}'
619 current-parameters: false
620 predefined-parameters: |
621 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
622 FUNCTEST_SUITE_NAME=tempest_smoke_serial
623 GERRIT_BRANCH=$GERRIT_BRANCH
624 GERRIT_REFSPEC=$GERRIT_REFSPEC
625 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
626 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
627 node-parameters: true
628 kill-phase-on: FAILURE
632 name: create snapshot
633 condition: SUCCESSFUL
635 - name: 'apex-create-snapshot'
636 current-parameters: false
637 predefined-parameters: |
639 node-parameters: true
640 kill-phase-on: FAILURE
644 name: upload snapshot
645 condition: SUCCESSFUL
647 - name: 'apex-upload-snapshot'
648 current-parameters: false
649 predefined-parameters: |
651 node-parameters: true
652 kill-phase-on: FAILURE
658 name: 'apex-fdio-promote-daily-{stream}'
660 # Job template for promoting CSIT Snapshots
662 # Required Variables:
663 # stream: branch with - in place of / (eg. stable)
664 # branch: branch (eg. stable)
665 node: '{virtual-slave}'
666 project-type: 'multijob'
677 gs-pathname: '{gs-pathname}'
681 use-build-blocker: true
692 condition: SUCCESSFUL
694 - name: 'apex-build-{stream}'
695 current-parameters: false
696 predefined-parameters: |
697 GERRIT_BRANCH=$GERRIT_BRANCH
698 GERRIT_REFSPEC=$GERRIT_REFSPEC
699 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
700 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
701 node-parameters: false
702 kill-phase-on: FAILURE
707 condition: SUCCESSFUL
709 - name: 'apex-deploy-virtual-{stream}'
710 current-parameters: false
711 predefined-parameters: |
712 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
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
719 node-parameters: true
720 kill-phase-on: FAILURE
724 name: create snapshot
725 condition: SUCCESSFUL
727 - name: 'apex-create-snapshot'
728 current-parameters: false
729 predefined-parameters: |
731 node-parameters: true
732 kill-phase-on: FAILURE
736 name: upload snapshot
737 condition: SUCCESSFUL
739 - name: 'apex-upload-snapshot'
740 current-parameters: false
741 predefined-parameters: |
743 node-parameters: true
744 kill-phase-on: FAILURE
750 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
752 project-type: 'multijob'
765 - '{project}-defaults'
770 gs-pathname: '{gs-pathname}'
772 name: DEPLOY_SCENARIO
773 default: 'os-nosdn-nofeature-ha'
774 description: "Scenario to deploy with."
777 default: https://gerrit.opnfv.org/gerrit/$PROJECT
778 description: 'Git URL to use on this Jenkins Slave'
781 default: /root/.ssh/id_rsa
782 description: 'SSH key to use for Apex'
787 use-build-blocker: true
792 - 'apex-.*-promote.*'
794 - 'apex-.+-baremetal-.+'
801 - description-setter:
802 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
804 name: 'Baremetal Deploy'
805 condition: SUCCESSFUL
807 - name: 'apex-deploy-baremetal-{stream}'
808 node-parameters: true
809 current-parameters: true
810 predefined-parameters: |
812 GERRIT_BRANCH=$GERRIT_BRANCH
814 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
815 kill-phase-on: FAILURE
822 - name: 'yardstick-apex-baremetal-daily-{stream}'
823 node-parameters: true
824 current-parameters: false
825 predefined-parameters:
826 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
831 # Dovetail Danube test job
833 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
835 project-type: 'multijob'
842 - '{project}-defaults'
845 branch: 'stable/danube'
847 gs-pathname: '/danube'
849 name: DEPLOY_SCENARIO
850 default: 'os-nosdn-nofeature-ha'
851 description: "Scenario to deploy with."
856 use-build-blocker: true
861 - 'apex-.*-promote.*'
865 - timed: '' # '0 1 * * *'
868 - description-setter:
869 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
871 name: 'Baremetal Deploy'
872 condition: SUCCESSFUL
874 - name: 'apex-deploy-baremetal-danube'
875 node-parameters: true
876 current-parameters: true
877 predefined-parameters: |
879 GERRIT_BRANCH=$GERRIT_BRANCH
881 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
882 kill-phase-on: FAILURE
889 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
890 node-parameters: true
891 current-parameters: false
892 predefined-parameters:
893 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
898 ########################
900 ########################
907 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
909 name: ARTIFACT_VERSION
911 description: "Artifact version type"
913 name: BUILD_DIRECTORY
914 default: $WORKSPACE/.build
915 description: "Directory where the build artifact will be located upon the completion of the build."
917 name: CACHE_DIRECTORY
918 default: $HOME/opnfv/apex-cache{gs-pathname}
919 description: "Directory where the cache to be used during the build is located."
920 # yamllint disable rule:line-length
923 default: https://gerrit.opnfv.org/gerrit/$PROJECT
924 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
925 # yamllint enable rule:line-length
928 default: '{gs-pathname}'
929 description: "Version directory where opnfv artifacts are stored in gs repository"
932 default: $GS_BASE{gs-pathname}
933 description: "URL to Google Storage."
937 description: "Flag to know if we should promote/upload snapshot artifacts."
939 ########################
941 ########################
942 {% for stream in scenarios %}
943 # {{ stream }} Builder
945 name: apex-builder-{{ stream }}
948 name: Baremetal Deploy and Test Phase
949 condition: SUCCESSFUL
951 {%- for scenario in scenarios[stream] %}
952 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
953 node-parameters: false
954 current-parameters: false
955 predefined-parameters: |
964 name: 'apex-upload-artifact'
967 !include-raw: ./apex-upload-artifact.sh
970 name: 'apex-download-artifact'
973 !include-raw: ./apex-download-artifact.sh
979 !include-raw: ./apex-deploy.sh
981 #######################
983 ########################
987 - timed: '0 0 1-31/2 * *'
990 name: 'apex-euphrates'
992 - timed: '0 0 2-30/2 * *'