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