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