Skip to content

Commit d7a90ff

Browse files
committed
Merge branch '2.3.x'
Closes gh-21878
2 parents 9ae6816 + 8fb3a31 commit d7a90ff

File tree

1 file changed

+74
-89
lines changed

1 file changed

+74
-89
lines changed

ci/pipeline.yml

Lines changed: 74 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
1+
anchors:
2+
git-repo-resource-source: &git-repo-resource-source
3+
uri: ((github-repo))
4+
username: ((github-username))
5+
password: ((github-password))
6+
branch: ((branch))
7+
docker-resource-source: &docker-resource-source
8+
username: ((docker-hub-username))
9+
password: ((docker-hub-password))
10+
tag: ((milestone))
11+
build-project-task-params: &build-project-task-params
12+
privileged: true
13+
timeout: ((task-timeout))
14+
file: git-repo/ci/tasks/build-project.yml
15+
params:
16+
BRANCH: ((branch))
17+
GRADLE_ENTERPRISE_ACCESS_KEY: ((gradle_enterprise_secret_access_key))
18+
GRADLE_ENTERPRISE_CACHE_USERNAME: ((gradle_enterprise_cache_user.username))
19+
GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password))
20+
github-task-params: &github-task-params
21+
GITHUB_REPO: spring-boot
22+
GITHUB_ORGANIZATION: spring-projects
23+
GITHUB_PASSWORD: ((github-password))
24+
GITHUB_USERNAME: ((github-username))
25+
MILESTONE: ((milestone))
26+
bintray-task-params: &bintray-task-params
27+
BINTRAY_SUBJECT: ((bintray-subject))
28+
BINTRAY_REPO: ((bintray-repo))
29+
BINTRAY_USERNAME: ((bintray-username))
30+
BINTRAY_API_KEY: ((bintray-api-key))
31+
sontatype-task-params: &sonatype-task-params
32+
SONATYPE_USER_TOKEN: ((sonatype-user-token))
33+
SONATYPE_PASSWORD_TOKEN: ((sonatype-user-token-password))
34+
artifactory-task-params: &artifactory-task-params
35+
ARTIFACTORY_SERVER: ((artifactory-server))
36+
ARTIFACTORY_USERNAME: ((artifactory-username))
37+
ARTIFACTORY_PASSWORD: ((artifactory-password))
38+
artifactory-repo-put-params: &artifactory-repo-put-params
39+
repo: libs-snapshot-local
40+
folder: distribution-repository
41+
build_uri: "https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}"
42+
build_number: "${BUILD_PIPELINE_NAME}-${BUILD_JOB_NAME}-${BUILD_NAME}"
43+
disable_checksum_uploads: true
44+
threads: 8
45+
artifact_set:
46+
- include:
47+
- "/**/spring-boot-docs-*.zip"
48+
properties:
49+
"zip.type": "docs"
50+
"zip.deployed": "false"
151
resource_types:
252
- name: artifactory-resource
353
type: docker-image
@@ -23,17 +73,12 @@ resources:
2373
type: git
2474
icon: github-circle
2575
source:
26-
uri: ((github-repo))
27-
username: ((github-username))
28-
password: ((github-password))
29-
branch: ((branch))
76+
<<: *git-repo-resource-source
3077
- name: git-repo-windows
3178
type: git
32-
source:
33-
uri: ((github-repo))
34-
username: ((github-username))
35-
password: ((github-password))
36-
branch: ((branch))
79+
icon: github-circle
80+
source:
81+
<<: *git-repo-resource-source
3782
git_config:
3883
- name: core.autocrlf
3984
value: true
@@ -74,26 +119,20 @@ resources:
74119
type: docker-image
75120
icon: docker
76121
source:
122+
<<: *docker-resource-source
77123
repository: ((docker-hub-organization))/spring-boot-ci-image
78-
username: ((docker-hub-username))
79-
password: ((docker-hub-password))
80-
tag: 2.4.x
81124
- name: spring-boot-jdk11-ci-image
82125
type: docker-image
83126
icon: docker
84127
source:
128+
<<: *docker-resource-source
85129
repository: ((docker-hub-organization))/spring-boot-jdk11-ci-image
86-
username: ((docker-hub-username))
87-
password: ((docker-hub-password))
88-
tag: 2.4.x
89130
- name: spring-boot-jdk14-ci-image
90131
type: docker-image
91132
icon: docker
92133
source:
134+
<<: *docker-resource-source
93135
repository: ((docker-hub-organization))/spring-boot-jdk14-ci-image
94-
username: ((docker-hub-username))
95-
password: ((docker-hub-password))
96-
tag: 2.4.x
97136
- name: artifactory-repo
98137
type: artifactory-resource
99138
icon: package-variant
@@ -170,22 +209,14 @@ jobs:
170209
- task: detect-jdk8-update
171210
file: git-repo/ci/tasks/detect-jdk-updates.yml
172211
params:
173-
GITHUB_REPO: spring-boot
174-
GITHUB_ORGANIZATION: spring-projects
175-
GITHUB_PASSWORD: ((github-password))
176-
GITHUB_USERNAME: ((github-username))
212+
<<: *github-task-params
177213
JDK_VERSION: java8
178-
MILESTONE: ((milestone))
179214
image: spring-boot-ci-image
180215
- task: detect-jdk11-update
181216
file: git-repo/ci/tasks/detect-jdk-updates.yml
182217
params:
183-
GITHUB_REPO: spring-boot
184-
GITHUB_ORGANIZATION: spring-projects
185-
GITHUB_PASSWORD: ((github-password))
186-
GITHUB_USERNAME: ((github-username))
218+
<<: *github-task-params
187219
JDK_VERSION: java11
188-
MILESTONE: ((milestone))
189220
image: spring-boot-ci-image
190221
- task: detect-jdk14-update
191222
file: git-repo/ci/tasks/detect-jdk-updates.yml
@@ -207,11 +238,7 @@ jobs:
207238
- task: detect-ubuntu-image-updates
208239
file: git-repo/ci/tasks/detect-ubuntu-image-updates.yml
209240
params:
210-
GITHUB_REPO: spring-boot
211-
GITHUB_ORGANIZATION: spring-projects
212-
GITHUB_PASSWORD: ((github-password))
213-
GITHUB_USERNAME: ((github-username))
214-
MILESTONE: ((milestone))
241+
<<: *github-task-params
215242
image: spring-boot-ci-image
216243
- name: detect-docker-updates
217244
plan:
@@ -223,11 +250,7 @@ jobs:
223250
- task: detect-docker-updates
224251
file: git-repo/ci/tasks/detect-docker-updates.yml
225252
params:
226-
GITHUB_REPO: spring-boot
227-
GITHUB_ORGANIZATION: spring-projects
228-
GITHUB_PASSWORD: ((github-password))
229-
GITHUB_USERNAME: ((github-username))
230-
MILESTONE: ((milestone))
253+
<<: *github-task-params
231254
image: spring-boot-ci-image
232255
- name: build
233256
serial: true
@@ -240,15 +263,8 @@ jobs:
240263
params: { state: "pending", commit: "git-repo" }
241264
- do:
242265
- task: build-project
243-
privileged: true
244-
timeout: ((task-timeout))
266+
<<: *build-project-task-params
245267
image: spring-boot-ci-image
246-
file: git-repo/ci/tasks/build-project.yml
247-
params:
248-
BRANCH: ((branch))
249-
GRADLE_ENTERPRISE_ACCESS_KEY: ((gradle_enterprise_secret_access_key))
250-
GRADLE_ENTERPRISE_CACHE_USERNAME: ((gradle_enterprise_cache_user.username))
251-
GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password))
252268
on_failure:
253269
do:
254270
- put: repo-status-build
@@ -266,19 +282,8 @@ jobs:
266282
- put: repo-status-build
267283
params: { state: "success", commit: "git-repo" }
268284
- put: artifactory-repo
269-
params: &artifactory-params
270-
repo: libs-snapshot-local
271-
folder: distribution-repository
272-
build_uri: "https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}"
273-
build_number: "${BUILD_PIPELINE_NAME}-${BUILD_JOB_NAME}-${BUILD_NAME}"
274-
disable_checksum_uploads: true
275-
threads: 8
276-
artifact_set:
277-
- include:
278-
- "/**/spring-boot-docs-*.zip"
279-
properties:
280-
"zip.type": "docs"
281-
"zip.deployed": "false"
285+
params:
286+
<<: *artifactory-repo-put-params
282287
get_params:
283288
threads: 8
284289
on_failure:
@@ -340,15 +345,8 @@ jobs:
340345
params: { state: "pending", commit: "git-repo" }
341346
- do:
342347
- task: build-project
343-
privileged: true
344-
timeout: ((task-timeout))
348+
<<: *build-project-task-params
345349
image: spring-boot-jdk11-ci-image
346-
file: git-repo/ci/tasks/build-project.yml
347-
params:
348-
BRANCH: ((branch))
349-
GRADLE_ENTERPRISE_ACCESS_KEY: ((gradle_enterprise_secret_access_key))
350-
GRADLE_ENTERPRISE_CACHE_USERNAME: ((gradle_enterprise_cache_user.username))
351-
GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password))
352350
on_failure:
353351
do:
354352
- put: repo-status-jdk11-build
@@ -478,7 +476,7 @@ jobs:
478476
GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password))
479477
- put: artifactory-repo
480478
params:
481-
<<: *artifactory-params
479+
<<: *artifactory-repo-put-params
482480
repo: libs-staging-local
483481
- put: git-repo
484482
params:
@@ -499,7 +497,7 @@ jobs:
499497
GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password))
500498
- put: artifactory-repo
501499
params:
502-
<<: *artifactory-params
500+
<<: *artifactory-repo-put-params
503501
repo: libs-staging-local
504502
- put: git-repo
505503
params:
@@ -520,7 +518,7 @@ jobs:
520518
GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password))
521519
- put: artifactory-repo
522520
params:
523-
<<: *artifactory-params
521+
<<: *artifactory-repo-put-params
524522
repo: libs-staging-local
525523
- put: git-repo
526524
params:
@@ -542,9 +540,7 @@ jobs:
542540
file: git-repo/ci/tasks/promote.yml
543541
params:
544542
RELEASE_TYPE: M
545-
ARTIFACTORY_SERVER: ((artifactory-server))
546-
ARTIFACTORY_USERNAME: ((artifactory-username))
547-
ARTIFACTORY_PASSWORD: ((artifactory-password))
543+
<<: *artifactory-task-params
548544
- task: generate-release-notes
549545
file: git-repo/ci/tasks/generate-release-notes.yml
550546
params:
@@ -573,9 +569,7 @@ jobs:
573569
file: git-repo/ci/tasks/promote.yml
574570
params:
575571
RELEASE_TYPE: RC
576-
ARTIFACTORY_SERVER: ((artifactory-server))
577-
ARTIFACTORY_USERNAME: ((artifactory-username))
578-
ARTIFACTORY_PASSWORD: ((artifactory-password))
572+
<<: *artifactory-task-params
579573
- task: generate-release-notes
580574
file: git-repo/ci/tasks/generate-release-notes.yml
581575
params:
@@ -604,13 +598,8 @@ jobs:
604598
file: git-repo/ci/tasks/promote.yml
605599
params:
606600
RELEASE_TYPE: RELEASE
607-
ARTIFACTORY_SERVER: ((artifactory-server))
608-
ARTIFACTORY_USERNAME: ((artifactory-username))
609-
ARTIFACTORY_PASSWORD: ((artifactory-password))
610-
BINTRAY_SUBJECT: ((bintray-subject))
611-
BINTRAY_REPO: ((bintray-repo))
612-
BINTRAY_USERNAME: ((bintray-username))
613-
BINTRAY_API_KEY: ((bintray-api-key))
601+
<<: *artifactory-task-params
602+
<<: *bintray-task-params
614603
- name: sync-to-maven-central
615604
serial: true
616605
plan:
@@ -626,12 +615,8 @@ jobs:
626615
image: spring-boot-ci-image
627616
file: git-repo/ci/tasks/sync-to-maven-central.yml
628617
params:
629-
BINTRAY_USERNAME: ((bintray-username))
630-
BINTRAY_API_KEY: ((bintray-api-key))
631-
SONATYPE_USER_TOKEN: ((sonatype-user-token))
632-
SONATYPE_PASSWORD_TOKEN: ((sonatype-user-token-password))
633-
BINTRAY_SUBJECT: ((bintray-subject))
634-
BINTRAY_REPO: ((bintray-repo))
618+
<<: *bintray-task-params
619+
<<: *sonatype-task-params
635620
- task: generate-release-notes
636621
file: git-repo/ci/tasks/generate-release-notes.yml
637622
params:

0 commit comments

Comments
 (0)