blob: 02195e351b1a52865ca961f175b51e9cf6f05bb8 [file] [log] [blame]
Kailash Khalasi69c8fcd2018-05-09 09:43:49 -07001---
Kailash Khalasi45f4e2c2018-05-09 14:09:50 -07002# maven install jobs for cord onos app repos
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