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