blob: 4cc99721433ffff7fe0a1a7b9c1a36b7ab5adaae [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}'
pierventre4a959602020-11-02 14:46:19 +01007 disabled: '{disable-job}'
pierventre65d85a22020-07-21 20:30:20 +02008 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
Daniele Moro22b64f42021-06-09 13:56:16 +020033 - credentials-binding:
34 - username-password-separated:
35 credential-id: onf-internal-registry
36 username: ONF_REGISTRY_USERNAME
37 password: ONF_REGISTRY_PASSWORD
pierventref0183f92020-10-05 22:40:49 +020038 - lf-infra-wrappers-common:
39 build-timeout: "{build-timeout}"
40 - ssh-agent-credentials:
41 users:
pierventref0183f92020-10-05 22:40:49 +020042 - '{github-onf-bot-ssh-credential}'
pierventre65d85a22020-07-21 20:30:20 +020043
44 scm:
45 - onf-infra-gerrit-scm:
46 git-url: '$GIT_URL/$GERRIT_PROJECT'
47 refspec: '$GERRIT_REFSPEC'
48 branch: '$GERRIT_BRANCH'
49 submodule-recursive: '{submodule-recursive}'
50 choosing-strategy: gerrit
51 jenkins-ssh-credential: '{jenkins-ssh-credential}'
52 basedir: '{project}'
53
54 node: '{build-node}'
55 project-type: freestyle
56 concurrent: true
57
58 builders:
59 - inject:
60 properties-content: |
61 {make-test-vars}
62 DEST_GOPATH={dest-gopath}
63 MAKE_TEST_TARGETS={make-test-targets}
64 MAKE_TEST_KEEP_GOING={make-test-keep-going}
Daniele Moro22b64f42021-06-09 13:56:16 +020065 - shell: !include-raw-escape: ../shell/docker-login.sh
pierventre65d85a22020-07-21 20:30:20 +020066 - shell: !include-raw-escape: ../shell/make-test.sh
67
68 publishers:
69 - junit:
70 results: "**/*results.xml,**/*report.xml"
71 allow-empty-results: '{junit-allow-empty-results}'
72 - cobertura:
73 report-file: "**/*coverage.xml"
74 targets:
75 - files:
76 healthy: 80
77 unhealthy: 0
78 failing: 0
79 - method:
80 healthy: 50
81 unhealthy: 0
82 failing: 0