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