blob: c98397a5a4542a6d4bf667273da12dc06f32db4e [file] [log] [blame]
pierventre65d85a22020-07-21 20:30:20 +02001---
2# Run Makefile targets and optionally collect unit test data
3
4- job-template:
5 id: 'private-make-test'
6 name: 'private-make-test{name-extension}_{project}'
7
8 description: |
9 Created by {id} job-template from ci-management/jjb/templates/private-make-test.yaml<br/>
10 Runs make with the following test targets - '{make-test-targets}' and with the<br/>
11 following env. variables - '{make-test-vars}'
12
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:
pierventrea3a6cd62020-08-31 19:16:14 +020022 - onf-infra-onfstaff-private:
pierventre65d85a22020-07-21 20:30:20 +020023 - onf-infra-properties:
24 build-days-to-keep: '{build-days-to-keep}'
25 artifact-num-to-keep: '{artifact-num-to-keep}'
26
27 wrappers:
pierventre65d85a22020-07-21 20:30:20 +020028 - credentials-binding:
29 - username-password-separated:
30 credential-id: docker-artifact-push-credentials
31 username: DOCKERHUB_USERNAME
32 password: DOCKERHUB_PASSWORD
pierventref0183f92020-10-05 22:40:49 +020033 - lf-infra-wrappers-common:
34 build-timeout: "{build-timeout}"
35 - ssh-agent-credentials:
36 users:
37 - '{jenkins-ssh-credential}'
38 - '{github-onf-bot-ssh-credential}'
39 - '{github-omec-project-ssh-credential}'
pierventre65d85a22020-07-21 20:30:20 +020040
41 scm:
42 - onf-infra-gerrit-scm:
43 git-url: '$GIT_URL/$GERRIT_PROJECT'
44 refspec: '$GERRIT_REFSPEC'
45 branch: '$GERRIT_BRANCH'
46 submodule-recursive: '{submodule-recursive}'
47 choosing-strategy: gerrit
48 jenkins-ssh-credential: '{jenkins-ssh-credential}'
49 basedir: '{project}'
50
51 node: '{build-node}'
52 project-type: freestyle
53 concurrent: true
54
55 builders:
56 - inject:
57 properties-content: |
58 {make-test-vars}
59 DEST_GOPATH={dest-gopath}
60 MAKE_TEST_TARGETS={make-test-targets}
61 MAKE_TEST_KEEP_GOING={make-test-keep-going}
62 - shell: !include-raw-escape: ../shell/make-test.sh
63
64 publishers:
65 - junit:
66 results: "**/*results.xml,**/*report.xml"
67 allow-empty-results: '{junit-allow-empty-results}'
68 - cobertura:
69 report-file: "**/*coverage.xml"
70 targets:
71 - files:
72 healthy: 80
73 unhealthy: 0
74 failing: 0
75 - method:
76 healthy: 50
77 unhealthy: 0
78 failing: 0