Skip to content

Commit e6a6911

Browse files
committed
Add trigger for 2.0.x-based pull requests
Closes gh-14034
1 parent dfb97eb commit e6a6911

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

ci/pipeline.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ resources:
2727
password: ((github-password))
2828
branch: ((branch))
2929
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/*"]
3037
- name: ci-images-git-repo
3138
type: git
3239
source:
@@ -161,6 +168,47 @@ jobs:
161168
properties:
162169
"zip.type": "docs"
163170
"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
164212
- name: jdk9-build
165213
serial: true
166214
public: true
@@ -393,3 +441,5 @@ groups:
393441
jobs: ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release", "sync-to-maven-central"]
394442
- name: "CI Images"
395443
jobs: ["build-spring-boot-ci-images"]
444+
- name: "Build Pull Requests"
445+
jobs: ["build-pull-requests"]

0 commit comments

Comments
 (0)