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