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
297 node-parameters: true
298 kill-phase-on: FAILURE
305 - name: 'functest-apex-virtual-suite-{stream}'
306 current-parameters: false
307 predefined-parameters: |
308 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
309 FUNCTEST_SUITE_NAME=healthcheck
310 GERRIT_BRANCH=$GERRIT_BRANCH
311 GERRIT_REFSPEC=$GERRIT_REFSPEC
312 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
313 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
314 node-parameters: true
319 name: apex-fetch-logs
321 - name: 'apex-fetch-logs-{stream}'
322 current-parameters: false
323 predefined-parameters: |
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 # Baremetal Deploy and Test
335 name: 'apex-{scenario}-baremetal-{scenario_stream}'
337 project-type: 'multijob'
345 - '{project}-defaults'
346 - '{project}-baremetal-{scenario_stream}-defaults'
351 gs-pathname: '{gs-pathname}'
353 name: DEPLOY_SCENARIO
354 default: '{scenario}'
355 description: "Scenario to deploy with."
360 use-build-blocker: true
365 - 'apex-.*-promote.*'
367 - 'apex-.+-baremetal-.+'
374 - description-setter:
375 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
377 name: 'Baremetal Deploy'
378 condition: SUCCESSFUL
379 execution-type: SEQUENTIALLY
381 - name: 'apex-deploy-baremetal-{scenario_stream}'
382 node-parameters: true
383 current-parameters: true
384 predefined-parameters: |
386 GERRIT_BRANCH=$GERRIT_BRANCH
388 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
392 - name: 'apex-fetch-logs-{scenario_stream}'
393 current-parameters: true
394 predefined-parameters: |
395 GERRIT_BRANCH=$GERRIT_BRANCH
397 node-parameters: true
402 name: 'OPNFV Test Suite'
405 - name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
406 node-parameters: true
407 current-parameters: false
408 predefined-parameters:
409 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
414 name: apex-fetch-logs
416 - name: 'apex-fetch-logs-{scenario_stream}'
417 current-parameters: true
418 predefined-parameters: |
419 GERRIT_BRANCH=$GERRIT_BRANCH
421 node-parameters: true
428 !include-raw-escape: ./update-build-result.groovy
432 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
434 project-type: 'multijob'
439 - '{project}-defaults'
440 - '{project}-baremetal-{scenario_stream}-defaults'
445 gs-pathname: '{gs-pathname}'
447 name: DEPLOY_SCENARIO
448 default: '{scenario}'
449 description: "Scenario to deploy with."
454 use-build-blocker: true
460 - 'apex-testsuite-.+-baremetal-.+'
467 - description-setter:
468 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
473 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
474 node-parameters: true
475 current-parameters: false
476 predefined-parameters:
477 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
485 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
486 node-parameters: true
487 current-parameters: false
488 predefined-parameters:
489 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
494 name: Dovetail-proposed_tests
497 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
498 node-parameters: true
499 current-parameters: false
500 predefined-parameters:
501 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
503 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
504 && $BUILD_NUMBER % 2 == 1"
508 name: Dovetail-default
511 - name: 'dovetail-apex-baremetal-default-{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/
518 && $BUILD_NUMBER % 2 == 0"
525 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
526 node-parameters: true
527 current-parameters: false
528 predefined-parameters:
529 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
530 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
534 # Build status is always success due conditional plugin prefetching
535 # build status before multijob phases execute
536 # - conditional-step:
537 # condition-kind: current-status
538 # condition-worst: SUCCESS
539 # condtion-best: SUCCESS
540 # on-evaluation-failure: mark-unstable
542 # - shell: 'echo "Tests Passed"'
545 name: 'apex-daily-{stream}'
547 # Job template for daily build
549 # Required Variables:
550 # stream: branch with - in place of / (eg. stable)
551 # branch: branch (eg. stable)
552 project-type: 'multijob'
554 disabled: '{obj:disable_daily}'
560 - '{project}-defaults'
561 - '{project}-baremetal-{stream}-defaults'
566 gs-pathname: '{gs-pathname}'
571 use-build-blocker: true
582 condition: SUCCESSFUL
584 - name: 'apex-build-{stream}'
585 current-parameters: false
586 predefined-parameters: |
587 GERRIT_BRANCH=$GERRIT_BRANCH
589 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
590 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
591 node-parameters: true
592 kill-phase-on: FAILURE
596 name: 'Verify and upload ISO'
597 condition: SUCCESSFUL
599 - name: 'apex-verify-iso-{stream}'
600 current-parameters: false
601 predefined-parameters: |
602 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
603 GERRIT_BRANCH=$GERRIT_BRANCH
605 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
606 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
607 node-parameters: true
608 kill-phase-on: FAILURE
611 - apex-builder-{stream}
615 name: 'apex-create-snapshot'
617 # Job template for clean
619 # Required Variables:
620 # stream: branch with - in place of / (eg. stable)
626 !include-raw-escape: ./apex-snapshot-create.sh
630 name: 'apex-upload-snapshot'
632 # Job template for clean
634 # Required Variables:
635 # stream: branch with - in place of / (eg. stable)
641 properties-content: ARTIFACT_TYPE=snapshot
642 - 'apex-upload-artifact'
646 name: 'apex-csit-promote-daily-{stream}-{os_version}'
648 # Job template for promoting CSIT Snapshots
650 # Required Variables:
651 # stream: branch with - in place of / (eg. stable)
652 # branch: branch (eg. stable)
653 node: '{virtual-slave}'
654 project-type: 'multijob'
655 disabled: '{disable_promote}'
665 gs-pathname: '{gs-pathname}'
667 name: ARTIFACT_VERSION
669 description: "Used for overriding the ARTIFACT_VERSION"
673 use-build-blocker: true
681 - timed: '0 12 * * 0'
685 name: apex-virtual-deploy-test
686 condition: SUCCESSFUL
688 - name: 'apex-virtual-{stream}'
689 current-parameters: true
690 predefined-parameters: |
691 DEPLOY_SCENARIO=os-odl-{os_scenario}-noha
693 GERRIT_BRANCH=$GERRIT_BRANCH
694 GERRIT_REFSPEC=$GERRIT_REFSPEC
695 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
696 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
698 node-parameters: true
699 kill-phase-on: FAILURE
703 name: create snapshot
704 condition: SUCCESSFUL
706 - name: 'apex-create-snapshot'
707 current-parameters: false
708 predefined-parameters: |
710 node-parameters: true
711 kill-phase-on: FAILURE
715 name: upload snapshot
716 condition: SUCCESSFUL
718 - name: 'apex-upload-snapshot'
719 current-parameters: false
720 predefined-parameters: |
722 node-parameters: true
723 kill-phase-on: FAILURE
729 name: 'apex-fdio-promote-daily-{stream}'
731 # Job template for promoting CSIT Snapshots
733 # Required Variables:
734 # stream: branch with - in place of / (eg. stable)
735 # branch: branch (eg. stable)
736 node: '{virtual-slave}'
737 project-type: 'multijob'
748 gs-pathname: '{gs-pathname}'
752 use-build-blocker: true
763 condition: SUCCESSFUL
765 - name: 'apex-build-{stream}'
766 current-parameters: false
767 predefined-parameters: |
768 GERRIT_BRANCH=$GERRIT_BRANCH
769 GERRIT_REFSPEC=$GERRIT_REFSPEC
770 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
771 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
772 node-parameters: false
773 kill-phase-on: FAILURE
778 condition: SUCCESSFUL
780 - name: 'apex-deploy-virtual-{stream}'
781 current-parameters: false
782 predefined-parameters: |
783 DEPLOY_SCENARIO=os-odl_netvirt-fdio-noha
785 GERRIT_BRANCH=$GERRIT_BRANCH
786 GERRIT_REFSPEC=$GERRIT_REFSPEC
787 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
788 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
790 node-parameters: true
791 kill-phase-on: FAILURE
795 name: create snapshot
796 condition: SUCCESSFUL
798 - name: 'apex-create-snapshot'
799 current-parameters: false
800 predefined-parameters: |
802 node-parameters: true
803 kill-phase-on: FAILURE
807 name: upload snapshot
808 condition: SUCCESSFUL
810 - name: 'apex-upload-snapshot'
811 current-parameters: false
812 predefined-parameters: |
814 node-parameters: true
815 kill-phase-on: FAILURE
821 name: 'apex-flex-daily-os-nosdn-nofeature-ha-{stream}'
823 project-type: 'multijob'
836 - '{project}-defaults'
841 gs-pathname: '{gs-pathname}'
843 name: DEPLOY_SCENARIO
844 default: 'os-nosdn-nofeature-ha'
845 description: "Scenario to deploy with."
848 default: https://gerrit.opnfv.org/gerrit/$PROJECT
849 description: 'Git URL to use on this Jenkins Slave'
852 default: /root/.ssh/id_rsa
853 description: 'SSH key to use for Apex'
858 use-build-blocker: true
863 - 'apex-.*-promote.*'
865 - 'apex-.+-baremetal-.+'
872 - description-setter:
873 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
875 name: 'Baremetal Deploy'
876 condition: SUCCESSFUL
878 - name: 'apex-deploy-baremetal-{stream}'
879 node-parameters: true
880 current-parameters: true
881 predefined-parameters: |
883 GERRIT_BRANCH=$GERRIT_BRANCH
885 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
886 kill-phase-on: FAILURE
893 - name: 'yardstick-apex-baremetal-daily-{stream}'
894 node-parameters: true
895 current-parameters: false
896 predefined-parameters:
897 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
902 # Dovetail Danube test job
904 name: 'apex-dovetail-daily-os-nosdn-nofeature-ha-baremetal-danube'
906 project-type: 'multijob'
913 - '{project}-defaults'
916 branch: 'stable/danube'
918 gs-pathname: '/danube'
920 name: DEPLOY_SCENARIO
921 default: 'os-nosdn-nofeature-ha'
922 description: "Scenario to deploy with."
927 use-build-blocker: true
932 - 'apex-.*-promote.*'
936 - timed: '' # '0 1 * * *'
939 - description-setter:
940 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
942 name: 'Baremetal Deploy'
943 condition: SUCCESSFUL
945 - name: 'apex-deploy-baremetal-danube'
946 node-parameters: true
947 current-parameters: true
948 predefined-parameters: |
950 GERRIT_BRANCH=$GERRIT_BRANCH
952 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
953 kill-phase-on: FAILURE
960 - name: 'dovetail-apex-baremetal-proposed_tests-danube'
961 node-parameters: true
962 current-parameters: false
963 predefined-parameters:
964 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
969 ########################
971 ########################
978 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
980 name: ARTIFACT_VERSION
982 description: "Artifact version type"
984 name: BUILD_DIRECTORY
985 default: $WORKSPACE/.build
986 description: "Directory where the build artifact will be located upon the completion of the build."
988 name: CACHE_DIRECTORY
989 default: $HOME/opnfv/apex-cache{gs-pathname}
990 description: "Directory where the cache to be used during the build is located."
991 # yamllint disable rule:line-length
994 default: https://gerrit.opnfv.org/gerrit/$PROJECT
995 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
996 # yamllint enable rule:line-length
999 default: '{gs-pathname}'
1000 description: "Version directory where opnfv artifacts are stored in gs repository"
1003 default: $GS_BASE{gs-pathname}
1004 description: "URL to Google Storage."
1008 description: "Flag to know if we should promote/upload snapshot artifacts."
1010 ########################
1012 ########################
1013 {% for stream in scenarios %}
1014 # {{ stream }} Builder
1016 name: apex-builder-{{ stream }}
1019 name: Baremetal Deploy and Test Phase
1020 condition: SUCCESSFUL
1022 {%- for scenario in scenarios[stream] %}
1023 - name: 'apex-{{ scenario }}-baremetal-{{ stream }}'
1024 node-parameters: false
1025 current-parameters: false
1026 predefined-parameters: |
1028 kill-phase-on: NEVER
1035 name: 'apex-upload-artifact'
1038 !include-raw: ./apex-upload-artifact.sh
1041 name: 'apex-download-artifact'
1044 !include-raw: ./apex-download-artifact.sh
1050 !include-raw: ./apex-deploy.sh
1053 name: 'apex-fetch-logs'
1056 !include-raw: ./apex-fetch-logs.sh
1058 #######################
1060 ########################
1064 - timed: '0 0 1-31/2 * *'
1069 - timed: '0 0 2-30/2 * *'
1072 name: 'apex-euphrates'
1074 - timed: '0 0 2-30/2 * *'
1079 - timed: '0 3 1 1 7'