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