@@ -8,6 +8,10 @@ resource_types:
8
8
type : docker-image
9
9
source :
10
10
repository : pcfseceng/email-resource
11
+ - name : pull-request
12
+ type : docker-image
13
+ source :
14
+ repository : jtarchie/pr
11
15
resources :
12
16
- name : git-repo
13
17
type : git
@@ -17,6 +21,13 @@ resources:
17
21
password : ((github-password))
18
22
branch : ((branch))
19
23
ignore_paths : ["ci/images/*"]
24
+ - name : git-pull-request
25
+ type : pull-request
26
+ source :
27
+ access_token : ((github-access-token))
28
+ repo : ((github-repo-name))
29
+ base : ((branch))
30
+ ignore_paths : ["ci/*"]
20
31
- name : ci-images-git-repo
21
32
type : git
22
33
source :
@@ -108,6 +119,46 @@ jobs:
108
119
properties :
109
120
" zip.type " : " docs"
110
121
" zip.deployed " : " false"
122
+ - name : build-pull-requests
123
+ serial : true
124
+ plan :
125
+ - get : spring-boot-ci-image
126
+ - get : git-repo
127
+ resource : git-pull-request
128
+ trigger : true
129
+ version : every
130
+ - do :
131
+ - put : git-pull-request
132
+ params :
133
+ path : git-repo
134
+ status : pending
135
+ - task : build-project
136
+ timeout : 1h30m
137
+ image : spring-boot-ci-image
138
+ file : git-repo/ci/tasks/build-project.yml
139
+ - aggregate :
140
+ - task : build-samples
141
+ timeout : 1h30m
142
+ image : spring-boot-ci-image
143
+ file : git-repo/ci/tasks/build-samples.yml
144
+ - task : build-integration-tests
145
+ timeout : 1h30m
146
+ image : spring-boot-ci-image
147
+ file : git-repo/ci/tasks/build-integration-tests.yml
148
+ - task : build-deployment-tests
149
+ timeout : 1h30m
150
+ image : spring-boot-ci-image
151
+ file : git-repo/ci/tasks/build-deployment-tests.yml
152
+ on_success :
153
+ put : git-pull-request
154
+ params :
155
+ path : git-repo
156
+ status : success
157
+ on_failure :
158
+ put : git-pull-request
159
+ params :
160
+ path : git-repo
161
+ status : failure
111
162
- name : jdk9-build
112
163
serial : true
113
164
plan :
@@ -259,3 +310,5 @@ groups:
259
310
jobs : ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release"]
260
311
- name : " CI Images"
261
312
jobs : ["build-spring-boot-ci-images"]
313
+ - name : " Build Pull Requests"
314
+ jobs : ["build-pull-requests"]
0 commit comments