Skip to content

Commit 948a86e

Browse files
committed
Build PRs as part of concourse pipeline
Closes gh-10526
1 parent 14081c8 commit 948a86e

File tree

2 files changed

+53
-14
lines changed

2 files changed

+53
-14
lines changed

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

ci/pipeline.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ resource_types:
88
type: docker-image
99
source:
1010
repository: pcfseceng/email-resource
11+
- name: pull-request
12+
type: docker-image
13+
source:
14+
repository: jtarchie/pr
1115
resources:
1216
- name: git-repo
1317
type: git
@@ -17,6 +21,13 @@ resources:
1721
password: ((github-password))
1822
branch: ((branch))
1923
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/*"]
2031
- name: ci-images-git-repo
2132
type: git
2233
source:
@@ -108,6 +119,46 @@ jobs:
108119
properties:
109120
"zip.type": "docs"
110121
"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
111162
- name: jdk9-build
112163
serial: true
113164
plan:
@@ -259,3 +310,5 @@ groups:
259310
jobs: ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release"]
260311
- name: "CI Images"
261312
jobs: ["build-spring-boot-ci-images"]
313+
- name: "Build Pull Requests"
314+
jobs: ["build-pull-requests"]

0 commit comments

Comments
 (0)