removing unused and old script
[releng/builder.git] / jjb / integration / integration-distribution-jobs.yaml
1
2 - project:
3     name: integration-distribution
4     jobs:
5         - '{project-name}-verify-python-{stream}'
6         - 'integration-distribution-verify-{stream}'
7         - 'integration-distribution-merge-{stream}'
8         - 'integration-distribution-deploy-{stream}'
9         - 'integration-distribution-offline-{stream}'
10
11     project: integration/distribution
12     project-name: integration-distribution
13
14     stream:
15         - carbon:
16             branch: 'master'
17             jre: 'openjdk8'
18         - boron:
19             branch: 'stable/boron'
20             jre: 'openjdk8'
21         - beryllium:
22             branch: 'stable/beryllium'
23             jre: 'openjdk7'
24
25
26 - job-template:
27     name: 'integration-distribution-verify-{stream}'
28
29     project-type: maven
30     node: centos7-java-builder-2c-8g
31     concurrent: true
32     jdk: '{jre}'
33
34     properties:
35         - opendaylight-infra-properties:
36             build-days-to-keep: '{build-days-to-keep}'
37
38     parameters:
39         - opendaylight-infra-parameters:
40             project: '{project}'
41             branch: '{branch}'
42             refspec: 'refs/heads/{branch}'
43             artifacts: '{archive-artifacts} **/dependency_tree.txt **/*.hprof'
44         - integration-patch-refspec:
45             branch: '$GERRIT_REFSPEC'
46
47     scm:
48         - gerrit-trigger-scm:
49             refspec: '$PATCHREFSPEC'
50             choosing-strategy: 'gerrit'
51
52     wrappers:
53         - opendaylight-infra-wrappers:
54             build-timeout: '{build-timeout}'
55
56     triggers:
57         - gerrit-trigger-patch-submitted:
58             server: '{server-name}'
59             project: '{project}'
60             branch: '{branch}'
61             files: '**'
62
63     prebuilders:
64         - integration-get-bundle-url-root
65         - inject:
66             properties-file: 'bundle.txt'
67         - wipe-org-opendaylight-repo
68         - provide-maven-settings:
69             global-settings-file: 'odl-global-settings'
70             settings-file: 'integration-settings'
71
72     maven:
73         maven-name: 'mvn33'
74         root-pom: 'pom.xml'
75         goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
76         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
77         settings: 'integration-settings'
78         settings-type: cfp
79         global-settings: 'odl-global-settings'
80         global-settings-type: cfp
81         ignore-upstream-changes: true
82         post-step-run-condition: 'SUCCESS'
83
84     postbuilders:
85         - trigger-builds:
86             - project: 'integration-distribution-deploy-{stream}'
87               block: true
88               predefined-parameters:
89                   BUNDLEURL=$BUNDLEURL
90
91     reporters:
92         - findbugs
93
94     publishers:
95         - jacoco-report
96         - opendaylight-infra-shiplogs:
97             maven-version: 'mvn33'
98         - email-notification:
99             email-recipients: '{email-recipients}'
100             email-prefix: '[int/dist]'
101
102
103 - job-template:
104     name: 'integration-distribution-merge-{stream}'
105
106     # Need to keep jobs that deploy to Nexus at end of build as Maven
107     # projects. Maybe reconsider this once upstream moves deploy to a
108     # separate lifecycle:
109     #     https://issues.apache.org/jira/browse/MNG-5666
110
111     project-type: maven
112     node: centos7-java-builder-2c-8g
113     jdk: '{jre}'
114
115     properties:
116         - opendaylight-infra-properties:
117             build-days-to-keep: '{build-days-to-keep}'
118
119     parameters:
120         - opendaylight-infra-parameters:
121             project: '{project}'
122             branch: '{branch}'
123             refspec: 'refs/heads/{branch}'
124             artifacts: '{archive-artifacts} **/dependency_tree.txt **/*.hprof'
125
126     scm:
127         - gerrit-trigger-scm:
128             refspec: ''
129             choosing-strategy: 'default'
130
131     wrappers:
132         - opendaylight-infra-wrappers:
133             build-timeout: '{build-timeout}'
134
135     triggers:
136         - timed: 'H H * * 0'
137         - gerrit-trigger-patch-merged:
138             server-name: '{server-name}'
139             name: 'integration/distribution'
140             branch: '{branch}'
141
142     prebuilders:
143         - wipe-org-opendaylight-repo
144         - jacoco-nojava-workaround
145         - provide-maven-settings:
146             global-settings-file: 'odl-global-settings'
147             settings-file: 'integration-settings'
148
149     maven:
150         maven-name: 'mvn33'
151         root-pom: 'pom.xml'
152         goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
153         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
154         settings: 'integration-settings'
155         settings-type: cfp
156         global-settings: 'odl-global-settings'
157         global-settings-type: cfp
158
159     postbuilders:
160         - conditional-step:
161             condition-kind: file-exists
162             condition-filename: deploy-site.xml
163             condition-basedir: workspace
164
165             # The strategy here is intentional to run Maven site:deploy twice
166             # once using regular pom.xml to produce a staged-site which is
167             # then used by deploy-site.xml to push to Nexus. This is a
168             # workaround to Maven Site's default linking code which creates
169             # incorrect URLs for sites due to auto-detection assuming your
170             # project is configured in a certain way which ODL is not.
171             steps:
172             - maven-target:
173                 maven-version: 'mvn33'
174                 pom: pom.xml
175                 goals: 'site:deploy -V -B -Dstream={stream}'
176                 java-opts:
177                     - '-Xmx2g'
178                 settings: 'integration-settings'
179                 settings-type: cfp
180                 global-settings: 'odl-global-settings'
181                 global-settings-type: cfp
182             - maven-target:
183                 maven-version: 'mvn33'
184                 pom: deploy-site.xml
185                 goals: 'site:deploy -V -B -Dstream={stream}'
186                 java-opts:
187                     - '-Xmx2g'
188                 settings: 'integration-settings'
189                 settings-type: cfp
190                 global-settings: 'odl-global-settings'
191                 global-settings-type: cfp
192
193     reporters:
194         - findbugs
195
196     publishers:
197         - maven-deploy:
198             id: ''
199             unique-version: true
200             deploy-unstable: false
201         - jacoco-report
202         - opendaylight-infra-shiplogs:
203             maven-version: 'mvn33'
204         - email-notification:
205             email-recipients: '{email-recipients}'
206             email-prefix: '[int/dist]'
207
208 # Template: integration-distribution-deploy-{stream}
209 # Goal: Verify distribution starts with no issues when all features are loaded
210 # Operation: This job deploys the controller installing odl-integration-all
211
212 - job-template:
213     name: 'integration-distribution-deploy-{stream}'
214
215     project-type: freestyle
216     node: centos7-java-builder-2c-8g
217     concurrent: true
218
219     properties:
220         - opendaylight-infra-properties:
221             build-days-to-keep: '{build-days-to-keep}'
222
223     parameters:
224         - opendaylight-infra-parameters:
225             project: '{project}'
226             branch: '{branch}'
227             refspec: 'refs/heads/{branch}'
228             artifacts: '{archive-artifacts} **/*.hprof'
229         - integration-branch:
230             branch: '{branch}'
231         - integration-bundleurl:
232             bundleurl: '{bundleurl}'
233         - integration-jdk-version:
234             jdkversion: '{jre}'
235
236     wrappers:
237         - opendaylight-infra-wrappers:
238             build-timeout: '{build-timeout}'
239
240     triggers:
241         - timed: 'H H * * *'
242
243     builders:
244         - integration-get-bundle-vars
245         - inject:
246             properties-file: 'bundle_vars.txt'
247         - integration-deploy-controller-verify
248
249     publishers:
250         - email-notification:
251             email-recipients: '{email-recipients}'
252             email-prefix: '[int/dist]'
253         - integration-csit-archive-build
254         - opendaylight-infra-shiplogs:
255             maven-version: 'mvn33'
256
257 # Template: integration-distribution-offline-{stream}
258 # Goal: Verify distribution can start with no internet connection
259 # Operation: This job deploys the controller removing any external repository definition
260
261 - job-template:
262     name: 'integration-distribution-offline-{stream}'
263
264     project-type: freestyle
265     node: centos7-java-builder-2c-8g
266
267     properties:
268         - opendaylight-infra-properties:
269             build-days-to-keep: '{build-days-to-keep}'
270
271     parameters:
272         - opendaylight-infra-parameters:
273             project: '{project}'
274             branch: '{branch}'
275             refspec: 'refs/heads/{branch}'
276             artifacts: '{archive-artifacts} **/*.hprof'
277         - integration-branch:
278             branch: '{branch}'
279         - integration-bundleurl:
280             bundleurl: '{bundleurl}'
281         - integration-jdk-version:
282             jdkversion: '{jre}'
283
284     wrappers:
285         - opendaylight-infra-wrappers:
286             build-timeout: '{build-timeout}'
287
288     triggers:
289         - timed: 'H H * * *'
290
291     builders:
292         - integration-get-bundle-vars
293         - inject:
294             properties-file: 'bundle_vars.txt'
295         - integration-deploy-controller-offline
296
297     publishers:
298         - email-notification:
299             email-recipients: '{email-recipients}'
300             email-prefix: '[int/dist]'
301         - integration-csit-archive-build
302         - opendaylight-infra-shiplogs:
303             maven-version: 'mvn33'