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}' |
| 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: |
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: |
| 28 | - lf-infra-wrappers: |
| 29 | build-timeout: '{build-timeout}' |
| 30 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 31 | - credentials-binding: |
| 32 | - username-password-separated: |
| 33 | credential-id: docker-artifact-push-credentials |
| 34 | username: DOCKERHUB_USERNAME |
| 35 | password: DOCKERHUB_PASSWORD |
| 36 | - text: |
| 37 | credential-id: 64fe2b1a-b33a-4f13-8442-ad8360434003 |
| 38 | variable: OMECPROJECT_API |
pierventre | 63d7e2c | 2020-07-30 17:49:02 +0200 | [diff] [blame] | 39 | - text: |
| 40 | credential-id: onos-builder |
| 41 | variable: ONOS_BUILDER_API |
pierventre | 65d85a2 | 2020-07-21 20:30:20 +0200 | [diff] [blame] | 42 | |
| 43 | scm: |
| 44 | - onf-infra-gerrit-scm: |
| 45 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 46 | refspec: '$GERRIT_REFSPEC' |
| 47 | branch: '$GERRIT_BRANCH' |
| 48 | submodule-recursive: '{submodule-recursive}' |
| 49 | choosing-strategy: gerrit |
| 50 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 51 | basedir: '{project}' |
| 52 | |
| 53 | node: '{build-node}' |
| 54 | project-type: freestyle |
| 55 | concurrent: true |
| 56 | |
| 57 | builders: |
| 58 | - inject: |
| 59 | properties-content: | |
| 60 | {make-test-vars} |
| 61 | DEST_GOPATH={dest-gopath} |
| 62 | MAKE_TEST_TARGETS={make-test-targets} |
| 63 | MAKE_TEST_KEEP_GOING={make-test-keep-going} |
| 64 | - shell: !include-raw-escape: ../shell/make-test.sh |
| 65 | |
| 66 | publishers: |
| 67 | - junit: |
| 68 | results: "**/*results.xml,**/*report.xml" |
| 69 | allow-empty-results: '{junit-allow-empty-results}' |
| 70 | - cobertura: |
| 71 | report-file: "**/*coverage.xml" |
| 72 | targets: |
| 73 | - files: |
| 74 | healthy: 80 |
| 75 | unhealthy: 0 |
| 76 | failing: 0 |
| 77 | - method: |
| 78 | healthy: 50 |
| 79 | unhealthy: 0 |
| 80 | failing: 0 |