Zack Williams | 3403ff4 | 2019-08-13 18:30:42 -0700 | [diff] [blame] | 1 | --- |
| 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/> |
pierventre | e143302 | 2020-07-06 09:34:32 +0200 | [diff] [blame] | 10 | Runs make with the following test targets - '{make-test-targets}' and with the<br/> |
| 11 | following env. variables - '{make-test-vars}' |
Zack Williams | 3403ff4 | 2019-08-13 18:30:42 -0700 | [diff] [blame] | 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 | - onf-infra-properties: |
| 23 | build-days-to-keep: '{build-days-to-keep}' |
| 24 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 25 | |
| 26 | wrappers: |
| 27 | - lf-infra-wrappers: |
| 28 | build-timeout: '{build-timeout}' |
| 29 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 30 | |
| 31 | scm: |
| 32 | - onf-infra-gerrit-scm: |
| 33 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 34 | refspec: '$GERRIT_REFSPEC' |
| 35 | branch: '$GERRIT_BRANCH' |
Zack Williams | 05f0608 | 2020-01-22 14:19:34 -0700 | [diff] [blame] | 36 | submodule-recursive: '{submodule-recursive}' |
Zack Williams | 3403ff4 | 2019-08-13 18:30:42 -0700 | [diff] [blame] | 37 | choosing-strategy: gerrit |
| 38 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 39 | basedir: '{project}' |
| 40 | |
| 41 | node: '{build-node}' |
| 42 | project-type: freestyle |
| 43 | concurrent: true |
| 44 | |
| 45 | builders: |
| 46 | - inject: |
| 47 | properties-content: | |
pierventre | e143302 | 2020-07-06 09:34:32 +0200 | [diff] [blame] | 48 | {make-test-vars} |
Zack Williams | 3403ff4 | 2019-08-13 18:30:42 -0700 | [diff] [blame] | 49 | DEST_GOPATH={dest-gopath} |
| 50 | MAKE_TEST_TARGETS={make-test-targets} |
| 51 | MAKE_TEST_KEEP_GOING={make-test-keep-going} |
| 52 | - shell: !include-raw-escape: ../shell/make-test.sh |
| 53 | |
| 54 | publishers: |
| 55 | - junit: |
| 56 | results: "**/*results.xml,**/*report.xml" |
| 57 | allow-empty-results: '{junit-allow-empty-results}' |
| 58 | - cobertura: |
| 59 | report-file: "**/*coverage.xml" |
| 60 | targets: |
| 61 | - files: |
| 62 | healthy: 80 |
| 63 | unhealthy: 0 |
| 64 | failing: 0 |
| 65 | - method: |
| 66 | healthy: 50 |
| 67 | unhealthy: 0 |
| 68 | failing: 0 |