Zack Williams | 2d0de7e | 2018-07-06 17:59:17 -0700 | [diff] [blame] | 1 | --- |
| 2 | # verification jobe for voltha |
| 3 | |
| 4 | - job-template: |
| 5 | id: 'voltha-unit-test' |
| 6 | name: '{project}_unit-test' |
| 7 | |
| 8 | description: | |
| 9 | Created by {id} job-template from ci-management/jjb/voltha-unit-test.yaml |
| 10 | |
| 11 | triggers: |
| 12 | - cord-infra-gerrit-trigger-patchset: |
| 13 | gerrit-server-name: '{gerrit-server-name}' |
| 14 | project-regexp: '^{project}$' |
| 15 | branch-regexp: '{branch-regexp}' |
| 16 | file-include-regexp: '{all-files-regexp}' |
| 17 | dependency-jobs: '{dependency-jobs}' |
| 18 | |
| 19 | properties: |
Joey Armstrong | e04fe1f | 2022-08-25 13:48:13 -0400 | [diff] [blame] | 20 | - onf-infra-volthadevs-permissions |
Zack Williams | 2d0de7e | 2018-07-06 17:59:17 -0700 | [diff] [blame] | 21 | - cord-infra-properties: |
| 22 | build-days-to-keep: '{build-days-to-keep}' |
| 23 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 24 | |
| 25 | wrappers: |
| 26 | - lf-infra-wrappers: |
| 27 | build-timeout: 20 |
| 28 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 29 | |
| 30 | scm: |
| 31 | - lf-infra-gerrit-scm: |
| 32 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 33 | refspec: '$GERRIT_REFSPEC' |
| 34 | branch: '$GERRIT_BRANCH' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 35 | submodule-disable: '{submodule-disable}' |
Zack Williams | 2d0de7e | 2018-07-06 17:59:17 -0700 | [diff] [blame] | 36 | submodule-recursive: 'false' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 37 | submodule-timeout: '{submodule-timeout}' |
Zack Williams | 2d0de7e | 2018-07-06 17:59:17 -0700 | [diff] [blame] | 38 | choosing-strategy: gerrit |
| 39 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 40 | |
Hung-Wei Chiu | f6cbde2 | 2021-04-22 22:15:23 -0700 | [diff] [blame] | 41 | node: 'ubuntu18.04-basebuild-4c-8g' |
Zack Williams | 2d0de7e | 2018-07-06 17:59:17 -0700 | [diff] [blame] | 42 | project-type: freestyle |
| 43 | concurrent: true |
| 44 | |
| 45 | builders: |
| 46 | - shell: | |
| 47 | #!/usr/bin/env bash |
Zack Williams | ecec905 | 2018-07-09 16:23:19 -0700 | [diff] [blame] | 48 | set -e -o pipefail |
Zack Williams | 2d0de7e | 2018-07-06 17:59:17 -0700 | [diff] [blame] | 49 | |
| 50 | rm -rf venv-linux |
| 51 | source ./env.sh |
| 52 | |
| 53 | make utest-with-coverage |
| 54 | |
Zack Williams | ecec905 | 2018-07-09 16:23:19 -0700 | [diff] [blame] | 55 | publishers: |
| 56 | - junit: |
Zack Williams | e8e5ebe | 2019-01-25 15:24:01 -0700 | [diff] [blame] | 57 | results: "**/nosetests.xml,**/junit-report.xml" |
Zack Williams | ecec905 | 2018-07-09 16:23:19 -0700 | [diff] [blame] | 58 | - cobertura: |
| 59 | report-file: "**/coverage.xml" |
| 60 | targets: |
| 61 | - files: |
| 62 | healthy: 80 |
| 63 | unhealthy: 0 |
| 64 | failing: 0 |
| 65 | - method: |
| 66 | healthy: 50 |
| 67 | unhealthy: 0 |
| 68 | failing: 0 |
Joey Armstrong | af679da | 2023-01-31 14:22:41 -0500 | [diff] [blame] | 69 | |
| 70 | # [EOF] |