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
301 condition: SUCCESSFUL
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
320 - name: 'apex-fetch-logs-{stream}'
321 current-parameters: false
322 predefined-parameters: |
323 GERRIT_BRANCH=$GERRIT_BRANCH
324 GERRIT_REFSPEC=$GERRIT_REFSPEC
325 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
326 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
327 node-parameters: true
332 # Baremetal Deploy and Test
334 name: 'apex-{scenario}-baremetal-{scenario_stream}'
336 project-type: 'multijob'
344 - '{project}-defaults'
345 - '{project}-baremetal-{scenario_stream}-defaults'
350 gs-pathname: '{gs-pathname}'
352 name: DEPLOY_SCENARIO
353 default: '{scenario}'
354 description: "Scenario to deploy with."
359 use-build-blocker: true
364 - 'apex-.*-promote.*'
366 - 'apex-.+-baremetal-.+'
373 - description-setter:
374 description: "Deployed on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
376 name: 'Baremetal Deploy'
377 condition: SUCCESSFUL
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
387 kill-phase-on: FAILURE
391 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
405 - name: 'apex-fetch-logs'
406 current-parameters: true
407 predefined-parameters: |
408 GERRIT_BRANCH=$GERRIT_BRANCH
410 node-parameters: true
417 !include-raw-escape: ./update-build-result.groovy
421 name: 'apex-testsuite-{scenario}-baremetal-{scenario_stream}'
423 project-type: 'multijob'
428 - '{project}-defaults'
429 - '{project}-baremetal-{scenario_stream}-defaults'
434 gs-pathname: '{gs-pathname}'
436 name: DEPLOY_SCENARIO
437 default: '{scenario}'
438 description: "Scenario to deploy with."
443 use-build-blocker: true
448 - 'apex-.*-promote.*'
450 - 'apex-testsuite-.+-baremetal-.+'
457 - description-setter:
458 description: "Testing on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
463 - name: 'functest-apex-baremetal-daily-{scenario_stream}'
464 node-parameters: true
465 current-parameters: false
466 predefined-parameters:
467 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
475 - name: 'yardstick-apex-baremetal-daily-{scenario_stream}'
476 node-parameters: true
477 current-parameters: false
478 predefined-parameters:
479 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
484 name: Dovetail-proposed_tests
487 - name: 'dovetail-apex-baremetal-proposed_tests-{scenario_stream}'
488 node-parameters: true
489 current-parameters: false
490 predefined-parameters:
491 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
493 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
494 && $BUILD_NUMBER % 2 == 1"
498 name: Dovetail-default
501 - name: 'dovetail-apex-baremetal-default-{scenario_stream}'
502 node-parameters: true
503 current-parameters: false
504 predefined-parameters:
505 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
507 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-(nosdn-nofeature|odl-bgpvpn)-ha/
508 && $BUILD_NUMBER % 2 == 0"
515 - name: 'storperf-apex-baremetal-daily-{scenario_stream}'
516 node-parameters: true
517 current-parameters: false
518 predefined-parameters:
519 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
520 enable-condition: "def m = '$DEPLOY_SCENARIO' ==~ /os-nosdn-nofeature-ha/"
524 # Build status is always success due conditional plugin prefetching
525 # build status before multijob phases execute
526 # - conditional-step:
527 # condition-kind: current-status
528 # condition-worst: SUCCESS
529 # condtion-best: SUCCESS
530 # on-evaluation-failure: mark-unstable
532 # - shell: 'echo "Tests Passed"'
535 name: 'apex-daily-{stream}'
537 # Job template for daily build
539 # Required Variables:
540 # stream: branch with - in place of / (eg. stable)
541 # branch: branch (eg. stable)
542 project-type: 'multijob'
544 disabled: '{obj:disable_daily}'
550 - '{project}-defaults'
551 - '{project}-baremetal-{stream}-defaults'
556 gs-pathname: '{gs-pathname}'
561 use-build-blocker: true
572 condition: SUCCESSFUL
574 - name: 'apex-build-{stream}'
575 current-parameters: false
576 predefined-parameters: |
577 GERRIT_BRANCH=$GERRIT_BRANCH
579 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
580 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
581 node-parameters: true
582 kill-phase-on: FAILURE
586 name: 'Verify and upload ISO'
587 condition: SUCCESSFUL
589 - name: 'apex-verify-iso-{stream}'
590 current-parameters: false
591 predefined-parameters: |
592 BUILD_DIRECTORY=$WORKSPACE/../apex-build-{stream}/.build
593 GERRIT_BRANCH=$GERRIT_BRANCH
595 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
596 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
597 node-parameters: true
598 kill-phase-on: FAILURE
601 - apex-builder-{stream}
605 name: 'apex-create-snapshot'
607 # Job template for clean
609 # Required Variables:
610 # stream: branch with - in place of / (eg. stable)
616 !include-raw-escape: ./apex-snapshot-create.sh
620 name: 'apex-upload-snapshot'
622 # Job template for clean
624 # Required Variables:
625 # stream: branch with - in place of / (eg. stable)
631 properties-content: ARTIFACT_TYPE=snapshot
632 - 'apex-upload-artifact'
636 name: 'apex-csit-promote-daily-{stream}'
638 # Job template for promoting CSIT Snapshots
640 # Required Variables:
641 # stream: branch with - in place of / (eg. stable)
642 # branch: branch (eg. stable)
643 node: '{virtual-slave}'
644 project-type: 'multijob'
645 disabled: '{disable_promote}'
655 gs-pathname: '{gs-pathname}'
659 use-build-blocker: true
668 - timed: '0 12 * * 0'
673 condition: SUCCESSFUL
675 - name: 'apex-deploy-virtual-{stream}'
676 current-parameters: false
677 predefined-parameters: |
678 DEPLOY_SCENARIO=os-odl-{os_version}_upstream-noha
680 GERRIT_BRANCH=$GERRIT_BRANCH
681 GERRIT_REFSPEC=$GERRIT_REFSPEC
682 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
683 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
685 node-parameters: true
686 kill-phase-on: FAILURE
691 condition: SUCCESSFUL
693 - name: 'functest-apex-virtual-suite-{stream}'
694 current-parameters: false
695 predefined-parameters: |
696 DEPLOY_SCENARIO=os-odl-{os_version}_upstream-noha
697 FUNCTEST_SUITE_NAME=tempest_smoke_serial
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'