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_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-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] %}
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
228 - description-setter:
229 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
230 - 'apex-download-artifact'
235 # Virtual Deploy and Test
237 name: 'apex-virtual-{stream}'
239 project-type: 'multijob'
249 - '{project}-defaults'
250 - '{project}-virtual-{stream}-defaults'
255 gs-pathname: '{gs-pathname}'
257 name: DEPLOY_SCENARIO
258 default: '{verify-scenario}'
259 description: "Scenario to deploy with."
261 name: ARTIFACT_VERSION
263 description: "Used for overriding the ARTIFACT_VERSION"
268 use-build-blocker: true
274 - 'apex-verify-gate-.*'
281 - description-setter:
282 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
285 condition: SUCCESSFUL
287 - name: 'apex-deploy-virtual-{stream}'
288 current-parameters: false
289 predefined-parameters: |
290 ARTIFACT_VERSION=$ARTIFACT_VERSION
291 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
293 GERRIT_BRANCH=$GERRIT_BRANCH
294 GERRIT_REFSPEC=$GERRIT_REFSPEC
295 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
296 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
298 node-parameters: true
299 kill-phase-on: FAILURE
306 - name: 'functest-apex-virtual-suite-{stream}'
307 current-parameters: false
308 predefined-parameters: |
309 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
310 FUNCTEST_SUITE_NAME=healthcheck
311 GERRIT_BRANCH=$GERRIT_BRANCH
312 GERRIT_REFSPEC=$GERRIT_REFSPEC
313 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
314 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
315 node-parameters: true
320 name: apex-fetch-logs
322 - name: 'apex-fetch-logs-{stream}'
323 current-parameters: false
324 predefined-parameters: |
325 GERRIT_BRANCH=$GERRIT_BRANCH
326 GERRIT_REFSPEC=$GERRIT_REFSPEC
327 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
328 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
329 node-parameters: true
334 # Baremetal Deploy and Test
336 name: 'apex-{scenario}-baremetal-{scenario_stream}'
338 project-type: 'multijob'
346 - '{project}-defaults'
347 - '{project}-baremetal-{scenario_stream}-defaults'
352 gs-pathname: '{gs-pathname}'
354 name: DEPLOY_SCENARIO
355 default: '{scenario}'
356 description: "Scenario to deploy with."
361 use-build-blocker: true
366 - 'apex-.*-promote.*'
368 - 'apex-.+-baremetal-.+'
375 - description-setter:
376 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
378 name: 'Baremetal Deploy'
379 condition: SUCCESSFUL
380 execution-type: SEQUENTIALLY
382 - name: 'apex-deploy-baremetal-{scenario_stream}'
383 node-parameters: true
384 current-parameters: true
385 predefined-parameters: |
387 GERRIT_BRANCH=$GERRIT_BRANCH
389 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
393 - name: 'apex-fetch-logs-{scenario_stream}'
394 current-parameters: true
395 predefined-parameters: |
396 GERRIT_BRANCH=$GERRIT_BRANCH
398 node-parameters: true
403 name: 'OPNFV Test Suite'
406 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
407 node-parameters: true
408 current-parameters: false
409 predefined-parameters:
410 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
415 name: apex-fetch-logs
417 - name: 'apex-fetch-logs-{scenario_stream}'
418 current-parameters: true
419 predefined-parameters: |
420 GERRIT_BRANCH=$GERRIT_BRANCH
422 node-parameters: true
429 !include-raw-escape: ./update-build-result.groovy
433 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
435 project-type: 'multijob'
440 - '{project}-defaults'
441 - '{project}-baremetal-{scenario_stream}-defaults'
446 gs-pathname: '{gs-pathname}'
448 name: DEPLOY_SCENARIO
449 default: '{scenario}'
450 description: "Scenario to deploy with."
455 use-build-blocker: true
461 - 'apex-testsuite-.+-baremetal-.+'
468 - description-setter:
469 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
474 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
475 node-parameters: true
476 current-parameters: false
477 predefined-parameters:
478 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
486 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
487 node-parameters: true
488 current-parameters: false
489 predefined-parameters:
490 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
495 name: Dovetail-proposed_tests
498 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
499 node-parameters: true
500 current-parameters: false
501 predefined-parameters:
502 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
504 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
505 && $BUILD_NUMBER % 2 == 1"
509 name: Dovetail-default
512 - name: 'dovetail-apex-baremetal-default-{scenario_stream}'
513 node-parameters: true
514 current-parameters: false
515 predefined-parameters:
516 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
518 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
519 && $BUILD_NUMBER % 2 == 0"
526 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
527 node-parameters: true
528 current-parameters: false
529 predefined-parameters:
530 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
531 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
535 # Build status is always success due conditional plugin prefetching
536 # build status before multijob phases execute
537 # - conditional-step:
538 # condition-kind: current-status
539 # condition-worst: SUCCESS
540 # condtion-best: SUCCESS
541 # on-evaluation-failure: mark-unstable
543 # - shell: 'echo "Tests Passed"'
546 name: 'apex-daily-{stream}'
548 # Job template for daily build
550 # Required Variables:
551 # stream: branch with - in place of / (eg. stable)
552 # branch: branch (eg. stable)
553 project-type: 'multijob'
555 disabled: '{obj:disable_daily}'
561 - '{project}-defaults'
562 - '{project}-baremetal-{stream}-defaults'
567 gs-pathname: '{gs-pathname}'
572 use-build-blocker: true
583 condition: SUCCESSFUL
585 - name: 'apex-build-{stream}'
586 current-parameters: false
587 predefined-parameters: |
588 GERRIT_BRANCH=$GERRIT_BRANCH
590 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
591 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
592 node-parameters: true
593 kill-phase-on: FAILURE
597 name: 'Verify and upload ISO'
598 condition: SUCCESSFUL
600 - name: 'apex-verify-iso-{stream}'
601 current-parameters: false
602 predefined-parameters: |
603 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
604 GERRIT_BRANCH=$GERRIT_BRANCH
606 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
607 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
608 node-parameters: true
609 kill-phase-on: FAILURE
612 - apex-builder-{stream}
616 name: 'apex-create-snapshot'
618 # Job template for clean
620 # Required Variables:
621 # stream: branch with - in place of / (eg. stable)
627 !include-raw-escape: ./apex-snapshot-create.sh
631 name: 'apex-upload-snapshot'
633 # Job template for clean
635 # Required Variables:
636 # stream: branch with - in place of / (eg. stable)
642 properties-content: ARTIFACT_TYPE=snapshot
643 - 'apex-upload-artifact'
647 name: 'apex-csit-promote-daily-{stream}-{os_version}'
649 # Job template for promoting CSIT Snapshots
651 # Required Variables:
652 # stream: branch with - in place of / (eg. stable)
653 # branch: branch (eg. stable)
654 node: '{virtual-slave}'
655 project-type: 'multijob'
656 disabled: '{disable_promote}'
666 gs-pathname: '{gs-pathname}'
668 name: ARTIFACT_VERSION
670 description: "Used for overriding the ARTIFACT_VERSION"
674 description: "Used for overriding the PROMOTE"
678 use-build-blocker: true
686 - timed: '0 12 * * 0'
690 name: apex-virtual-deploy-test
691 condition: SUCCESSFUL
693 - name: 'apex-virtual-{stream}'
694 current-parameters: true
695 predefined-parameters: |
696 DEPLOY_SCENARIO=os-odl-{os_scenario}-noha
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: true
703 kill-phase-on: FAILURE
707 name: create snapshot
708 condition: SUCCESSFUL
710 - name: 'apex-create-snapshot'
711 current-parameters: false
712 predefined-parameters: |
714 node-parameters: true
715 kill-phase-on: FAILURE
719 name: upload snapshot
720 condition: SUCCESSFUL
722 - name: 'apex-upload-snapshot'
723 current-parameters: false
724 predefined-parameters: |
726 node-parameters: true
727 kill-phase-on: FAILURE
733 name: 'apex-fdio-promote-daily-{stream}'
735 # Job template for promoting CSIT Snapshots
737 # Required Variables:
738 # stream: branch with - in place of / (eg. stable)
739 # branch: branch (eg. stable)
740 node: '{virtual-slave}'
741 project-type: 'multijob'
752 gs-pathname: '{gs-pathname}'
756 use-build-blocker: true
767 condition: SUCCESSFUL
769 - name: 'apex-build-{stream}'
770 current-parameters: false
771 predefined-parameters: |
772 GERRIT_BRANCH=$GERRIT_BRANCH
773 GERRIT_REFSPEC=$GERRIT_REFSPEC
774 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
775 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
776 node-parameters: false
777 kill-phase-on: FAILURE
782 condition: SUCCESSFUL
784 - name: 'apex-deploy-virtual-{stream}'
785 current-parameters: false
786 predefined-parameters: |
787 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
789 GERRIT_BRANCH=$GERRIT_BRANCH
790 GERRIT_REFSPEC=$GERRIT_REFSPEC
791 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
792 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
794 node-parameters: true
795 kill-phase-on: FAILURE
799 name: create snapshot
800 condition: SUCCESSFUL
802 - name: 'apex-create-snapshot'
803 current-parameters: false
804 predefined-parameters: |
806 node-parameters: true
807 kill-phase-on: FAILURE
811 name: upload snapshot
812 condition: SUCCESSFUL
814 - name: 'apex-upload-snapshot'
815 current-parameters: false
816 predefined-parameters: |
818 node-parameters: true
819 kill-phase-on: FAILURE
825 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
827 project-type: 'multijob'
840 - '{project}-defaults'
845 gs-pathname: '{gs-pathname}'
847 name: DEPLOY_SCENARIO
848 default: 'os-nosdn-nofeature-ha'
849 description: "Scenario to deploy with."
852 default: https://gerrit.opnfv.org/gerrit/$PROJECT
853 description: 'Git URL to use on this Jenkins Slave'
856 default: /root/.ssh/id_rsa
857 description: 'SSH key to use for Apex'
862 use-build-blocker: true
867 - 'apex-.*-promote.*'
869 - 'apex-.+-baremetal-.+'
876 - description-setter:
877 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
879 name: 'Baremetal Deploy'
880 condition: SUCCESSFUL
882 - name: 'apex-deploy-baremetal-{stream}'
883 node-parameters: true
884 current-parameters: true
885 predefined-parameters: |
887 GERRIT_BRANCH=$GERRIT_BRANCH
889 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
890 kill-phase-on: FAILURE
897 - name: 'yardstick-apex-baremetal-daily-{stream}'
898 node-parameters: true
899 current-parameters: false
900 predefined-parameters:
901 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
906 # Dovetail Danube test job
908 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
910 project-type: 'multijob'
917 - '{project}-defaults'
920 branch: 'stable/danube'
922 gs-pathname: '/danube'
924 name: DEPLOY_SCENARIO
925 default: 'os-nosdn-nofeature-ha'
926 description: "Scenario to deploy with."
931 use-build-blocker: true
936 - 'apex-.*-promote.*'
940 - timed: '' # '0 1 * * *'
943 - description-setter:
944 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
946 name: 'Baremetal Deploy'
947 condition: SUCCESSFUL
949 - name: 'apex-deploy-baremetal-danube'
950 node-parameters: true
951 current-parameters: true
952 predefined-parameters: |
954 GERRIT_BRANCH=$GERRIT_BRANCH
956 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
957 kill-phase-on: FAILURE
964 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
965 node-parameters: true
966 current-parameters: false
967 predefined-parameters:
968 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
973 ########################
975 ########################
982 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
984 name: ARTIFACT_VERSION
986 description: "Artifact version type"
988 name: BUILD_DIRECTORY
989 default: $WORKSPACE/.build
990 description: "Directory where the build artifact will be located upon the completion of the build."
992 name: CACHE_DIRECTORY
993 default: $HOME/opnfv/apex-cache{gs-pathname}
994 description: "Directory where the cache to be used during the build is located."
995 # yamllint disable rule:line-length
998 default: https://gerrit.opnfv.org/gerrit/$PROJECT
999 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
1000 # yamllint enable rule:line-length
1003 default: '{gs-pathname}'
1004 description: "Version directory where opnfv artifacts are stored in gs repository"
1007 default: $GS_BASE{gs-pathname}
1008 description: "URL to Google Storage."
1012 description: "Flag to know if we should promote/upload snapshot artifacts."
1014 ########################
1016 ########################
1017 {% for stream in scenarios %}
1018 # {{ stream }} Builder
1020 name: apex-builder-{{ stream }}
1023 name: Baremetal Deploy and Test Phase
1024 condition: SUCCESSFUL
1026 {%- for scenario in scenarios[stream] %}
1027 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1028 node-parameters: false
1029 current-parameters: false
1030 predefined-parameters: |
1032 kill-phase-on: NEVER
1039 name: 'apex-upload-artifact'
1042 !include-raw: ./apex-upload-artifact.sh
1045 name: 'apex-download-artifact'
1048 !include-raw: ./apex-download-artifact.sh
1054 !include-raw: ./apex-deploy.sh
1057 name: 'apex-fetch-logs'
1060 !include-raw: ./apex-fetch-logs.sh
1062 #######################
1064 ########################
1068 - timed: '0 0 1-31/2 * *'
1073 - timed: '0 0 2-30/2 * *'
1076 name: 'apex-euphrates'
1078 - timed: '0 0 2-30/2 * *'
1083 - timed: '0 3 1 1 7'