Skip to content

Commit b0cc5fb

Browse files
committed
Use per-branch CI images
Closes gh-23439
1 parent 4ed7feb commit b0cc5fb

File tree

4 files changed

+51
-50
lines changed

4 files changed

+51
-50
lines changed

ci/parameters.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ branch: "2.1.x"
99
milestone: "2.1.x"
1010
build-name: "spring-boot"
1111
pipeline-name: "spring-boot-2.1.x"
12+
ci-image-name: "spring-boot-ci-21x"
1213
concourse-url: "https://ci.spring.io"
1314
bintray-subject: "spring"
1415
bintray-repo: "jars"

ci/pipeline.yml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,18 @@ resources:
127127
uri: ((github-repo))
128128
branch: ((branch))
129129
paths: ["ci/images/*"]
130-
- name: spring-boot-ci-image
130+
- name: ci-image
131131
type: docker-image
132132
icon: docker
133133
source:
134134
<<: *docker-resource-source
135-
repository: ((docker-hub-organization))/spring-boot-ci-image
136-
- name: spring-boot-jdk11-ci-image
135+
repository: ((docker-hub-organization))/((ci-image-name))
136+
- name: ci-image-jdk11
137137
type: docker-image
138138
icon: docker
139139
source:
140140
<<: *docker-resource-source
141-
repository: ((docker-hub-organization))/spring-boot-jdk11-ci-image
141+
repository: ((docker-hub-organization))/((ci-image-name))-jdk11
142142
- name: artifactory-repo
143143
type: artifactory-resource
144144
icon: package-variant
@@ -179,34 +179,34 @@ resources:
179179
icon: clock-outline
180180
source: { interval: "24h" }
181181
jobs:
182-
- name: build-spring-boot-ci-images
182+
- name: build-ci-images
183183
plan:
184184
- get: ci-images-git-repo
185185
trigger: true
186186
- in_parallel:
187-
- put: spring-boot-ci-image
187+
- put: ci-image
188188
params:
189189
build: ci-images-git-repo/ci/images
190-
dockerfile: ci-images-git-repo/ci/images/spring-boot-ci-image/Dockerfile
191-
- put: spring-boot-jdk11-ci-image
190+
dockerfile: ci-images-git-repo/ci/images/ci-image/Dockerfile
191+
- put: ci-image-jdk11
192192
params:
193193
build: ci-images-git-repo/ci/images
194-
dockerfile: ci-images-git-repo/ci/images/spring-boot-jdk11-ci-image/Dockerfile
194+
dockerfile: ci-images-git-repo/ci/images/ci-image-jdk11/Dockerfile
195195
- name: detect-jdk-updates
196196
plan:
197197
- get: git-repo
198198
- get: every-wednesday
199199
trigger: true
200-
- get: spring-boot-ci-image
200+
- get: ci-image
201201
- in_parallel:
202202
- task: detect-jdk8-update
203-
image: spring-boot-ci-image
203+
image: ci-image
204204
file: git-repo/ci/tasks/detect-jdk-updates.yml
205205
params:
206206
<<: *github-task-params
207207
JDK_VERSION: java8
208208
- task: detect-jdk11-update
209-
image: spring-boot-ci-image
209+
image: ci-image
210210
file: git-repo/ci/tasks/detect-jdk-updates.yml
211211
params:
212212
<<: *github-task-params
@@ -216,10 +216,10 @@ jobs:
216216
- get: git-repo
217217
- get: every-wednesday
218218
trigger: true
219-
- get: spring-boot-ci-image
219+
- get: ci-image
220220
- do:
221221
- task: detect-ubuntu-image-updates
222-
image: spring-boot-ci-image
222+
image: ci-image
223223
file: git-repo/ci/tasks/detect-ubuntu-image-updates.yml
224224
params:
225225
<<: *github-task-params
@@ -228,41 +228,41 @@ jobs:
228228
- get: git-repo
229229
- get: every-wednesday
230230
trigger: true
231-
- get: spring-boot-ci-image
231+
- get: ci-image
232232
- do:
233233
- task: detect-docker-updates
234-
image: spring-boot-ci-image
234+
image: ci-image
235235
file: git-repo/ci/tasks/detect-docker-updates.yml
236236
params:
237237
<<: *github-task-params
238238
- name: build
239239
serial: true
240240
public: true
241241
plan:
242-
- get: spring-boot-ci-image
242+
- get: ci-image
243243
- get: git-repo
244244
trigger: true
245245
- put: repo-status-build
246246
params: { state: "pending", commit: "git-repo" }
247247
- do:
248248
- task: build-project
249-
image: spring-boot-ci-image
249+
image: ci-image
250250
<<: *build-project-task-params
251251
- in_parallel:
252252
- task: build-samples
253-
image: spring-boot-ci-image
253+
image: ci-image
254254
file: git-repo/ci/tasks/build-samples.yml
255255
timeout: ((task-timeout))
256256
params:
257257
<<: *gradle-enterprise-task-params
258258
- task: build-integration-tests
259-
image: spring-boot-ci-image
259+
image: ci-image
260260
file: git-repo/ci/tasks/build-integration-tests.yml
261261
timeout: ((task-timeout))
262262
params:
263263
<<: *gradle-enterprise-task-params
264264
- task: build-deployment-tests
265-
image: spring-boot-ci-image
265+
image: ci-image
266266
file: git-repo/ci/tasks/build-deployment-tests.yml
267267
timeout: ((task-timeout))
268268
params:
@@ -291,7 +291,7 @@ jobs:
291291
serial: true
292292
public: true
293293
plan:
294-
- get: spring-boot-ci-image
294+
- get: ci-image
295295
- get: git-repo
296296
resource: git-pull-request
297297
trigger: true
@@ -302,20 +302,20 @@ jobs:
302302
path: git-repo
303303
status: pending
304304
- task: build-project
305-
image: spring-boot-ci-image
305+
image: ci-image
306306
file: git-repo/ci/tasks/build-pr-project.yml
307307
timeout: ((task-timeout))
308308
- in_parallel:
309309
- task: build-samples
310-
image: spring-boot-ci-image
310+
image: ci-image
311311
file: git-repo/ci/tasks/build-samples.yml
312312
timeout: ((task-timeout))
313313
- task: build-integration-tests
314-
image: spring-boot-ci-image
314+
image: ci-image
315315
file: git-repo/ci/tasks/build-integration-tests.yml
316316
timeout: ((task-timeout))
317317
- task: build-deployment-tests
318-
image: spring-boot-ci-image
318+
image: ci-image
319319
file: git-repo/ci/tasks/build-deployment-tests.yml
320320
timeout: ((task-timeout))
321321
on_success:
@@ -332,30 +332,30 @@ jobs:
332332
serial: true
333333
public: true
334334
plan:
335-
- get: spring-boot-jdk11-ci-image
335+
- get: ci-image-jdk11
336336
- get: git-repo
337337
trigger: true
338338
- put: repo-status-jdk11-build
339339
params: { state: "pending", commit: "git-repo" }
340340
- do:
341341
- task: build-project
342-
image: spring-boot-jdk11-ci-image
342+
image: ci-image-jdk11
343343
<<: *build-project-task-params
344344
- in_parallel:
345345
- task: build-samples
346-
image: spring-boot-jdk11-ci-image
346+
image: ci-image-jdk11
347347
file: git-repo/ci/tasks/build-samples.yml
348348
timeout: ((task-timeout))
349349
params:
350350
<<: *gradle-enterprise-task-params
351351
- task: build-integration-tests
352-
image: spring-boot-jdk11-ci-image
352+
image: ci-image-jdk11
353353
file: git-repo/ci/tasks/build-integration-tests.yml
354354
timeout: ((task-timeout))
355355
params:
356356
<<: *gradle-enterprise-task-params
357357
- task: build-deployment-tests
358-
image: spring-boot-jdk11-ci-image
358+
image: ci-image-jdk11
359359
file: git-repo/ci/tasks/build-deployment-tests.yml
360360
timeout: ((task-timeout))
361361
params:
@@ -399,11 +399,11 @@ jobs:
399399
- name: stage-milestone
400400
serial: true
401401
plan:
402-
- get: spring-boot-ci-image
402+
- get: ci-image
403403
- get: git-repo
404404
trigger: false
405405
- task: stage
406-
image: spring-boot-ci-image
406+
image: ci-image
407407
file: git-repo/ci/tasks/stage.yml
408408
params:
409409
RELEASE_TYPE: M
@@ -420,11 +420,11 @@ jobs:
420420
- name: stage-rc
421421
serial: true
422422
plan:
423-
- get: spring-boot-ci-image
423+
- get: ci-image
424424
- get: git-repo
425425
trigger: false
426426
- task: stage
427-
image: spring-boot-ci-image
427+
image: ci-image
428428
file: git-repo/ci/tasks/stage.yml
429429
params:
430430
RELEASE_TYPE: RC
@@ -441,11 +441,11 @@ jobs:
441441
- name: stage-release
442442
serial: true
443443
plan:
444-
- get: spring-boot-ci-image
444+
- get: ci-image
445445
- get: git-repo
446446
trigger: false
447447
- task: stage
448-
image: spring-boot-ci-image
448+
image: ci-image
449449
file: git-repo/ci/tasks/stage.yml
450450
params:
451451
RELEASE_TYPE: RELEASE
@@ -462,7 +462,7 @@ jobs:
462462
- name: promote-milestone
463463
serial: true
464464
plan:
465-
- get: spring-boot-ci-image
465+
- get: ci-image
466466
- get: git-repo
467467
trigger: false
468468
- get: artifactory-repo
@@ -472,7 +472,7 @@ jobs:
472472
download_artifacts: false
473473
save_build_info: true
474474
- task: promote
475-
image: spring-boot-ci-image
475+
image: ci-image
476476
file: git-repo/ci/tasks/promote.yml
477477
params:
478478
RELEASE_TYPE: M
@@ -491,7 +491,7 @@ jobs:
491491
- name: promote-rc
492492
serial: true
493493
plan:
494-
- get: spring-boot-ci-image
494+
- get: ci-image
495495
- get: git-repo
496496
trigger: false
497497
- get: artifactory-repo
@@ -501,7 +501,7 @@ jobs:
501501
download_artifacts: false
502502
save_build_info: true
503503
- task: promote
504-
image: spring-boot-ci-image
504+
image: ci-image
505505
file: git-repo/ci/tasks/promote.yml
506506
params:
507507
RELEASE_TYPE: RC
@@ -520,7 +520,7 @@ jobs:
520520
- name: promote-release
521521
serial: true
522522
plan:
523-
- get: spring-boot-ci-image
523+
- get: ci-image
524524
- get: git-repo
525525
trigger: false
526526
- get: artifactory-repo
@@ -530,7 +530,7 @@ jobs:
530530
download_artifacts: false
531531
save_build_info: true
532532
- task: promote
533-
image: spring-boot-ci-image
533+
image: ci-image
534534
file: git-repo/ci/tasks/promote.yml
535535
params:
536536
RELEASE_TYPE: RELEASE
@@ -539,7 +539,7 @@ jobs:
539539
- name: sync-to-maven-central
540540
serial: true
541541
plan:
542-
- get: spring-boot-ci-image
542+
- get: ci-image
543543
- get: git-repo
544544
- get: artifactory-repo
545545
trigger: true
@@ -548,7 +548,7 @@ jobs:
548548
download_artifacts: false
549549
save_build_info: true
550550
- task: sync-to-maven-central
551-
image: spring-boot-ci-image
551+
image: ci-image
552552
file: git-repo/ci/tasks/sync-to-maven-central.yml
553553
params:
554554
<<: *bintray-task-params
@@ -565,11 +565,11 @@ jobs:
565565
tag: generated-release-notes/tag
566566
body: generated-release-notes/release-notes.md
567567
groups:
568-
- name: "Build"
568+
- name: "builds"
569569
jobs: ["build", "jdk11-build", "windows-build"]
570-
- name: "Release"
570+
- name: "releases"
571571
jobs: ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release", "sync-to-maven-central"]
572-
- name: "CI Images"
573-
jobs: ["build-spring-boot-ci-images", "detect-docker-updates", "detect-jdk-updates", "detect-ubuntu-image-updates"]
574-
- name: "Build Pull Requests"
572+
- name: "ci-images"
573+
jobs: ["build-ci-images", "detect-docker-updates", "detect-jdk-updates", "detect-ubuntu-image-updates"]
574+
- name: "pull-requests"
575575
jobs: ["build-pull-requests"]

0 commit comments

Comments
 (0)