blob: 1ac19a248931de68f694c20c5c836cf5b7eab694 [file] [log] [blame]
Zack Williams2d0de7e2018-07-06 17:59:17 -07001---
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 Armstronge04fe1f2022-08-25 13:48:13 -040020 - onf-infra-volthadevs-permissions
Zack Williams2d0de7e2018-07-06 17:59:17 -070021 - 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 Williamsccc14742020-01-22 13:15:59 -070035 submodule-disable: '{submodule-disable}'
Zack Williams2d0de7e2018-07-06 17:59:17 -070036 submodule-recursive: 'false'
Zack Williamsccc14742020-01-22 13:15:59 -070037 submodule-timeout: '{submodule-timeout}'
Zack Williams2d0de7e2018-07-06 17:59:17 -070038 choosing-strategy: gerrit
39 jenkins-ssh-credential: '{jenkins-ssh-credential}'
40
Hung-Wei Chiuf6cbde22021-04-22 22:15:23 -070041 node: 'ubuntu18.04-basebuild-4c-8g'
Zack Williams2d0de7e2018-07-06 17:59:17 -070042 project-type: freestyle
43 concurrent: true
44
45 builders:
46 - shell: |
47 #!/usr/bin/env bash
Zack Williamsecec9052018-07-09 16:23:19 -070048 set -e -o pipefail
Zack Williams2d0de7e2018-07-06 17:59:17 -070049
50 rm -rf venv-linux
51 source ./env.sh
52
53 make utest-with-coverage
54
Zack Williamsecec9052018-07-09 16:23:19 -070055 publishers:
56 - junit:
Zack Williamse8e5ebe2019-01-25 15:24:01 -070057 results: "**/nosetests.xml,**/junit-report.xml"
Zack Williamsecec9052018-07-09 16:23:19 -070058 - 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