Update Ubuntu 16.04 image for mininet-ovs-26
[releng/builder.git] / jjb / releng-templates-java.yaml
1 ---
2 - job-group:
3     name: odl-maven-jobs
4
5     jobs:
6       - gerrit-maven-clm:
7           nexus-iq-namespace: odl-
8
9       # TODO: Figure out what's wrong with the gerrit-maven-merge job.
10       # - gerrit-maven-merge:
11       #     post_build_trigger:
12       #       - project:
13       #           - 'distribution-merge-{stream}'
14       #         condition: SUCCESS
15       #         trigger-with-no-params: true
16       - '{project-name}-merge-{stream}':
17           build-timeout: 180
18           mvn-goals: clean install -V -Dmaven.compile.fork=true -Dintegrationtests -Dvtn.build.jobs=2
19
20       - gerrit-maven-stage
21       - gerrit-maven-verify
22       - gerrit-maven-verify-dependencies:
23           build-timeout: 180
24
25     mvn-version: mvn35
26
27 - job-template:
28     name: '{project-name}-integration-{stream}'
29
30     ######################
31     # Default parameters #
32     ######################
33
34     archive-artifacts: >
35       **/*.log
36       **/hs_err_*.log
37       **/target/**/feature.xml
38       **/target/failsafe-reports/failsafe-summary.xml
39       **/target/surefire-reports/*-output.txt
40     mvn-goals: clean install
41
42     #####################
43     # Job Configuration #
44     #####################
45
46     project-type: freestyle
47     node: '{build-node}'
48     jdk: '{java-version}'
49
50     properties:
51       - opendaylight-infra-properties:
52           build-days-to-keep: '{build-days-to-keep}'
53
54     parameters:
55       - opendaylight-infra-parameters:
56           os-cloud: '{os-cloud}'
57           project: '{project}'
58           branch: '{branch}'
59           refspec: 'refs/heads/{branch}'
60           artifacts: '{archive-artifacts}'
61
62     scm:
63       - git-scm:
64           refspec: ''
65           branch: '{branch}'
66
67     wrappers:
68       - opendaylight-infra-wrappers:
69           build-timeout: '{build-timeout}'
70
71     triggers:
72       - reverse:
73           jobs: '{dependencies}'
74           result: 'success'
75
76     builders:
77       - jacoco-nojava-workaround
78       - provide-maven-settings:
79           global-settings-file: 'global-settings'
80           settings-file: '{mvn-settings}'
81       - maven-target:
82           maven-version: 'mvn35'
83           goals: |
84               {mvn-goals}
85               {opendaylight-infra-mvn-opts}
86           java-opts:
87             - '{mvn-opts}'
88           settings: '{mvn-settings}'
89           settings-type: cfp
90           global-settings: 'global-settings'
91           global-settings-type: cfp
92
93     publishers:
94       - email-notification:
95           email-recipients: '{email-recipients}'
96           email-prefix: '{email-upstream}'
97       - findbugs
98       - lf-jacoco-report
99       - lf-infra-publish
100
101 - job-template:
102     name: '{project-name}-merge-{stream}'
103
104     ######################
105     # Default parameters #
106     ######################
107
108     archive-artifacts: >
109       **/*.log
110       **/hs_err_*.log
111       **/target/**/feature.xml
112       **/target/failsafe-reports/failsafe-summary.xml
113       **/target/surefire-reports/*-output.txt
114     cron: '@daily'
115     mvn-opts: ''
116     mvn-version: mvn35
117     java-version: openjdk8
118
119     #####################
120     # Job Configuration #
121     #####################
122
123     # Need to keep jobs that deploy to Nexus at end of build as Maven
124     # projects. Maybe reconsider this once upstream moves deploy to a
125     # separate lifecycle:
126     #     https://issues.apache.org/jira/browse/MNG-5666
127     project-type: maven
128     node: '{build-node}'
129     jdk: '{java-version}'
130
131     properties:
132       - opendaylight-infra-properties:
133           build-days-to-keep: 14
134
135     parameters:
136       - opendaylight-infra-parameters:
137           os-cloud: '{os-cloud}'
138           project: '{project}'
139           branch: '{branch}'
140           refspec: 'refs/heads/{branch}'
141           artifacts: '{archive-artifacts}'
142       - string:
143           name: STREAM
144           default: '{stream}'
145           description: "String representing release name"
146
147     scm:
148       - gerrit-trigger-scm:
149           refspec: ''
150           choosing-strategy: 'default'
151
152     wrappers:
153       - opendaylight-infra-wrappers:
154           build-timeout: '{build-timeout}'
155
156     triggers:
157       - timed: '{obj:cron}'
158       - gerrit-trigger-patch-merged:
159           gerrit-server-name: '{gerrit-server-name}'
160           name: '{project}'
161           branch: '{branch}'
162           files: '**'
163           forbidden-files: ''
164
165     prebuilders:
166       - jacoco-nojava-workaround
167       - provide-maven-settings:
168           global-settings-file: 'global-settings'
169           settings-file: '{mvn-settings}'
170       - lf-maven-install:
171           mvn-version: '{mvn-version}'
172
173     # TODO: Do we want to apply sophisticated checks as in *-distribution-check-*?
174     maven:
175       maven-name: '{mvn-version}'
176       goals: >
177           {mvn-goals}
178           -Dmerge
179           -Dstream={stream}
180           {opendaylight-infra-mvn-opts}
181       maven-opts: '{mvn-opts}'
182       settings: '{mvn-settings}'
183       settings-type: cfp
184       global-settings: 'global-settings'
185       global-settings-type: cfp
186       post-step-run-condition: UNSTABLE
187
188     reporters:
189       - findbugs
190
191     publishers:
192       - email-notification:
193           email-recipients: '{email-recipients}'
194           email-prefix: '[{project-name}]'
195       - maven-deploy:
196           id: ''
197           unique-version: true
198           deploy-unstable: false
199       - lf-jacoco-report
200       - lf-infra-publish