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
378 - name: 'apex-deploy-baremetal-{scenario_stream}'
379 node-parameters: true
380 current-parameters: true
381 predefined-parameters: |
383 GERRIT_BRANCH=$GERRIT_BRANCH
385 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
386 kill-phase-on: FAILURE
390 name: 'OPNFV Test Suite'
393 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
394 node-parameters: true
395 current-parameters: false
396 predefined-parameters:
397 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
402 name: apex-fetch-logs
404 - name: 'apex-fetch-logs'
405 current-parameters: true
406 predefined-parameters: |
407 GERRIT_BRANCH=$GERRIT_BRANCH
409 node-parameters: true
416 !include-raw-escape: ./update-build-result.groovy
420 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
422 project-type: 'multijob'
427 - '{project}-defaults'
428 - '{project}-baremetal-{scenario_stream}-defaults'
433 gs-pathname: '{gs-pathname}'
435 name: DEPLOY_SCENARIO
436 default: '{scenario}'
437 description: "Scenario to deploy with."
442 use-build-blocker: true
447 - 'apex-.*-promote.*'
449 - 'apex-testsuite-.+-baremetal-.+'
456 - description-setter:
457 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
462 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
463 node-parameters: true
464 current-parameters: false
465 predefined-parameters:
466 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
474 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
475 node-parameters: true
476 current-parameters: false
477 predefined-parameters:
478 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
483 name: Dovetail-proposed_tests
486 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
487 node-parameters: true
488 current-parameters: false
489 predefined-parameters:
490 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
492 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
493 && $BUILD_NUMBER % 2 == 1"
497 name: Dovetail-default
500 - name: 'dovetail-apex-baremetal-default-{scenario_stream}'
501 node-parameters: true
502 current-parameters: false
503 predefined-parameters:
504 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
506 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
507 && $BUILD_NUMBER % 2 == 0"
514 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
515 node-parameters: true
516 current-parameters: false
517 predefined-parameters:
518 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
519 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
523 # Build status is always success due conditional plugin prefetching
524 # build status before multijob phases execute
525 # - conditional-step:
526 # condition-kind: current-status
527 # condition-worst: SUCCESS
528 # condtion-best: SUCCESS
529 # on-evaluation-failure: mark-unstable
531 # - shell: 'echo "Tests Passed"'
534 name: 'apex-daily-{stream}'
536 # Job template for daily build
538 # Required Variables:
539 # stream: branch with - in place of / (eg. stable)
540 # branch: branch (eg. stable)
541 project-type: 'multijob'
543 disabled: '{obj:disable_daily}'
549 - '{project}-defaults'
550 - '{project}-baremetal-{stream}-defaults'
555 gs-pathname: '{gs-pathname}'
560 use-build-blocker: true
571 condition: SUCCESSFUL
573 - name: 'apex-build-{stream}'
574 current-parameters: false
575 predefined-parameters: |
576 GERRIT_BRANCH=$GERRIT_BRANCH
578 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
579 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
580 node-parameters: true
581 kill-phase-on: FAILURE
585 name: 'Verify and upload ISO'
586 condition: SUCCESSFUL
588 - name: 'apex-verify-iso-{stream}'
589 current-parameters: false
590 predefined-parameters: |
591 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
592 GERRIT_BRANCH=$GERRIT_BRANCH
594 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
595 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
596 node-parameters: true
597 kill-phase-on: FAILURE
600 - apex-builder-{stream}
604 name: 'apex-create-snapshot'
606 # Job template for clean
608 # Required Variables:
609 # stream: branch with - in place of / (eg. stable)
615 !include-raw-escape: ./apex-snapshot-create.sh
619 name: 'apex-upload-snapshot'
621 # Job template for clean
623 # Required Variables:
624 # stream: branch with - in place of / (eg. stable)
630 properties-content: ARTIFACT_TYPE=snapshot
631 - 'apex-upload-artifact'
635 name: 'apex-csit-promote-daily-{stream}'
637 # Job template for promoting CSIT Snapshots
639 # Required Variables:
640 # stream: branch with - in place of / (eg. stable)
641 # branch: branch (eg. stable)
642 node: '{virtual-slave}'
643 project-type: 'multijob'
644 disabled: '{disable_promote}'
654 gs-pathname: '{gs-pathname}'
658 use-build-blocker: true
667 - timed: '0 12 * * 0'
672 condition: SUCCESSFUL
674 - name: 'apex-deploy-virtual-{stream}'
675 current-parameters: false
676 predefined-parameters: |
677 DEPLOY_SCENARIO=os-odl-{os_version}_upstream-noha
679 GERRIT_BRANCH=$GERRIT_BRANCH
680 GERRIT_REFSPEC=$GERRIT_REFSPEC
681 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
682 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
684 node-parameters: true
685 kill-phase-on: FAILURE
690 condition: SUCCESSFUL
692 - name: 'functest-apex-virtual-suite-{stream}'
693 current-parameters: false
694 predefined-parameters: |
695 DEPLOY_SCENARIO=os-odl-{os_version}_upstream-noha
696 FUNCTEST_SUITE_NAME=tempest_smoke_serial
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: true
702 kill-phase-on: FAILURE
706 name: create snapshot
707 condition: SUCCESSFUL
709 - name: 'apex-create-snapshot'
710 current-parameters: false
711 predefined-parameters: |
713 node-parameters: true
714 kill-phase-on: FAILURE
718 name: upload snapshot
719 condition: SUCCESSFUL
721 - name: 'apex-upload-snapshot'
722 current-parameters: false
723 predefined-parameters: |
725 node-parameters: true
726 kill-phase-on: FAILURE
732 name: 'apex-fdio-promote-daily-{stream}'
734 # Job template for promoting CSIT Snapshots
736 # Required Variables:
737 # stream: branch with - in place of / (eg. stable)
738 # branch: branch (eg. stable)
739 node: '{virtual-slave}'
740 project-type: 'multijob'
751 gs-pathname: '{gs-pathname}'
755 use-build-blocker: true
766 condition: SUCCESSFUL
768 - name: 'apex-build-{stream}'
769 current-parameters: false
770 predefined-parameters: |
771 GERRIT_BRANCH=$GERRIT_BRANCH
772 GERRIT_REFSPEC=$GERRIT_REFSPEC
773 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
774 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
775 node-parameters: false
776 kill-phase-on: FAILURE
781 condition: SUCCESSFUL
783 - name: 'apex-deploy-virtual-{stream}'
784 current-parameters: false
785 predefined-parameters: |
786 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
788 GERRIT_BRANCH=$GERRIT_BRANCH
789 GERRIT_REFSPEC=$GERRIT_REFSPEC
790 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
791 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
793 node-parameters: true
794 kill-phase-on: FAILURE
798 name: create snapshot
799 condition: SUCCESSFUL
801 - name: 'apex-create-snapshot'
802 current-parameters: false
803 predefined-parameters: |
805 node-parameters: true
806 kill-phase-on: FAILURE
810 name: upload snapshot
811 condition: SUCCESSFUL
813 - name: 'apex-upload-snapshot'
814 current-parameters: false
815 predefined-parameters: |
817 node-parameters: true
818 kill-phase-on: FAILURE
824 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
826 project-type: 'multijob'
839 - '{project}-defaults'
844 gs-pathname: '{gs-pathname}'
846 name: DEPLOY_SCENARIO
847 default: 'os-nosdn-nofeature-ha'
848 description: "Scenario to deploy with."
851 default: https://gerrit.opnfv.org/gerrit/$PROJECT
852 description: 'Git URL to use on this Jenkins Slave'
855 default: /root/.ssh/id_rsa
856 description: 'SSH key to use for Apex'
861 use-build-blocker: true
866 - 'apex-.*-promote.*'
868 - 'apex-.+-baremetal-.+'
875 - description-setter:
876 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
878 name: 'Baremetal Deploy'
879 condition: SUCCESSFUL
881 - name: 'apex-deploy-baremetal-{stream}'
882 node-parameters: true
883 current-parameters: true
884 predefined-parameters: |
886 GERRIT_BRANCH=$GERRIT_BRANCH
888 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
889 kill-phase-on: FAILURE
896 - name: 'yardstick-apex-baremetal-daily-{stream}'
897 node-parameters: true
898 current-parameters: false
899 predefined-parameters:
900 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
905 # Dovetail Danube test job
907 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
909 project-type: 'multijob'
916 - '{project}-defaults'
919 branch: 'stable/danube'
921 gs-pathname: '/danube'
923 name: DEPLOY_SCENARIO
924 default: 'os-nosdn-nofeature-ha'
925 description: "Scenario to deploy with."
930 use-build-blocker: true
935 - 'apex-.*-promote.*'
939 - timed: '' # '0 1 * * *'
942 - description-setter:
943 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
945 name: 'Baremetal Deploy'
946 condition: SUCCESSFUL
948 - name: 'apex-deploy-baremetal-danube'
949 node-parameters: true
950 current-parameters: true
951 predefined-parameters: |
953 GERRIT_BRANCH=$GERRIT_BRANCH
955 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
956 kill-phase-on: FAILURE
963 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
964 node-parameters: true
965 current-parameters: false
966 predefined-parameters:
967 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
972 ########################
974 ########################
981 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
983 name: ARTIFACT_VERSION
985 description: "Artifact version type"
987 name: BUILD_DIRECTORY
988 default: $WORKSPACE/.build
989 description: "Directory where the build artifact will be located upon the completion of the build."
991 name: CACHE_DIRECTORY
992 default: $HOME/opnfv/apex-cache{gs-pathname}
993 description: "Directory where the cache to be used during the build is located."
994 # yamllint disable rule:line-length
997 default: https://gerrit.opnfv.org/gerrit/$PROJECT
998 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
999 # yamllint enable rule:line-length
1002 default: '{gs-pathname}'
1003 description: "Version directory where opnfv artifacts are stored in gs repository"
1006 default: $GS_BASE{gs-pathname}
1007 description: "URL to Google Storage."
1011 description: "Flag to know if we should promote/upload snapshot artifacts."
1013 ########################
1015 ########################
1016 {% for stream in scenarios %}
1017 # {{ stream }} Builder
1019 name: apex-builder-{{ stream }}
1022 name: Baremetal Deploy and Test Phase
1023 condition: SUCCESSFUL
1025 {%- for scenario in scenarios[stream] %}
1026 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1027 node-parameters: false
1028 current-parameters: false
1029 predefined-parameters: |
1031 kill-phase-on: NEVER
1038 name: 'apex-upload-artifact'
1041 !include-raw: ./apex-upload-artifact.sh
1044 name: 'apex-download-artifact'
1047 !include-raw: ./apex-download-artifact.sh
1053 !include-raw: ./apex-deploy.sh
1056 name: 'apex-fetch-logs'
1059 !include-raw: ./apex-fetch-logs.sh
1061 #######################
1063 ########################
1067 - timed: '0 0 1-31/2 * *'
1072 - timed: '0 0 2-30/2 * *'
1075 name: 'apex-euphrates'
1077 - timed: '0 0 2-30/2 * *'
1082 - timed: '0 3 1 1 7'