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-.*'
225 queue-scannning: 'ALL'
232 - description-setter:
233 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
236 condition: SUCCESSFUL
238 - name: 'apex-deploy-virtual-{stream}'
239 current-parameters: false
240 predefined-parameters: |
241 ARTIFACT_VERSION=$ARTIFACT_VERSION
242 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
244 GERRIT_BRANCH=$GERRIT_BRANCH
245 GERRIT_REFSPEC=$GERRIT_REFSPEC
246 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
247 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
248 node-parameters: true
249 kill-phase-on: FAILURE
254 condition: SUCCESSFUL
256 - name: 'functest-apex-virtual-suite-{stream}'
257 current-parameters: false
258 predefined-parameters: |
259 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
260 FUNCTEST_SUITE_NAME=healthcheck
261 GERRIT_BRANCH=$GERRIT_BRANCH
262 GERRIT_REFSPEC=$GERRIT_REFSPEC
263 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
264 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
265 node-parameters: true
270 # Baremetal Deploy and Test
272 name: 'apex-{scenario}-baremetal-{scenario_stream}'
274 project-type: 'multijob'
282 - '{project}-defaults'
283 - '{project}-baremetal-{scenario_stream}-defaults'
288 gs-pathname: '{gs-pathname}'
290 name: DEPLOY_SCENARIO
291 default: '{scenario}'
292 description: "Scenario to deploy with."
297 use-build-blocker: true
302 - 'apex-.*-promote.*'
304 - 'apex-.+-baremetal-.+'
311 - description-setter:
312 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
314 name: 'Baremetal Deploy'
315 condition: SUCCESSFUL
317 - name: 'apex-deploy-baremetal-{scenario_stream}'
318 node-parameters: true
319 current-parameters: true
320 predefined-parameters: |
322 GERRIT_BRANCH=$GERRIT_BRANCH
324 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
325 kill-phase-on: FAILURE
329 name: 'OPNFV Test Suite'
331 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
332 node-parameters: true
333 current-parameters: false
334 predefined-parameters:
335 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
343 !include-raw-escape: ./update-build-result.groovy
347 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
349 project-type: 'multijob'
354 - '{project}-defaults'
355 - '{project}-baremetal-{scenario_stream}-defaults'
360 gs-pathname: '{gs-pathname}'
362 name: DEPLOY_SCENARIO
363 default: '{scenario}'
364 description: "Scenario to deploy with."
369 use-build-blocker: true
374 - 'apex-.*-promote.*'
376 - 'apex-testsuite-.+-baremetal-.+'
383 - description-setter:
384 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
389 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
390 node-parameters: true
391 current-parameters: false
392 predefined-parameters:
393 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
401 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
402 node-parameters: true
403 current-parameters: false
404 predefined-parameters:
405 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
413 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
414 node-parameters: true
415 current-parameters: false
416 predefined-parameters:
417 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
419 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
426 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
427 node-parameters: true
428 current-parameters: false
429 predefined-parameters:
430 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
431 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
435 # Build status is always success due conditional plugin prefetching
436 # build status before multijob phases execute
437 # - conditional-step:
438 # condition-kind: current-status
439 # condition-worst: SUCCESS
440 # condtion-best: SUCCESS
441 # on-evaluation-failure: mark-unstable
443 # - shell: 'echo "Tests Passed"'
446 name: 'apex-daily-{stream}'
448 # Job template for daily build
450 # Required Variables:
451 # stream: branch with - in place of / (eg. stable)
452 # branch: branch (eg. stable)
453 project-type: 'multijob'
455 disabled: '{obj:disable_daily}'
461 - '{project}-defaults'
462 - '{project}-baremetal-{stream}-defaults'
467 gs-pathname: '{gs-pathname}'
472 use-build-blocker: true
483 condition: SUCCESSFUL
485 - name: 'apex-build-{stream}'
486 current-parameters: false
487 predefined-parameters: |
488 GERRIT_BRANCH=$GERRIT_BRANCH
490 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
491 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
492 node-parameters: true
493 kill-phase-on: FAILURE
497 name: 'Verify and upload ISO'
498 condition: SUCCESSFUL
500 - name: 'apex-verify-iso-{stream}'
501 current-parameters: false
502 predefined-parameters: |
503 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
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
512 - apex-builder-{stream}
516 name: 'apex-create-snapshot'
518 # Job template for clean
520 # Required Variables:
521 # stream: branch with - in place of / (eg. stable)
527 !include-raw-escape: ./apex-snapshot-create.sh
531 name: 'apex-upload-snapshot'
533 # Job template for clean
535 # Required Variables:
536 # stream: branch with - in place of / (eg. stable)
542 properties-content: ARTIFACT_TYPE=snapshot
543 - 'apex-upload-artifact'
547 name: 'apex-csit-promote-daily-{stream}'
549 # Job template for promoting CSIT Snapshots
551 # Required Variables:
552 # stream: branch with - in place of / (eg. stable)
553 # branch: branch (eg. stable)
554 node: '{virtual-slave}'
555 project-type: 'multijob'
566 gs-pathname: '{gs-pathname}'
570 use-build-blocker: true
579 - timed: '0 12 * * 0'
584 condition: SUCCESSFUL
586 - name: 'apex-build-{stream}'
587 current-parameters: false
588 predefined-parameters: |
589 GERRIT_BRANCH=$GERRIT_BRANCH
590 GERRIT_REFSPEC=$GERRIT_REFSPEC
591 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
592 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
593 node-parameters: false
594 kill-phase-on: FAILURE
599 condition: SUCCESSFUL
601 - name: 'apex-deploy-virtual-{stream}'
602 current-parameters: false
603 predefined-parameters: |
604 DEPLOY_SCENARIO=os-odl_l3-csit-noha
606 GERRIT_BRANCH=$GERRIT_BRANCH
607 GERRIT_REFSPEC=$GERRIT_REFSPEC
608 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
609 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
611 node-parameters: true
612 kill-phase-on: FAILURE
617 condition: SUCCESSFUL
619 - name: 'functest-apex-virtual-suite-{stream}'
620 current-parameters: false
621 predefined-parameters: |
622 DEPLOY_SCENARIO=os-odl_l3-nofeature-noha
623 FUNCTEST_SUITE_NAME=tempest_smoke_serial
624 GERRIT_BRANCH=$GERRIT_BRANCH
625 GERRIT_REFSPEC=$GERRIT_REFSPEC
626 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
627 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
628 node-parameters: true
629 kill-phase-on: FAILURE
633 name: create snapshot
634 condition: SUCCESSFUL
636 - name: 'apex-create-snapshot'
637 current-parameters: false
638 predefined-parameters: |
640 node-parameters: true
641 kill-phase-on: FAILURE
645 name: upload snapshot
646 condition: SUCCESSFUL
648 - name: 'apex-upload-snapshot'
649 current-parameters: false
650 predefined-parameters: |
652 node-parameters: true
653 kill-phase-on: FAILURE
659 name: 'apex-fdio-promote-daily-{stream}'
661 # Job template for promoting CSIT Snapshots
663 # Required Variables:
664 # stream: branch with - in place of / (eg. stable)
665 # branch: branch (eg. stable)
666 node: '{virtual-slave}'
667 project-type: 'multijob'
678 gs-pathname: '{gs-pathname}'
682 use-build-blocker: true
693 condition: SUCCESSFUL
695 - name: 'apex-build-{stream}'
696 current-parameters: false
697 predefined-parameters: |
698 GERRIT_BRANCH=$GERRIT_BRANCH
699 GERRIT_REFSPEC=$GERRIT_REFSPEC
700 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
701 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
702 node-parameters: false
703 kill-phase-on: FAILURE
708 condition: SUCCESSFUL
710 - name: 'apex-deploy-virtual-{stream}'
711 current-parameters: false
712 predefined-parameters: |
713 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
715 GERRIT_BRANCH=$GERRIT_BRANCH
716 GERRIT_REFSPEC=$GERRIT_REFSPEC
717 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
718 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
720 node-parameters: true
721 kill-phase-on: FAILURE
725 name: create snapshot
726 condition: SUCCESSFUL
728 - name: 'apex-create-snapshot'
729 current-parameters: false
730 predefined-parameters: |
732 node-parameters: true
733 kill-phase-on: FAILURE
737 name: upload snapshot
738 condition: SUCCESSFUL
740 - name: 'apex-upload-snapshot'
741 current-parameters: false
742 predefined-parameters: |
744 node-parameters: true
745 kill-phase-on: FAILURE
751 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
753 project-type: 'multijob'
766 - '{project}-defaults'
771 gs-pathname: '{gs-pathname}'
773 name: DEPLOY_SCENARIO
774 default: 'os-nosdn-nofeature-ha'
775 description: "Scenario to deploy with."
778 default: https://gerrit.opnfv.org/gerrit/$PROJECT
779 description: 'Git URL to use on this Jenkins Slave'
782 default: /root/.ssh/id_rsa
783 description: 'SSH key to use for Apex'
788 use-build-blocker: true
793 - 'apex-.*-promote.*'
795 - 'apex-.+-baremetal-.+'
802 - description-setter:
803 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
805 name: 'Baremetal Deploy'
806 condition: SUCCESSFUL
808 - name: 'apex-deploy-baremetal-{stream}'
809 node-parameters: true
810 current-parameters: true
811 predefined-parameters: |
813 GERRIT_BRANCH=$GERRIT_BRANCH
815 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
816 kill-phase-on: FAILURE
823 - name: 'yardstick-apex-baremetal-daily-{stream}'
824 node-parameters: true
825 current-parameters: false
826 predefined-parameters:
827 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
832 # Dovetail Danube test job
834 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
836 project-type: 'multijob'
843 - '{project}-defaults'
846 branch: 'stable/danube'
848 gs-pathname: '/danube'
850 name: DEPLOY_SCENARIO
851 default: 'os-nosdn-nofeature-ha'
852 description: "Scenario to deploy with."
857 use-build-blocker: true
862 - 'apex-.*-promote.*'
866 - timed: '' # '0 1 * * *'
869 - description-setter:
870 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
872 name: 'Baremetal Deploy'
873 condition: SUCCESSFUL
875 - name: 'apex-deploy-baremetal-danube'
876 node-parameters: true
877 current-parameters: true
878 predefined-parameters: |
880 GERRIT_BRANCH=$GERRIT_BRANCH
882 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
883 kill-phase-on: FAILURE
890 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
891 node-parameters: true
892 current-parameters: false
893 predefined-parameters:
894 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
899 ########################
901 ########################
908 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
910 name: ARTIFACT_VERSION
912 description: "Artifact version type"
914 name: BUILD_DIRECTORY
915 default: $WORKSPACE/.build
916 description: "Directory where the build artifact will be located upon the completion of the build."
918 name: CACHE_DIRECTORY
919 default: $HOME/opnfv/apex-cache{gs-pathname}
920 description: "Directory where the cache to be used during the build is located."
921 # yamllint disable rule:line-length
924 default: https://gerrit.opnfv.org/gerrit/$PROJECT
925 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
926 # yamllint enable rule:line-length
929 default: '{gs-pathname}'
930 description: "Version directory where opnfv artifacts are stored in gs repository"
933 default: $GS_BASE{gs-pathname}
934 description: "URL to Google Storage."
938 description: "Flag to know if we should promote/upload snapshot artifacts."
940 ########################
942 ########################
943 {% for stream in scenarios %}
944 # {{ stream }} Builder
946 name: apex-builder-{{ stream }}
949 name: Baremetal Deploy and Test Phase
950 condition: SUCCESSFUL
952 {%- for scenario in scenarios[stream] %}
953 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
954 node-parameters: false
955 current-parameters: false
956 predefined-parameters: |
965 name: 'apex-upload-artifact'
968 !include-raw: ./apex-upload-artifact.sh
971 name: 'apex-download-artifact'
974 !include-raw: ./apex-download-artifact.sh
980 !include-raw: ./apex-deploy.sh
982 #######################
984 ########################
988 - timed: '0 0 1-31/2 * *'
991 name: 'apex-euphrates'
993 - timed: '0 0 2-30/2 * *'