Merge "Revert "Enable shallow clone for git repos""
[releng/builder.git] / jjb / integration / integration-distribution-jobs.yaml
1
2 - project:
3     name: integration-distribution
4     jobs:
5         - '{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
13     stream:
14         - boron:
15             branch: 'master'
16             jre: 'openjdk8'
17         - beryllium:
18             branch: 'stable/beryllium'
19             jre: 'openjdk7'
20         - stable-lithium:
21             branch: 'stable/lithium'
22             jre: 'openjdk7'
23
24
25 - job-template:
26     name: 'integration-distribution-verify-{stream}'
27
28     project-type: maven
29     node: dynamic_verify
30     concurrent: true
31     jdk: '{jre}'
32
33     logrotate:
34         daysToKeep: '{build-days-to-keep}'
35         numToKeep: '{build-num-to-keep}'
36         artifactDaysToKeep: '{build-artifact-days-to-keep}'
37         artifactNumToKeep: '{build-artifact-num-to-keep}'
38
39     parameters:
40         - project-parameter:
41             project: 'integration/distribution'
42         - gerrit-parameter:
43             branch: '{branch}'
44         - integration-patch-refspec:
45             branch: '$GERRIT_REFSPEC'
46
47     scm:
48         - gerrit-trigger-scm:
49             credentials-id: '{ssh-credentials}'
50             refspec: '$PATCHREFSPEC'
51             choosing-strategy: 'gerrit'
52
53     wrappers:
54         - build-timeout
55         - ssh-agent-credentials:
56             users:
57                 - '{ssh-credentials}'
58
59     triggers:
60         - gerrit-trigger-patch-submitted:
61             name: 'integration/distribution'
62             branch: '{branch}'
63
64     prebuilders:
65         - integration-get-bundle-url-root
66         - inject:
67             properties-file: 'bundle.txt'
68         - wipe-org-opendaylight-repo
69
70     maven:
71         maven-name: '{mvn33}'
72         root-pom: 'pom.xml'
73         goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
74         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
75         settings: '{integration-settings}'
76         global-settings: '{odl-global-settings}'
77         ignore-upstream-changes: true
78         post-step-run-condition: 'SUCCESS'
79
80     postbuilders:
81         - trigger-builds:
82             - project: 'integration-distribution-deploy-{stream}'
83               block: true
84               predefined-parameters:
85                   BUNDLEURL=$BUNDLEURL
86
87     publishers:
88         - email-notification:
89             email-prefix: '[integration]'
90
91 - job-template:
92     name: 'integration-distribution-merge-{stream}'
93
94     project-type: maven
95     node: dynamic_merge
96     jdk: '{jre}'
97
98     logrotate:
99         daysToKeep: '{build-days-to-keep}'
100         numToKeep: '{build-num-to-keep}'
101         artifactDaysToKeep: '{build-artifact-days-to-keep}'
102         artifactNumToKeep: '{build-artifact-num-to-keep}'
103
104     parameters:
105         - project-parameter:
106             project: 'integration/distribution'
107         - gerrit-parameter:
108             branch: '{branch}'
109
110     scm:
111         - gerrit-trigger-scm:
112             credentials-id: '{ssh-credentials}'
113             refspec: ''
114             choosing-strategy: 'default'
115
116     wrappers:
117         - build-timeout
118         - ssh-agent-credentials:
119             users:
120                 - '{ssh-credentials}'
121
122     triggers:
123         - gerrit-trigger-patch-merged:
124             name: 'integration/distribution'
125             branch: '{branch}'
126
127     prebuilders:
128         - wipe-org-opendaylight-repo
129
130     maven:
131         maven-name: '{mvn33}'
132         root-pom: 'pom.xml'
133         goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
134         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
135         settings: '{integration-settings}'
136         global-settings: '{odl-global-settings}'
137
138     publishers:
139         - email-notification:
140             email-prefix: '[integration]'
141         - maven-deploy:
142             id: ''
143             unique-version: true
144             deploy-unstable: false
145
146 # Template: integration-distribution-deploy-{stream}
147 # Goal: Verify distribution starts with no issues when all features are loaded
148 # Operation: This job deploys the controller installing odl-integration-all
149
150 - job-template:
151     name: 'integration-distribution-deploy-{stream}'
152
153     project-type: freestyle
154     node: dynamic_verify
155     concurrent: true
156
157     logrotate:
158         daysToKeep: '{build-days-to-keep}'
159         numToKeep: '{build-num-to-keep}'
160         artifactDaysToKeep: '{build-artifact-days-to-keep}'
161         artifactNumToKeep: '{build-artifact-num-to-keep}'
162
163     parameters:
164         - project-parameter:
165             project: 'integration/distribution'
166         - integration-branch:
167             branch: '{branch}'
168         - integration-bundleurl:
169             bundleurl: 'last'
170         - integration-jdk-version:
171             jdkversion: '{jre}'
172
173     wrappers:
174         - build-timeout
175         - ssh-agent-credentials:
176             users:
177                 - '{ssh-credentials}'
178
179     triggers:
180         - timed: 'H H * * *'
181
182     builders:
183         - integration-get-bundle-vars
184         - inject:
185             properties-file: 'bundle_vars.txt'
186         - integration-deploy-controller-verify
187
188     publishers:
189         - archive:
190             artifacts: '*.log,*.log.xz'
191         - email-notification:
192             email-prefix: '[integration]'
193
194 # Template: integration-distribution-offline-{stream}
195 # Goal: Verify distribution can start with no internet connection
196 # Operation: This job deploys the controller removing any external repository definition
197
198 - job-template:
199     name: 'integration-distribution-offline-{stream}'
200
201     project-type: freestyle
202     node: dynamic_verify
203
204     logrotate:
205         daysToKeep: '{build-days-to-keep}'
206         numToKeep: '{build-num-to-keep}'
207         artifactDaysToKeep: '{build-artifact-days-to-keep}'
208         artifactNumToKeep: '{build-artifact-num-to-keep}'
209
210     parameters:
211         - project-parameter:
212             project: 'integration/distribution'
213         - integration-branch:
214             branch: '{branch}'
215         - integration-bundleurl:
216             bundleurl: 'last'
217         - integration-jdk-version:
218             jdkversion: '{jre}'
219
220     wrappers:
221         - build-timeout
222         - ssh-agent-credentials:
223             users:
224                 - '{ssh-credentials}'
225
226     triggers:
227         - timed: 'H H * * *'
228
229     builders:
230         - integration-get-bundle-vars
231         - inject:
232             properties-file: 'bundle_vars.txt'
233         - integration-deploy-controller-offline
234
235     publishers:
236         - archive:
237             artifacts: '*.log,*.log.xz'
238         - email-notification:
239             email-prefix: '[integration]'