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
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/"
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 disabled: '{obj:disable_daily}'
462 - '{project}-defaults'
463 - '{project}-baremetal-{stream}-defaults'
468 gs-pathname: '{gs-pathname}'
473 use-build-blocker: true
484 condition: SUCCESSFUL
486 - name: 'apex-build-{stream}'
487 current-parameters: false
488 predefined-parameters: |
489 GERRIT_BRANCH=$GERRIT_BRANCH
491 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
492 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
493 node-parameters: true
494 kill-phase-on: FAILURE
498 name: 'Verify and upload ISO'
499 condition: SUCCESSFUL
501 - name: 'apex-verify-iso-{stream}'
502 current-parameters: false
503 predefined-parameters: |
504 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
505 GERRIT_BRANCH=$GERRIT_BRANCH
507 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
508 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
509 node-parameters: true
510 kill-phase-on: FAILURE
513 - apex-builder-{stream}
517 name: 'apex-create-snapshot'
519 # Job template for clean
521 # Required Variables:
522 # stream: branch with - in place of / (eg. stable)
528 !include-raw-escape: ./apex-snapshot-create.sh
532 name: 'apex-upload-snapshot'
534 # Job template for clean
536 # Required Variables:
537 # stream: branch with - in place of / (eg. stable)
543 properties-content: ARTIFACT_TYPE=snapshot
544 - 'apex-upload-artifact'
548 name: 'apex-csit-promote-daily-{stream}'
550 # Job template for promoting CSIT Snapshots
552 # Required Variables:
553 # stream: branch with - in place of / (eg. stable)
554 # branch: branch (eg. stable)
555 node: '{virtual-slave}'
556 project-type: 'multijob'
567 gs-pathname: '{gs-pathname}'
571 use-build-blocker: true
580 - timed: '0 12 * * 0'
585 condition: SUCCESSFUL
587 - name: 'apex-build-{stream}'
588 current-parameters: false
589 predefined-parameters: |
590 GERRIT_BRANCH=$GERRIT_BRANCH
591 GERRIT_REFSPEC=$GERRIT_REFSPEC
592 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
593 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
594 node-parameters: false
595 kill-phase-on: FAILURE
600 condition: SUCCESSFUL
602 - name: 'apex-deploy-virtual-{stream}'
603 current-parameters: false
604 predefined-parameters: |
605 DEPLOY_SCENARIO=os-odl_l3-csit-noha
607 GERRIT_BRANCH=$GERRIT_BRANCH
608 GERRIT_REFSPEC=$GERRIT_REFSPEC
609 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
610 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
612 node-parameters: true
613 kill-phase-on: FAILURE
618 condition: SUCCESSFUL
620 - name: 'functest-apex-virtual-suite-{stream}'
621 current-parameters: false
622 predefined-parameters: |
623 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
624 FUNCTEST_SUITE_NAME=tempest_smoke_serial
625 GERRIT_BRANCH=$GERRIT_BRANCH
626 GERRIT_REFSPEC=$GERRIT_REFSPEC
627 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
628 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
629 node-parameters: true
630 kill-phase-on: FAILURE
634 name: create snapshot
635 condition: SUCCESSFUL
637 - name: 'apex-create-snapshot'
638 current-parameters: false
639 predefined-parameters: |
641 node-parameters: true
642 kill-phase-on: FAILURE
646 name: upload snapshot
647 condition: SUCCESSFUL
649 - name: 'apex-upload-snapshot'
650 current-parameters: false
651 predefined-parameters: |
653 node-parameters: true
654 kill-phase-on: FAILURE
660 name: 'apex-fdio-promote-daily-{stream}'
662 # Job template for promoting CSIT Snapshots
664 # Required Variables:
665 # stream: branch with - in place of / (eg. stable)
666 # branch: branch (eg. stable)
667 node: '{virtual-slave}'
668 project-type: 'multijob'
679 gs-pathname: '{gs-pathname}'
683 use-build-blocker: true
694 condition: SUCCESSFUL
696 - name: 'apex-build-{stream}'
697 current-parameters: false
698 predefined-parameters: |
699 GERRIT_BRANCH=$GERRIT_BRANCH
700 GERRIT_REFSPEC=$GERRIT_REFSPEC
701 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
702 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
703 node-parameters: false
704 kill-phase-on: FAILURE
709 condition: SUCCESSFUL
711 - name: 'apex-deploy-virtual-{stream}'
712 current-parameters: false
713 predefined-parameters: |
714 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
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
721 node-parameters: true
722 kill-phase-on: FAILURE
726 name: create snapshot
727 condition: SUCCESSFUL
729 - name: 'apex-create-snapshot'
730 current-parameters: false
731 predefined-parameters: |
733 node-parameters: true
734 kill-phase-on: FAILURE
738 name: upload snapshot
739 condition: SUCCESSFUL
741 - name: 'apex-upload-snapshot'
742 current-parameters: false
743 predefined-parameters: |
745 node-parameters: true
746 kill-phase-on: FAILURE
752 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
754 project-type: 'multijob'
767 - '{project}-defaults'
772 gs-pathname: '{gs-pathname}'
774 name: DEPLOY_SCENARIO
775 default: 'os-nosdn-nofeature-ha'
776 description: "Scenario to deploy with."
779 default: https://gerrit.opnfv.org/gerrit/$PROJECT
780 description: 'Git URL to use on this Jenkins Slave'
783 default: /root/.ssh/id_rsa
784 description: 'SSH key to use for Apex'
789 use-build-blocker: true
794 - 'apex-.*-promote.*'
796 - 'apex-.+-baremetal-.+'
803 - description-setter:
804 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
806 name: 'Baremetal Deploy'
807 condition: SUCCESSFUL
809 - name: 'apex-deploy-baremetal-{stream}'
810 node-parameters: true
811 current-parameters: true
812 predefined-parameters: |
814 GERRIT_BRANCH=$GERRIT_BRANCH
816 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
817 kill-phase-on: FAILURE
824 - name: 'yardstick-apex-baremetal-daily-{stream}'
825 node-parameters: true
826 current-parameters: false
827 predefined-parameters:
828 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
833 # Dovetail Danube test job
835 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
837 project-type: 'multijob'
844 - '{project}-defaults'
847 branch: 'stable/danube'
849 gs-pathname: '/danube'
851 name: DEPLOY_SCENARIO
852 default: 'os-nosdn-nofeature-ha'
853 description: "Scenario to deploy with."
858 use-build-blocker: true
863 - 'apex-.*-promote.*'
867 - timed: '' # '0 1 * * *'
870 - description-setter:
871 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
873 name: 'Baremetal Deploy'
874 condition: SUCCESSFUL
876 - name: 'apex-deploy-baremetal-danube'
877 node-parameters: true
878 current-parameters: true
879 predefined-parameters: |
881 GERRIT_BRANCH=$GERRIT_BRANCH
883 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
884 kill-phase-on: FAILURE
891 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
892 node-parameters: true
893 current-parameters: false
894 predefined-parameters:
895 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
900 ########################
902 ########################
909 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
911 name: ARTIFACT_VERSION
913 description: "Artifact version type"
915 name: BUILD_DIRECTORY
916 default: $WORKSPACE/.build
917 description: "Directory where the build artifact will be located upon the completion of the build."
919 name: CACHE_DIRECTORY
920 default: $HOME/opnfv/apex-cache{gs-pathname}
921 description: "Directory where the cache to be used during the build is located."
922 # yamllint disable rule:line-length
925 default: https://gerrit.opnfv.org/gerrit/$PROJECT
926 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
927 # yamllint enable rule:line-length
930 default: '{gs-pathname}'
931 description: "Version directory where opnfv artifacts are stored in gs repository"
934 default: $GS_BASE{gs-pathname}
935 description: "URL to Google Storage."
939 description: "Flag to know if we should promote/upload snapshot artifacts."
941 ########################
943 ########################
944 {% for stream in scenarios %}
945 # {{ stream }} Builder
947 name: apex-builder-{{ stream }}
950 name: Baremetal Deploy and Test Phase
951 condition: SUCCESSFUL
953 {%- for scenario in scenarios[stream] %}
954 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
955 node-parameters: false
956 current-parameters: false
957 predefined-parameters: |
966 name: 'apex-upload-artifact'
969 !include-raw: ./apex-upload-artifact.sh
972 name: 'apex-download-artifact'
975 !include-raw: ./apex-download-artifact.sh
981 !include-raw: ./apex-deploy.sh
983 #######################
985 ########################
989 - timed: '0 0 1-31/2 * *'
992 name: 'apex-euphrates'
994 - timed: '0 0 2-30/2 * *'