blob: f8b1c6943e61b0b3051ea21cba677b6e01c866d8 [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/>
10 Runs make with the following test targets - '{make-test-targets}'
11
12 triggers:
13 - onf-infra-gerrit-trigger-patchset:
14 gerrit-server-name: '{gerrit-server-name}'
15 project-regexp: '^{project}$'
16 branch-regexp: '{branch-regexp}'
17 dependency-jobs: '{dependency-jobs}'
18 file-include-regexp: '{all-files-regexp}'
19
20 properties:
21 - onf-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: '{build-timeout}'
28 jenkins-ssh-credential: '{jenkins-ssh-credential}'
29
30 scm:
31 - onf-infra-gerrit-scm:
32 git-url: '$GIT_URL/$GERRIT_PROJECT'
33 refspec: '$GERRIT_REFSPEC'
34 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -070035 submodule-recursive: '{submodule-recursive}'
Zack Williams3403ff42019-08-13 18:30:42 -070036 choosing-strategy: gerrit
37 jenkins-ssh-credential: '{jenkins-ssh-credential}'
38 basedir: '{project}'
39
40 node: '{build-node}'
41 project-type: freestyle
42 concurrent: true
43
44 builders:
45 - inject:
46 properties-content: |
47 DEST_GOPATH={dest-gopath}
48 MAKE_TEST_TARGETS={make-test-targets}
49 MAKE_TEST_KEEP_GOING={make-test-keep-going}
50 - shell: !include-raw-escape: ../shell/make-test.sh
51
52 publishers:
53 - junit:
54 results: "**/*results.xml,**/*report.xml"
55 allow-empty-results: '{junit-allow-empty-results}'
56 - cobertura:
57 report-file: "**/*coverage.xml"
58 targets:
59 - files:
60 healthy: 80
61 unhealthy: 0
62 failing: 0
63 - method:
64 healthy: 50
65 unhealthy: 0
66 failing: 0