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 | |
Joey Armstrong | c5194c4 | 2024-07-23 15:31:18 -0400 | [diff] [blame] | 41 | # node: 'ubuntu18.04-basebuild-4c-8g' |
Joey Armstrong | 6fb53fb | 2024-08-27 16:44:29 -0400 | [diff] [blame] | 42 | node: 'ubuntu18.04-basebuild-8c-15g' |
Zack Williams | 2d0de7e | 2018-07-06 17:59:17 -0700 | [diff] [blame] | 43 | project-type: freestyle |
| 44 | concurrent: true |
| 45 | |
| 46 | builders: |
| 47 | - shell: | |
| 48 | #!/usr/bin/env bash |
Zack Williams | ecec905 | 2018-07-09 16:23:19 -0700 | [diff] [blame] | 49 | set -e -o pipefail |
Zack Williams | 2d0de7e | 2018-07-06 17:59:17 -0700 | [diff] [blame] | 50 | |
| 51 | rm -rf venv-linux |
| 52 | source ./env.sh |
| 53 | |
| 54 | make utest-with-coverage |
| 55 | |
Zack Williams | ecec905 | 2018-07-09 16:23:19 -0700 | [diff] [blame] | 56 | publishers: |
| 57 | - junit: |
Zack Williams | e8e5ebe | 2019-01-25 15:24:01 -0700 | [diff] [blame] | 58 | results: "**/nosetests.xml,**/junit-report.xml" |
Zack Williams | ecec905 | 2018-07-09 16:23:19 -0700 | [diff] [blame] | 59 | - cobertura: |
| 60 | report-file: "**/coverage.xml" |
| 61 | targets: |
| 62 | - files: |
| 63 | healthy: 80 |
| 64 | unhealthy: 0 |
| 65 | failing: 0 |
| 66 | - method: |
| 67 | healthy: 50 |
| 68 | unhealthy: 0 |
| 69 | failing: 0 |
Joey Armstrong | af679da | 2023-01-31 14:22:41 -0500 | [diff] [blame] | 70 | |
| 71 | # [EOF] |