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