6 - 'apex-fetch-logs-{stream}'
7 - 'apex-runner-cperf-{stream}'
8 - 'apex-virtual-{stream}'
9 - 'apex-deploy-{platform}-{stream}'
10 - 'apex-daily-{stream}'
11 - 'apex-csit-promote-daily-{stream}'
12 - 'apex-fdio-promote-daily-{stream}'
13 - 'apex-{scenario}-baremetal-{scenario_stream}'
14 - 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
15 - 'apex-upload-snapshot'
16 - 'apex-create-snapshot'
17 - 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
18 - 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
19 # stream: branch with - in place of / (eg. stable-arno)
20 # branch: branch (eg. stable/arno)
25 build-slave: 'apex-build-master'
26 virtual-slave: 'apex-virtual-master'
27 baremetal-slave: 'apex-baremetal-master'
28 verify-scenario: 'os-odl-nofeature-ha'
29 scenario_stream: 'master'
31 disable_promote: false
33 branch: 'stable/fraser'
34 gs-pathname: '/fraser'
35 build-slave: 'apex-build-master'
36 virtual-slave: 'apex-virtual-master'
37 baremetal-slave: 'apex-baremetal-master'
38 verify-scenario: 'os-odl-nofeature-ha'
39 scenario_stream: 'fraser'
42 - euphrates: &euphrates
43 branch: 'stable/euphrates'
44 gs-pathname: '/euphrates'
45 build-slave: 'apex-build-master'
46 virtual-slave: 'apex-virtual-master'
47 baremetal-slave: 'apex-baremetal-master'
48 verify-scenario: 'os-odl-nofeature-ha'
49 scenario_stream: 'euphrates'
53 branch: 'stable/danube'
54 gs-pathname: '/danube'
55 build-slave: 'apex-build-danube'
56 virtual-slave: 'apex-virtual-danube'
57 baremetal-slave: 'apex-baremetal-danube'
58 verify-scenario: 'os-odl_l3-nofeature-ha'
59 scenario_stream: 'danube'
65 {%- for stream in scenarios %}
66 {%- for scenario in scenarios[stream] %}
84 name: 'apex-fetch-logs-{stream}'
96 gs-pathname: '{gs-pathname}'
97 # yamllint enable rule:line-length
109 name: 'apex-runner-cperf-{stream}'
112 project-type: 'multijob'
119 gs-pathname: '{gs-pathname}'
125 default: https://gerrit.opnfv.org/gerrit/$PROJECT
126 description: "Used for overriding the GIT URL coming from parameters macro."
134 use-build-blocker: false
144 - description-setter:
145 description: "Deployed on $NODE_NAME"
147 name: 'Baremetal Deploy'
150 - name: 'apex-deploy-baremetal-{stream}'
151 node-parameters: false
152 current-parameters: true
153 predefined-parameters: |
154 GERRIT_BRANCH=$GERRIT_BRANCH
157 DEPLOY_SCENARIO={verify-scenario}
158 kill-phase-on: FAILURE
163 condition: SUCCESSFUL
165 - name: 'cperf-apex-intel-pod2-daily-master'
166 node-parameters: true
167 current-parameters: false
168 predefined-parameters:
169 DEPLOY_SCENARIO={verify-scenario}
176 name: 'apex-deploy-{platform}-{stream}'
191 - '{project}-{platform}-{stream}-defaults'
196 gs-pathname: '{gs-pathname}'
198 name: DEPLOY_SCENARIO
199 default: '{verify-scenario}'
200 description: "Scenario to deploy with."
201 # yamllint disable rule:line-length
205 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
207 # yamllint enable rule:line-length
211 use-build-blocker: true
225 - description-setter:
226 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
227 - 'apex-download-artifact'
232 # Virtual Deploy and Test
234 name: 'apex-virtual-{stream}'
236 project-type: 'multijob'
246 - '{project}-defaults'
247 - '{project}-virtual-{stream}-defaults'
252 gs-pathname: '{gs-pathname}'
254 name: DEPLOY_SCENARIO
255 default: '{verify-scenario}'
256 description: "Scenario to deploy with."
258 name: ARTIFACT_VERSION
260 description: "Used for overriding the ARTIFACT_VERSION"
265 use-build-blocker: true
269 - 'apex-.*-promote.*'
272 - 'apex-verify-gate-.*'
279 - description-setter:
280 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
283 condition: SUCCESSFUL
285 - name: 'apex-deploy-virtual-{stream}'
286 current-parameters: false
287 predefined-parameters: |
288 ARTIFACT_VERSION=$ARTIFACT_VERSION
289 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
291 GERRIT_BRANCH=$GERRIT_BRANCH
292 GERRIT_REFSPEC=$GERRIT_REFSPEC
293 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
294 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
295 node-parameters: true
296 kill-phase-on: FAILURE
303 - name: 'functest-apex-virtual-suite-{stream}'
304 current-parameters: false
305 predefined-parameters: |
306 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
307 FUNCTEST_SUITE_NAME=healthcheck
308 GERRIT_BRANCH=$GERRIT_BRANCH
309 GERRIT_REFSPEC=$GERRIT_REFSPEC
310 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
311 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
312 node-parameters: true
317 name: apex-fetch-logs
319 - name: 'apex-fetch-logs-{stream}'
320 current-parameters: false
321 predefined-parameters: |
322 GERRIT_BRANCH=$GERRIT_BRANCH
323 GERRIT_REFSPEC=$GERRIT_REFSPEC
324 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
325 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
326 node-parameters: true
331 # Baremetal Deploy and Test
333 name: 'apex-{scenario}-baremetal-{scenario_stream}'
335 project-type: 'multijob'
343 - '{project}-defaults'
344 - '{project}-baremetal-{scenario_stream}-defaults'
349 gs-pathname: '{gs-pathname}'
351 name: DEPLOY_SCENARIO
352 default: '{scenario}'
353 description: "Scenario to deploy with."
358 use-build-blocker: true
363 - 'apex-.*-promote.*'
365 - 'apex-.+-baremetal-.+'
372 - description-setter:
373 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
375 name: 'Baremetal Deploy'
376 condition: SUCCESSFUL
377 execution-type: SEQUENTIALLY
379 - name: 'apex-deploy-baremetal-{scenario_stream}'
380 node-parameters: true
381 current-parameters: true
382 predefined-parameters: |
384 GERRIT_BRANCH=$GERRIT_BRANCH
386 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
390 - name: 'apex-fetch-logs-{scenario_stream}'
391 current-parameters: true
392 predefined-parameters: |
393 GERRIT_BRANCH=$GERRIT_BRANCH
395 node-parameters: true
400 name: 'OPNFV Test Suite'
403 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
404 node-parameters: true
405 current-parameters: false
406 predefined-parameters:
407 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
412 name: apex-fetch-logs
414 - name: 'apex-fetch-logs-{scenario_stream}'
415 current-parameters: true
416 predefined-parameters: |
417 GERRIT_BRANCH=$GERRIT_BRANCH
419 node-parameters: true
426 !include-raw-escape: ./update-build-result.groovy
430 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
432 project-type: 'multijob'
437 - '{project}-defaults'
438 - '{project}-baremetal-{scenario_stream}-defaults'
443 gs-pathname: '{gs-pathname}'
445 name: DEPLOY_SCENARIO
446 default: '{scenario}'
447 description: "Scenario to deploy with."
452 use-build-blocker: true
457 - 'apex-.*-promote.*'
459 - 'apex-testsuite-.+-baremetal-.+'
466 - description-setter:
467 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
472 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
473 node-parameters: true
474 current-parameters: false
475 predefined-parameters:
476 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
484 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
485 node-parameters: true
486 current-parameters: false
487 predefined-parameters:
488 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
493 name: Dovetail-proposed_tests
496 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
497 node-parameters: true
498 current-parameters: false
499 predefined-parameters:
500 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
502 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
503 && $BUILD_NUMBER % 2 == 1"
507 name: Dovetail-default
510 - name: 'dovetail-apex-baremetal-default-{scenario_stream}'
511 node-parameters: true
512 current-parameters: false
513 predefined-parameters:
514 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
516 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
517 && $BUILD_NUMBER % 2 == 0"
524 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
525 node-parameters: true
526 current-parameters: false
527 predefined-parameters:
528 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
529 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
533 # Build status is always success due conditional plugin prefetching
534 # build status before multijob phases execute
535 # - conditional-step:
536 # condition-kind: current-status
537 # condition-worst: SUCCESS
538 # condtion-best: SUCCESS
539 # on-evaluation-failure: mark-unstable
541 # - shell: 'echo "Tests Passed"'
544 name: 'apex-daily-{stream}'
546 # Job template for daily build
548 # Required Variables:
549 # stream: branch with - in place of / (eg. stable)
550 # branch: branch (eg. stable)
551 project-type: 'multijob'
553 disabled: '{obj:disable_daily}'
559 - '{project}-defaults'
560 - '{project}-baremetal-{stream}-defaults'
565 gs-pathname: '{gs-pathname}'
570 use-build-blocker: true
581 condition: SUCCESSFUL
583 - name: 'apex-build-{stream}'
584 current-parameters: false
585 predefined-parameters: |
586 GERRIT_BRANCH=$GERRIT_BRANCH
588 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
589 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
590 node-parameters: true
591 kill-phase-on: FAILURE
595 name: 'Verify and upload ISO'
596 condition: SUCCESSFUL
598 - name: 'apex-verify-iso-{stream}'
599 current-parameters: false
600 predefined-parameters: |
601 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
602 GERRIT_BRANCH=$GERRIT_BRANCH
604 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
605 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
606 node-parameters: true
607 kill-phase-on: FAILURE
610 - apex-builder-{stream}
614 name: 'apex-create-snapshot'
616 # Job template for clean
618 # Required Variables:
619 # stream: branch with - in place of / (eg. stable)
625 !include-raw-escape: ./apex-snapshot-create.sh
629 name: 'apex-upload-snapshot'
631 # Job template for clean
633 # Required Variables:
634 # stream: branch with - in place of / (eg. stable)
640 properties-content: ARTIFACT_TYPE=snapshot
641 - 'apex-upload-artifact'
645 name: 'apex-csit-promote-daily-{stream}'
647 # Job template for promoting CSIT Snapshots
649 # Required Variables:
650 # stream: branch with - in place of / (eg. stable)
651 # branch: branch (eg. stable)
652 node: '{virtual-slave}'
653 project-type: 'multijob'
654 disabled: '{disable_promote}'
664 gs-pathname: '{gs-pathname}'
668 use-build-blocker: true
677 - timed: '0 12 * * 0'
682 condition: SUCCESSFUL
684 - name: 'apex-deploy-virtual-{stream}'
685 current-parameters: false
686 predefined-parameters: |
687 DEPLOY_SCENARIO=os-odl-{os_version}_upstream-noha
689 GERRIT_BRANCH=$GERRIT_BRANCH
690 GERRIT_REFSPEC=$GERRIT_REFSPEC
691 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
692 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
694 node-parameters: true
695 kill-phase-on: FAILURE
700 condition: SUCCESSFUL
702 - name: 'functest-apex-virtual-suite-{stream}'
703 current-parameters: false
704 predefined-parameters: |
705 DEPLOY_SCENARIO=os-odl-{os_version}_upstream-noha
706 FUNCTEST_SUITE_NAME=tempest_smoke_serial
707 GERRIT_BRANCH=$GERRIT_BRANCH
708 GERRIT_REFSPEC=$GERRIT_REFSPEC
709 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
710 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
711 node-parameters: true
712 kill-phase-on: FAILURE
716 name: create snapshot
717 condition: SUCCESSFUL
719 - name: 'apex-create-snapshot'
720 current-parameters: false
721 predefined-parameters: |
723 node-parameters: true
724 kill-phase-on: FAILURE
728 name: upload snapshot
729 condition: SUCCESSFUL
731 - name: 'apex-upload-snapshot'
732 current-parameters: false
733 predefined-parameters: |
735 node-parameters: true
736 kill-phase-on: FAILURE
742 name: 'apex-fdio-promote-daily-{stream}'
744 # Job template for promoting CSIT Snapshots
746 # Required Variables:
747 # stream: branch with - in place of / (eg. stable)
748 # branch: branch (eg. stable)
749 node: '{virtual-slave}'
750 project-type: 'multijob'
761 gs-pathname: '{gs-pathname}'
765 use-build-blocker: true
776 condition: SUCCESSFUL
778 - name: 'apex-build-{stream}'
779 current-parameters: false
780 predefined-parameters: |
781 GERRIT_BRANCH=$GERRIT_BRANCH
782 GERRIT_REFSPEC=$GERRIT_REFSPEC
783 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
784 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
785 node-parameters: false
786 kill-phase-on: FAILURE
791 condition: SUCCESSFUL
793 - name: 'apex-deploy-virtual-{stream}'
794 current-parameters: false
795 predefined-parameters: |
796 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
798 GERRIT_BRANCH=$GERRIT_BRANCH
799 GERRIT_REFSPEC=$GERRIT_REFSPEC
800 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
801 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
803 node-parameters: true
804 kill-phase-on: FAILURE
808 name: create snapshot
809 condition: SUCCESSFUL
811 - name: 'apex-create-snapshot'
812 current-parameters: false
813 predefined-parameters: |
815 node-parameters: true
816 kill-phase-on: FAILURE
820 name: upload snapshot
821 condition: SUCCESSFUL
823 - name: 'apex-upload-snapshot'
824 current-parameters: false
825 predefined-parameters: |
827 node-parameters: true
828 kill-phase-on: FAILURE
834 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
836 project-type: 'multijob'
849 - '{project}-defaults'
854 gs-pathname: '{gs-pathname}'
856 name: DEPLOY_SCENARIO
857 default: 'os-nosdn-nofeature-ha'
858 description: "Scenario to deploy with."
861 default: https://gerrit.opnfv.org/gerrit/$PROJECT
862 description: 'Git URL to use on this Jenkins Slave'
865 default: /root/.ssh/id_rsa
866 description: 'SSH key to use for Apex'
871 use-build-blocker: true
876 - 'apex-.*-promote.*'
878 - 'apex-.+-baremetal-.+'
885 - description-setter:
886 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
888 name: 'Baremetal Deploy'
889 condition: SUCCESSFUL
891 - name: 'apex-deploy-baremetal-{stream}'
892 node-parameters: true
893 current-parameters: true
894 predefined-parameters: |
896 GERRIT_BRANCH=$GERRIT_BRANCH
898 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
899 kill-phase-on: FAILURE
906 - name: 'yardstick-apex-baremetal-daily-{stream}'
907 node-parameters: true
908 current-parameters: false
909 predefined-parameters:
910 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
915 # Dovetail Danube test job
917 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
919 project-type: 'multijob'
926 - '{project}-defaults'
929 branch: 'stable/danube'
931 gs-pathname: '/danube'
933 name: DEPLOY_SCENARIO
934 default: 'os-nosdn-nofeature-ha'
935 description: "Scenario to deploy with."
940 use-build-blocker: true
945 - 'apex-.*-promote.*'
949 - timed: '' # '0 1 * * *'
952 - description-setter:
953 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
955 name: 'Baremetal Deploy'
956 condition: SUCCESSFUL
958 - name: 'apex-deploy-baremetal-danube'
959 node-parameters: true
960 current-parameters: true
961 predefined-parameters: |
963 GERRIT_BRANCH=$GERRIT_BRANCH
965 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
966 kill-phase-on: FAILURE
973 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
974 node-parameters: true
975 current-parameters: false
976 predefined-parameters:
977 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
982 ########################
984 ########################
991 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
993 name: ARTIFACT_VERSION
995 description: "Artifact version type"
997 name: BUILD_DIRECTORY
998 default: $WORKSPACE/.build
999 description: "Directory where the build artifact will be located upon the completion of the build."
1001 name: CACHE_DIRECTORY
1002 default: $HOME/opnfv/apex-cache{gs-pathname}
1003 description: "Directory where the cache to be used during the build is located."
1004 # yamllint disable rule:line-length
1007 default: https://gerrit.opnfv.org/gerrit/$PROJECT
1008 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1009 # yamllint enable rule:line-length
1012 default: '{gs-pathname}'
1013 description: "Version directory where opnfv artifacts are stored in gs repository"
1016 default: $GS_BASE{gs-pathname}
1017 description: "URL to Google Storage."
1021 description: "Flag to know if we should promote/upload snapshot artifacts."
1023 ########################
1025 ########################
1026 {% for stream in scenarios %}
1027 # {{ stream }} Builder
1029 name: apex-builder-{{ stream }}
1032 name: Baremetal Deploy and Test Phase
1033 condition: SUCCESSFUL
1035 {%- for scenario in scenarios[stream] %}
1036 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1037 node-parameters: false
1038 current-parameters: false
1039 predefined-parameters: |
1041 kill-phase-on: NEVER
1048 name: 'apex-upload-artifact'
1051 !include-raw: ./apex-upload-artifact.sh
1054 name: 'apex-download-artifact'
1057 !include-raw: ./apex-download-artifact.sh
1063 !include-raw: ./apex-deploy.sh
1066 name: 'apex-fetch-logs'
1069 !include-raw: ./apex-fetch-logs.sh
1071 #######################
1073 ########################
1077 - timed: '0 0 1-31/2 * *'
1082 - timed: '0 0 2-30/2 * *'
1085 name: 'apex-euphrates'
1087 - timed: '0 0 2-30/2 * *'
1092 - timed: '0 3 1 1 7'