blob: 0d37e6bee75534e2272ebd5f0555f22ee7621d57 [file] [log] [blame]
Kailash Khalasi69c8fcd2018-05-09 09:43:49 -07001---
Zack Williamsc3c83932018-10-30 13:56:37 -07002# maven jobs for Java projects
Kailash Khalasi69c8fcd2018-05-09 09:43:49 -07003
4- job-template:
Kailash Khalasi45f4e2c2018-05-09 14:09:50 -07005 id: maven-install
6 name: '{project}-gerrit'
Kailash Khalasi69c8fcd2018-05-09 09:43:49 -07007 description: |
8 <!-- Managed by Jenkins Job Builder -->
Kailash Khalasi45f4e2c2018-05-09 14:09:50 -07009 Created by {id} job-template from ci-management/jjb/maven.yaml
Kailash Khalasi69c8fcd2018-05-09 09:43:49 -070010
11 node: 'ubuntu16.04-basebuild-1c-2g'
12 project-type: maven
13 maven:
14 root-pom: pom.xml
Jonathan Hart9395e6b2018-07-24 14:38:09 -070015 goals: 'clean install'
Kailash Khalasi69c8fcd2018-05-09 09:43:49 -070016
Kailash Khalasif3f15bd2018-05-09 09:58:52 -070017 parameters:
18 - string:
Kailash Khalasia5ca0c72018-05-09 12:00:21 -070019 name: GERRIT_BRANCH
20 default: 'master'
Kailash Khalasif3f15bd2018-05-09 09:58:52 -070021 description: 'Use default when using "Build Now"'
22
23 - string:
Kailash Khalasia5ca0c72018-05-09 12:00:21 -070024 name: GERRIT_REFSPEC
25 default: 'refs/heads/master'
Kailash Khalasif3f15bd2018-05-09 09:58:52 -070026 description: 'Use default when using "Build Now"'
27
Kailash Khalasi69c8fcd2018-05-09 09:43:49 -070028 triggers:
29 - cord-infra-gerrit-trigger-patchset:
30 gerrit-server-name: '{gerrit-server-name}'
Kailash Khalasi45f4e2c2018-05-09 14:09:50 -070031 project-regexp: '{project}'
Kailash Khalasi69c8fcd2018-05-09 09:43:49 -070032 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 Khalasia5ca0c72018-05-09 12:00:21 -070040
41 scm:
42 - git:
Kailash Khalasi45f4e2c2018-05-09 14:09:50 -070043 url: '{gerrit-server-url}/{project}'
Kailash Khalasi1b3d3fe2018-05-09 13:20:22 -070044 branches:
45 - '$GERRIT_BRANCH'
Kailash Khalasi45f4e2c2018-05-09 14:09:50 -070046 refspec: '$GERRIT_REFSPEC'
Kailash Khalasia5ca0c72018-05-09 12:00:21 -070047 choosing-strategy: 'gerrit'
Kailash Khalasia5ca0c72018-05-09 12:00:21 -070048 shallow-clone: true
Zack Williamsc3c83932018-10-30 13:56:37 -070049
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'