Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 1 | --- |
Kailash Khalasi | 45f4e2c | 2018-05-09 14:09:50 -0700 | [diff] [blame] | 2 | # maven install jobs for cord onos app repos |
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 |
| 15 | goals: 'clean install' |
| 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 |