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