Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 1 | --- |
| 2 | # maven job for 'aaa' repo |
| 3 | |
| 4 | - project: |
| 5 | name: aaa |
| 6 | |
| 7 | project-name: '{name}' |
| 8 | |
| 9 | jobs: |
| 10 | - 'aaa': |
| 11 | branch-regexp: '{supported-branches-regexp}' |
| 12 | |
| 13 | |
| 14 | - job-template: |
| 15 | id: aaa |
| 16 | name: 'aaa-gerrit' |
| 17 | description: | |
| 18 | <!-- Managed by Jenkins Job Builder --> |
| 19 | Created by {id} job-template from ci-management/jjb/aaa.yaml |
| 20 | |
| 21 | node: 'ubuntu16.04-basebuild-1c-2g' |
| 22 | project-type: maven |
| 23 | maven: |
| 24 | root-pom: pom.xml |
| 25 | goals: 'clean install' |
| 26 | |
Kailash Khalasi | f3f15bd | 2018-05-09 09:58:52 -0700 | [diff] [blame] | 27 | parameters: |
| 28 | - string: |
Kailash Khalasi | a5ca0c7 | 2018-05-09 12:00:21 -0700 | [diff] [blame] | 29 | name: GERRIT_BRANCH |
| 30 | default: 'master' |
Kailash Khalasi | f3f15bd | 2018-05-09 09:58:52 -0700 | [diff] [blame] | 31 | description: 'Use default when using "Build Now"' |
| 32 | |
| 33 | - string: |
Kailash Khalasi | a5ca0c7 | 2018-05-09 12:00:21 -0700 | [diff] [blame] | 34 | name: GERRIT_REFSPEC |
| 35 | default: 'refs/heads/master' |
Kailash Khalasi | f3f15bd | 2018-05-09 09:58:52 -0700 | [diff] [blame] | 36 | description: 'Use default when using "Build Now"' |
| 37 | |
Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 38 | triggers: |
| 39 | - cord-infra-gerrit-trigger-patchset: |
| 40 | gerrit-server-name: '{gerrit-server-name}' |
| 41 | project-regexp: 'aaa' |
| 42 | branch-regexp: '{branch-regexp}' |
| 43 | file-include-regexp: '{all-files-regexp}' |
| 44 | dependency-jobs: '{dependency-jobs}' |
| 45 | |
| 46 | properties: |
| 47 | - cord-infra-properties: |
| 48 | build-days-to-keep: '{build-days-to-keep}' |
| 49 | artifact-num-to-keep: '{artifact-num-to-keep}' |
Kailash Khalasi | a5ca0c7 | 2018-05-09 12:00:21 -0700 | [diff] [blame] | 50 | |
| 51 | scm: |
| 52 | - git: |
| 53 | url: '{gerrit-server-url}/aaa' |
| 54 | branches: '$GERRIT_BRANCH' |
| 55 | refspec: '$GERRIT_RECSPEC' |
| 56 | choosing-strategy: 'gerrit' |
| 57 | do-not-fetch-tags: true |
| 58 | shallow-clone: true |