blob: 2dcd53b64c6cdf827fb0dc6641228c7e22bd7a09 [file] [log] [blame]
Zack Williams3403ff42019-08-13 18:30:42 -07001---
2# Run Makefile targets and optionally collect unit test data
3
4- job-template:
5 id: 'make-test'
6 name: 'make-test{name-extension}_{project}'
7
8 description: |
9 Created by {id} job-template from ci-management/jjb/templates/make-test.yaml<br/>
pierventree1433022020-07-06 09:34:32 +020010 Runs make with the following test targets - '{make-test-targets}' and with the<br/>
11 following env. variables - '{make-test-vars}'
Zack Williams3403ff42019-08-13 18:30:42 -070012
13 triggers:
14 - onf-infra-gerrit-trigger-patchset:
15 gerrit-server-name: '{gerrit-server-name}'
16 project-regexp: '^{project}$'
17 branch-regexp: '{branch-regexp}'
18 dependency-jobs: '{dependency-jobs}'
19 file-include-regexp: '{all-files-regexp}'
20
21 properties:
22 - onf-infra-properties:
23 build-days-to-keep: '{build-days-to-keep}'
24 artifact-num-to-keep: '{artifact-num-to-keep}'
25
26 wrappers:
27 - lf-infra-wrappers:
28 build-timeout: '{build-timeout}'
29 jenkins-ssh-credential: '{jenkins-ssh-credential}'
30
31 scm:
32 - onf-infra-gerrit-scm:
33 git-url: '$GIT_URL/$GERRIT_PROJECT'
34 refspec: '$GERRIT_REFSPEC'
35 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -070036 submodule-recursive: '{submodule-recursive}'
Zack Williams3403ff42019-08-13 18:30:42 -070037 choosing-strategy: gerrit
38 jenkins-ssh-credential: '{jenkins-ssh-credential}'
39 basedir: '{project}'
40
41 node: '{build-node}'
42 project-type: freestyle
43 concurrent: true
44
45 builders:
46 - inject:
47 properties-content: |
pierventree1433022020-07-06 09:34:32 +020048 {make-test-vars}
Zack Williams3403ff42019-08-13 18:30:42 -070049 DEST_GOPATH={dest-gopath}
50 MAKE_TEST_TARGETS={make-test-targets}
51 MAKE_TEST_KEEP_GOING={make-test-keep-going}
52 - shell: !include-raw-escape: ../shell/make-test.sh
53
54 publishers:
55 - junit:
56 results: "**/*results.xml,**/*report.xml"
57 allow-empty-results: '{junit-allow-empty-results}'
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