blob: 09b9ecdb40da19803bc046a3708e2b2f2ca183b4 [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:
22 - raw:
23 xml: |
24 <hudson.security.AuthorizationMatrixProperty>
25 <inheritanceStrategy class="org.jenkinsci.plugins.matrixauth.inheritance.NonInheritingStrategy"/>
26 <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Create:JenkinsPowerusers</permission>
27 <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Delete:JenkinsPowerusers</permission>
28 <permission>com.cloudbees.plugins.credentials.CredentialsProvider.ManageDomains:JenkinsPowerusers</permission>
29 <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Update:JenkinsPowerusers</permission>
30 <permission>com.cloudbees.plugins.credentials.CredentialsProvider.View:JenkinsPowerusers</permission>
31 <permission>hudson.model.Item.Build:JenkinsPowerusers</permission>
32 <permission>hudson.model.Item.Cancel:JenkinsPowerusers</permission>
33 <permission>hudson.model.Item.Configure:JenkinsPowerusers</permission>
34 <permission>hudson.model.Item.Delete:JenkinsPowerusers</permission>
35 <permission>hudson.model.Item.Discover:JenkinsPowerusers</permission>
36 <permission>hudson.model.Item.Discover:ONFStaff</permission>
37 <permission>hudson.model.Item.ExtendedRead:JenkinsPowerusers</permission>
38 <permission>hudson.model.Item.Move:JenkinsPowerusers</permission>
39 <permission>hudson.model.Item.Read:JenkinsPowerusers</permission>
40 <permission>hudson.model.Item.Read:ONFStaff</permission>
41 <permission>hudson.model.Item.Workspace:JenkinsPowerusers</permission>
42 <permission>hudson.model.Run.Delete:JenkinsPowerusers</permission>
43 <permission>hudson.model.Run.Replay:JenkinsPowerusers</permission>
44 <permission>hudson.model.Run.Update:JenkinsPowerusers</permission>
45 </hudson.security.AuthorizationMatrixProperty>
46 - onf-infra-properties:
47 build-days-to-keep: '{build-days-to-keep}'
48 artifact-num-to-keep: '{artifact-num-to-keep}'
49
50 wrappers:
51 - lf-infra-wrappers:
52 build-timeout: '{build-timeout}'
53 jenkins-ssh-credential: '{jenkins-ssh-credential}'
54 - credentials-binding:
55 - username-password-separated:
56 credential-id: docker-artifact-push-credentials
57 username: DOCKERHUB_USERNAME
58 password: DOCKERHUB_PASSWORD
59 - text:
60 credential-id: 64fe2b1a-b33a-4f13-8442-ad8360434003
61 variable: OMECPROJECT_API
pierventre63d7e2c2020-07-30 17:49:02 +020062 - text:
63 credential-id: onos-builder
64 variable: ONOS_BUILDER_API
pierventre65d85a22020-07-21 20:30:20 +020065
66 scm:
67 - onf-infra-gerrit-scm:
68 git-url: '$GIT_URL/$GERRIT_PROJECT'
69 refspec: '$GERRIT_REFSPEC'
70 branch: '$GERRIT_BRANCH'
71 submodule-recursive: '{submodule-recursive}'
72 choosing-strategy: gerrit
73 jenkins-ssh-credential: '{jenkins-ssh-credential}'
74 basedir: '{project}'
75
76 node: '{build-node}'
77 project-type: freestyle
78 concurrent: true
79
80 builders:
81 - inject:
82 properties-content: |
83 {make-test-vars}
84 DEST_GOPATH={dest-gopath}
85 MAKE_TEST_TARGETS={make-test-targets}
86 MAKE_TEST_KEEP_GOING={make-test-keep-going}
87 - shell: !include-raw-escape: ../shell/make-test.sh
88
89 publishers:
90 - junit:
91 results: "**/*results.xml,**/*report.xml"
92 allow-empty-results: '{junit-allow-empty-results}'
93 - cobertura:
94 report-file: "**/*coverage.xml"
95 targets:
96 - files:
97 healthy: 80
98 unhealthy: 0
99 failing: 0
100 - method:
101 healthy: 50
102 unhealthy: 0
103 failing: 0