blob: 3ebca62aaae1922042c7a5d032957c63086940b7 [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
Joey Armstrongc5194c42024-07-23 15:31:18 -040041 # node: 'ubuntu18.04-basebuild-4c-8g'
Joey Armstrong6fb53fb2024-08-27 16:44:29 -040042 node: 'ubuntu18.04-basebuild-8c-15g'
Zack Williams2d0de7e2018-07-06 17:59:17 -070043 project-type: freestyle
44 concurrent: true
45
46 builders:
47 - shell: |
48 #!/usr/bin/env bash
Zack Williamsecec9052018-07-09 16:23:19 -070049 set -e -o pipefail
Zack Williams2d0de7e2018-07-06 17:59:17 -070050
51 rm -rf venv-linux
52 source ./env.sh
53
54 make utest-with-coverage
55
Zack Williamsecec9052018-07-09 16:23:19 -070056 publishers:
57 - junit:
Zack Williamse8e5ebe2019-01-25 15:24:01 -070058 results: "**/nosetests.xml,**/junit-report.xml"
Zack Williamsecec9052018-07-09 16:23:19 -070059 - 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 Armstrongaf679da2023-01-31 14:22:41 -050070
71# [EOF]