@@ -27,6 +27,13 @@ resources:
27
27
password : ((github-password))
28
28
branch : ((branch))
29
29
ignore_paths : ["ci/images/*"]
30
+ - name : git-pull-request
31
+ type : pull-request
32
+ source :
33
+ access_token : ((github-access-token))
34
+ repo : ((github-repo-name))
35
+ base : ((branch))
36
+ ignore_paths : ["ci/*"]
30
37
- name : ci-images-git-repo
31
38
type : git
32
39
source :
@@ -161,6 +168,47 @@ jobs:
161
168
properties :
162
169
" zip.type " : " docs"
163
170
" zip.deployed " : " false"
171
+ - name : build-pull-requests
172
+ serial : true
173
+ public : true
174
+ plan :
175
+ - get : spring-boot-ci-image
176
+ - get : git-repo
177
+ resource : git-pull-request
178
+ trigger : true
179
+ version : every
180
+ - do :
181
+ - put : git-pull-request
182
+ params :
183
+ path : git-repo
184
+ status : pending
185
+ - task : build-project
186
+ timeout : 1h30m
187
+ image : spring-boot-ci-image
188
+ file : git-repo/ci/tasks/build-pr-project.yml
189
+ - aggregate :
190
+ - task : build-samples
191
+ timeout : 1h30m
192
+ image : spring-boot-ci-image
193
+ file : git-repo/ci/tasks/build-samples.yml
194
+ - task : build-integration-tests
195
+ timeout : 1h30m
196
+ image : spring-boot-ci-image
197
+ file : git-repo/ci/tasks/build-integration-tests.yml
198
+ - task : build-deployment-tests
199
+ timeout : 1h30m
200
+ image : spring-boot-ci-image
201
+ file : git-repo/ci/tasks/build-deployment-tests.yml
202
+ on_success :
203
+ put : git-pull-request
204
+ params :
205
+ path : git-repo
206
+ status : success
207
+ on_failure :
208
+ put : git-pull-request
209
+ params :
210
+ path : git-repo
211
+ status : failure
164
212
- name : jdk9-build
165
213
serial : true
166
214
public : true
@@ -393,3 +441,5 @@ groups:
393
441
jobs : ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release", "sync-to-maven-central"]
394
442
- name : " CI Images"
395
443
jobs : ["build-spring-boot-ci-images"]
444
+ - name : " Build Pull Requests"
445
+ jobs : ["build-pull-requests"]
0 commit comments