Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 1 | --- |
Zack Williams | c3c8393 | 2018-10-30 13:56:37 -0700 | [diff] [blame] | 2 | # maven jobs for Java projects |
Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 3 | |
| 4 | - job-template: |
Kailash Khalasi | 45f4e2c | 2018-05-09 14:09:50 -0700 | [diff] [blame] | 5 | id: maven-install |
| 6 | name: '{project}-gerrit' |
Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 7 | description: | |
| 8 | <!-- Managed by Jenkins Job Builder --> |
Kailash Khalasi | 45f4e2c | 2018-05-09 14:09:50 -0700 | [diff] [blame] | 9 | Created by {id} job-template from ci-management/jjb/maven.yaml |
Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 10 | |
| 11 | node: 'ubuntu16.04-basebuild-1c-2g' |
| 12 | project-type: maven |
| 13 | maven: |
| 14 | root-pom: pom.xml |
Jonathan Hart | 9395e6b | 2018-07-24 14:38:09 -0700 | [diff] [blame] | 15 | goals: 'clean install' |
Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 16 | |
Kailash Khalasi | f3f15bd | 2018-05-09 09:58:52 -0700 | [diff] [blame] | 17 | parameters: |
| 18 | - string: |
Kailash Khalasi | a5ca0c7 | 2018-05-09 12:00:21 -0700 | [diff] [blame] | 19 | name: GERRIT_BRANCH |
| 20 | default: 'master' |
Kailash Khalasi | f3f15bd | 2018-05-09 09:58:52 -0700 | [diff] [blame] | 21 | description: 'Use default when using "Build Now"' |
| 22 | |
| 23 | - string: |
Kailash Khalasi | a5ca0c7 | 2018-05-09 12:00:21 -0700 | [diff] [blame] | 24 | name: GERRIT_REFSPEC |
| 25 | default: 'refs/heads/master' |
Kailash Khalasi | f3f15bd | 2018-05-09 09:58:52 -0700 | [diff] [blame] | 26 | description: 'Use default when using "Build Now"' |
| 27 | |
Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 28 | triggers: |
| 29 | - cord-infra-gerrit-trigger-patchset: |
| 30 | gerrit-server-name: '{gerrit-server-name}' |
Kailash Khalasi | 45f4e2c | 2018-05-09 14:09:50 -0700 | [diff] [blame] | 31 | project-regexp: '{project}' |
Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 32 | branch-regexp: '{branch-regexp}' |
| 33 | file-include-regexp: '{all-files-regexp}' |
| 34 | dependency-jobs: '{dependency-jobs}' |
| 35 | |
| 36 | properties: |
| 37 | - cord-infra-properties: |
| 38 | build-days-to-keep: '{build-days-to-keep}' |
| 39 | artifact-num-to-keep: '{artifact-num-to-keep}' |
Kailash Khalasi | a5ca0c7 | 2018-05-09 12:00:21 -0700 | [diff] [blame] | 40 | |
| 41 | scm: |
| 42 | - git: |
Kailash Khalasi | 45f4e2c | 2018-05-09 14:09:50 -0700 | [diff] [blame] | 43 | url: '{gerrit-server-url}/{project}' |
Kailash Khalasi | 1b3d3fe | 2018-05-09 13:20:22 -0700 | [diff] [blame] | 44 | branches: |
| 45 | - '$GERRIT_BRANCH' |
Kailash Khalasi | 45f4e2c | 2018-05-09 14:09:50 -0700 | [diff] [blame] | 46 | refspec: '$GERRIT_REFSPEC' |
Kailash Khalasi | a5ca0c7 | 2018-05-09 12:00:21 -0700 | [diff] [blame] | 47 | choosing-strategy: 'gerrit' |
Kailash Khalasi | a5ca0c7 | 2018-05-09 12:00:21 -0700 | [diff] [blame] | 48 | shallow-clone: true |
Zack Williams | c3c8393 | 2018-10-30 13:56:37 -0700 | [diff] [blame] | 49 | |
| 50 | |
| 51 | - job-template: |
| 52 | id: maven-test |
| 53 | name: 'verify_{project}_maven-test' |
| 54 | description: | |
| 55 | <!-- Managed by Jenkins Job Builder --> |
| 56 | Created by {id} job-template from ci-management/jjb/maven.yaml |
| 57 | |
| 58 | triggers: |
| 59 | - cord-infra-gerrit-trigger-patchset: |
| 60 | gerrit-server-name: '{gerrit-server-name}' |
| 61 | project-regexp: '{project}' |
| 62 | branch-regexp: '{branch-regexp}' |
| 63 | file-include-regexp: '{all-files-regexp}' |
| 64 | dependency-jobs: '{dependency-jobs}' |
| 65 | |
| 66 | properties: |
| 67 | - cord-infra-properties: |
| 68 | build-days-to-keep: '{build-days-to-keep}' |
| 69 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 70 | |
| 71 | |
| 72 | wrappers: |
| 73 | - lf-infra-wrappers: |
| 74 | build-timeout: 30 |
| 75 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 76 | |
| 77 | scm: |
| 78 | - lf-infra-gerrit-scm: |
| 79 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 80 | refspec: '$GERRIT_REFSPEC' |
| 81 | branch: '$GERRIT_BRANCH' |
| 82 | submodule-recursive: 'false' |
| 83 | choosing-strategy: gerrit |
| 84 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 85 | |
| 86 | node: 'ubuntu16.04-basebuild-1c-2g' |
| 87 | project-type: maven |
| 88 | concurrent: true |
| 89 | |
| 90 | maven: |
| 91 | root-pom: 'pom.xml' |
| 92 | goals: 'test' |