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}-os-{os_version}'
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-nosdn-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-nosdn-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] %}
82 os_scenario: 'nofeature'
87 name: 'apex-fetch-logs-{stream}'
99 gs-pathname: '{gs-pathname}'
100 # yamllint enable rule:line-length
112 name: 'apex-runner-cperf-{stream}'
115 project-type: 'multijob'
122 gs-pathname: '{gs-pathname}'
128 default: https://gerrit.opnfv.org/gerrit/$PROJECT
129 description: "Used for overriding the GIT URL coming from parameters macro."
137 use-build-blocker: false
147 - description-setter:
148 description: "Deployed on $NODE_NAME"
150 name: 'Baremetal Deploy'
153 - name: 'apex-deploy-baremetal-{stream}'
154 node-parameters: false
155 current-parameters: true
156 predefined-parameters: |
157 GERRIT_BRANCH=$GERRIT_BRANCH
160 DEPLOY_SCENARIO={verify-scenario}
161 kill-phase-on: FAILURE
166 condition: SUCCESSFUL
168 - name: 'cperf-apex-intel-pod2-daily-master'
169 node-parameters: true
170 current-parameters: false
171 predefined-parameters:
172 DEPLOY_SCENARIO={verify-scenario}
179 name: 'apex-deploy-{platform}-{stream}'
194 - '{project}-{platform}-{stream}-defaults'
199 gs-pathname: '{gs-pathname}'
201 name: DEPLOY_SCENARIO
202 default: '{verify-scenario}'
203 description: "Scenario to deploy with."
204 # yamllint disable rule:line-length
208 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
210 # yamllint enable rule:line-length
214 use-build-blocker: true
229 - description-setter:
230 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
231 - 'apex-download-artifact'
236 # Virtual Deploy and Test
238 name: 'apex-virtual-{stream}'
240 project-type: 'multijob'
250 - '{project}-defaults'
251 - '{project}-virtual-{stream}-defaults'
252 - 'functest-suite-parameter'
257 gs-pathname: '{gs-pathname}'
259 name: DEPLOY_SCENARIO
260 default: '{verify-scenario}'
261 description: "Scenario to deploy with."
263 name: ARTIFACT_VERSION
265 description: "Used for overriding the ARTIFACT_VERSION"
270 use-build-blocker: true
276 - 'apex-verify-gate-.*'
284 - description-setter:
285 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
288 condition: SUCCESSFUL
290 - name: 'apex-deploy-virtual-{stream}'
291 current-parameters: false
292 predefined-parameters: |
293 ARTIFACT_VERSION=$ARTIFACT_VERSION
294 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
296 GERRIT_BRANCH=$GERRIT_BRANCH
297 GERRIT_REFSPEC=$GERRIT_REFSPEC
298 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
299 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
301 node-parameters: true
302 kill-phase-on: FAILURE
306 if echo $DEPLOY_SCENARIO | grep queens &> /dev/null; then
307 echo 'REPO=opnfv' > functest_repo
309 echo 'REPO=ollivier' > functest_repo
312 properties-file: functest_repo
317 - name: 'functest-apex-virtual-suite-{stream}'
318 current-parameters: false
319 predefined-parameters: |
320 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
321 FUNCTEST_MODE=$FUNCTEST_MODE
322 FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
324 GERRIT_BRANCH=$GERRIT_BRANCH
325 GERRIT_REFSPEC=$GERRIT_REFSPEC
326 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
327 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
328 node-parameters: true
333 name: apex-fetch-logs
335 - name: 'apex-fetch-logs-{stream}'
336 current-parameters: false
337 predefined-parameters: |
338 GERRIT_BRANCH=$GERRIT_BRANCH
339 GERRIT_REFSPEC=$GERRIT_REFSPEC
340 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
341 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
342 node-parameters: true
347 # Baremetal Deploy and Test
349 name: 'apex-{scenario}-baremetal-{scenario_stream}'
351 project-type: 'multijob'
359 - '{project}-defaults'
360 - '{project}-baremetal-{scenario_stream}-defaults'
365 gs-pathname: '{gs-pathname}'
367 name: DEPLOY_SCENARIO
368 default: '{scenario}'
369 description: "Scenario to deploy with."
374 use-build-blocker: true
379 - 'apex-.*-promote.*'
381 - 'apex-.+-baremetal-.+'
388 - description-setter:
389 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
391 name: 'Baremetal Deploy'
392 condition: SUCCESSFUL
393 execution-type: SEQUENTIALLY
395 - name: 'apex-deploy-baremetal-{scenario_stream}'
396 node-parameters: true
397 current-parameters: true
398 predefined-parameters: |
400 GERRIT_BRANCH=$GERRIT_BRANCH
402 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
406 - name: 'apex-fetch-logs-{scenario_stream}'
407 current-parameters: true
408 predefined-parameters: |
409 GERRIT_BRANCH=$GERRIT_BRANCH
411 node-parameters: true
416 name: 'OPNFV Test Suite'
419 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
420 node-parameters: true
421 current-parameters: false
422 predefined-parameters:
423 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
428 name: apex-fetch-logs
430 - name: 'apex-fetch-logs-{scenario_stream}'
431 current-parameters: true
432 predefined-parameters: |
433 GERRIT_BRANCH=$GERRIT_BRANCH
435 node-parameters: true
442 !include-raw-escape: ./update-build-result.groovy
446 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
448 project-type: 'multijob'
453 - '{project}-defaults'
454 - '{project}-baremetal-{scenario_stream}-defaults'
459 gs-pathname: '{gs-pathname}'
461 name: DEPLOY_SCENARIO
462 default: '{scenario}'
463 description: "Scenario to deploy with."
468 use-build-blocker: true
474 - 'apex-testsuite-.+-baremetal-.+'
481 - description-setter:
482 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
487 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
488 node-parameters: true
489 current-parameters: false
490 predefined-parameters:
491 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
499 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
500 node-parameters: true
501 current-parameters: false
502 predefined-parameters:
503 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
508 name: Dovetail-proposed_tests
511 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
512 node-parameters: true
513 current-parameters: false
514 predefined-parameters:
515 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
517 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
521 name: Dovetail-default
524 - name: 'dovetail-apex-baremetal-default-{scenario_stream}'
525 node-parameters: true
526 current-parameters: false
527 predefined-parameters:
528 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
530 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/"
537 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
538 node-parameters: true
539 current-parameters: false
540 predefined-parameters:
541 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
542 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
546 # Build status is always success due conditional plugin prefetching
547 # build status before multijob phases execute
548 # - conditional-step:
549 # condition-kind: current-status
550 # condition-worst: SUCCESS
551 # condtion-best: SUCCESS
552 # on-evaluation-failure: mark-unstable
554 # - shell: 'echo "Tests Passed"'
557 name: 'apex-daily-{stream}'
559 # Job template for daily build
561 # Required Variables:
562 # stream: branch with - in place of / (eg. stable)
563 # branch: branch (eg. stable)
564 project-type: 'multijob'
566 disabled: '{obj:disable_daily}'
572 - '{project}-defaults'
573 - '{project}-baremetal-{stream}-defaults'
578 gs-pathname: '{gs-pathname}'
583 use-build-blocker: true
594 condition: SUCCESSFUL
596 - name: 'apex-build-{stream}'
597 current-parameters: false
598 predefined-parameters: |
599 GERRIT_BRANCH=$GERRIT_BRANCH
601 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
602 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
603 node-parameters: true
604 kill-phase-on: FAILURE
608 name: 'Verify and upload ISO'
609 condition: SUCCESSFUL
611 - name: 'apex-verify-iso-{stream}'
612 current-parameters: false
613 predefined-parameters: |
614 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
615 GERRIT_BRANCH=$GERRIT_BRANCH
617 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
618 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
619 node-parameters: true
620 kill-phase-on: FAILURE
623 - apex-builder-{stream}
627 name: 'apex-create-snapshot'
632 - '{project}-defaults'
636 !include-raw-escape: ./apex-snapshot-create.sh
640 name: 'apex-upload-snapshot'
645 - '{project}-defaults'
649 properties-content: ARTIFACT_TYPE=snapshot
650 - 'apex-upload-artifact'
654 name: 'apex-csit-promote-daily-{stream}-os-{os_version}'
656 # Job template for promoting CSIT Snapshots
658 # Required Variables:
659 # stream: branch with - in place of / (eg. stable)
660 # branch: branch (eg. stable)
661 node: '{virtual-slave}'
662 project-type: 'multijob'
663 disabled: '{disable_promote}'
673 gs-pathname: '{gs-pathname}'
675 name: ARTIFACT_VERSION
677 description: "Used for overriding the ARTIFACT_VERSION"
681 description: "Used for overriding the PROMOTE"
685 use-build-blocker: true
693 - timed: '0 12 * * 0'
697 name: apex-virtual-deploy-test
698 condition: SUCCESSFUL
700 - name: 'apex-virtual-{stream}'
701 current-parameters: true
702 predefined-parameters: |
703 DEPLOY_SCENARIO=os-odl-{os_scenario}-noha
705 GERRIT_BRANCH=$GERRIT_BRANCH
706 GERRIT_REFSPEC=$GERRIT_REFSPEC
707 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
708 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
709 FUNCTEST_SUITE_NAME=tempest_smoke_serial
710 FUNCTEST_MODE=testcase
711 node-parameters: true
712 kill-phase-on: FAILURE
716 name: create snapshot
717 condition: SUCCESSFUL
719 - name: 'apex-create-snapshot'
720 current-parameters: true
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: true
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'