pierventre | 65d85a2 | 2020-07-21 20:30:20 +0200 | [diff] [blame] | 1 | --- |
| 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}' |
pierventre | 4a95960 | 2020-11-02 14:46:19 +0100 | [diff] [blame] | 7 | disabled: '{disable-job}' |
pierventre | 65d85a2 | 2020-07-21 20:30:20 +0200 | [diff] [blame] | 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: |
pierventre | a3a6cd6 | 2020-08-31 19:16:14 +0200 | [diff] [blame] | 22 | - onf-infra-onfstaff-private: |
pierventre | 65d85a2 | 2020-07-21 20:30:20 +0200 | [diff] [blame] | 23 | - onf-infra-properties: |
| 24 | build-days-to-keep: '{build-days-to-keep}' |
| 25 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 26 | |
| 27 | wrappers: |
pierventre | 65d85a2 | 2020-07-21 20:30:20 +0200 | [diff] [blame] | 28 | - credentials-binding: |
| 29 | - username-password-separated: |
| 30 | credential-id: docker-artifact-push-credentials |
| 31 | username: DOCKERHUB_USERNAME |
| 32 | password: DOCKERHUB_PASSWORD |
Daniele Moro | 22b64f4 | 2021-06-09 13:56:16 +0200 | [diff] [blame] | 33 | - credentials-binding: |
| 34 | - username-password-separated: |
| 35 | credential-id: onf-internal-registry |
| 36 | username: ONF_REGISTRY_USERNAME |
| 37 | password: ONF_REGISTRY_PASSWORD |
pierventre | f0183f9 | 2020-10-05 22:40:49 +0200 | [diff] [blame] | 38 | - lf-infra-wrappers-common: |
| 39 | build-timeout: "{build-timeout}" |
| 40 | - ssh-agent-credentials: |
| 41 | users: |
pierventre | f0183f9 | 2020-10-05 22:40:49 +0200 | [diff] [blame] | 42 | - '{github-onf-bot-ssh-credential}' |
pierventre | 65d85a2 | 2020-07-21 20:30:20 +0200 | [diff] [blame] | 43 | |
| 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 Moro | 22b64f4 | 2021-06-09 13:56:16 +0200 | [diff] [blame] | 65 | - shell: !include-raw-escape: ../shell/docker-login.sh |
pierventre | 65d85a2 | 2020-07-21 20:30:20 +0200 | [diff] [blame] | 66 | - 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 |