Skip to content

Commit 9aa8a07

Browse files
committed
Merge branch '2.1.x' into 2.2.x
Closes gh-21876
2 parents 0fa1d0e + 3a8d173 commit 9aa8a07

File tree

1 file changed

+72
-82
lines changed

1 file changed

+72
-82
lines changed

ci/pipeline.yml

Lines changed: 72 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
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: ((branch))
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+
github-task-params: &github-task-params
16+
GITHUB_REPO: spring-boot
17+
GITHUB_ORGANIZATION: spring-projects
18+
GITHUB_PASSWORD: ((github-password))
19+
GITHUB_USERNAME: ((github-username))
20+
MILESTONE: ((milestone))
21+
bintray-task-params: &bintray-task-params
22+
BINTRAY_SUBJECT: ((bintray-subject))
23+
BINTRAY_REPO: ((bintray-repo))
24+
BINTRAY_USERNAME: ((bintray-username))
25+
BINTRAY_API_KEY: ((bintray-api-key))
26+
sontatype-task-params: &sonatype-task-params
27+
SONATYPE_USER_TOKEN: ((sonatype-user-token))
28+
SONATYPE_PASSWORD_TOKEN: ((sonatype-user-token-password))
29+
artifactory-task-params: &artifactory-task-params
30+
ARTIFACTORY_SERVER: ((artifactory-server))
31+
ARTIFACTORY_USERNAME: ((artifactory-username))
32+
ARTIFACTORY_PASSWORD: ((artifactory-password))
33+
artifactory-repo-put-params: &artifactory-repo-put-params
34+
repo: libs-snapshot-local
35+
folder: distribution-repository
36+
build_uri: "https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}"
37+
build_number: "${BUILD_PIPELINE_NAME}-${BUILD_JOB_NAME}-${BUILD_NAME}"
38+
disable_checksum_uploads: true
39+
exclude:
40+
- "**/*.effective-pom"
41+
- "**/spring-boot-configuration-docs/**"
42+
- "**/spring-boot-test-support/**"
43+
artifact_set:
44+
- include:
45+
- "/**/spring-boot-docs-*.zip"
46+
properties:
47+
"zip.type": "docs"
48+
"zip.deployed": "false"
149
resource_types:
250
- name: artifactory-resource
351
type: docker-image
@@ -23,17 +71,12 @@ resources:
2371
type: git
2472
icon: github-circle
2573
source:
26-
uri: ((github-repo))
27-
username: ((github-username))
28-
password: ((github-password))
29-
branch: ((branch))
74+
<<: *git-repo-resource-source
3075
- name: git-repo-windows
3176
type: git
32-
source:
33-
uri: ((github-repo))
34-
username: ((github-username))
35-
password: ((github-password))
36-
branch: ((branch))
77+
icon: github-circle
78+
source:
79+
<<: *git-repo-resource-source
3780
git_config:
3881
- name: core.autocrlf
3982
value: true
@@ -74,26 +117,20 @@ resources:
74117
type: docker-image
75118
icon: docker
76119
source:
120+
<<: *docker-resource-source
77121
repository: ((docker-hub-organization))/spring-boot-ci-image
78-
username: ((docker-hub-username))
79-
password: ((docker-hub-password))
80-
tag: 2.2.x
81122
- name: spring-boot-jdk11-ci-image
82123
type: docker-image
83124
icon: docker
84125
source:
126+
<<: *docker-resource-source
85127
repository: ((docker-hub-organization))/spring-boot-jdk11-ci-image
86-
username: ((docker-hub-username))
87-
password: ((docker-hub-password))
88-
tag: 2.2.x
89128
- name: spring-boot-jdk14-ci-image
90129
type: docker-image
91130
icon: docker
92131
source:
132+
<<: *docker-resource-source
93133
repository: ((docker-hub-organization))/spring-boot-jdk14-ci-image
94-
username: ((docker-hub-username))
95-
password: ((docker-hub-password))
96-
tag: 2.2.x
97134
- name: artifactory-repo
98135
type: artifactory-resource
99136
icon: package-variant
@@ -170,22 +207,14 @@ jobs:
170207
- task: detect-jdk8-update
171208
file: git-repo/ci/tasks/detect-jdk-updates.yml
172209
params:
173-
GITHUB_REPO: spring-boot
174-
GITHUB_ORGANIZATION: spring-projects
175-
GITHUB_PASSWORD: ((github-password))
176-
GITHUB_USERNAME: ((github-username))
210+
<<: *github-task-params
177211
JDK_VERSION: java8
178-
MILESTONE: ((milestone))
179212
image: spring-boot-ci-image
180213
- task: detect-jdk11-update
181214
file: git-repo/ci/tasks/detect-jdk-updates.yml
182215
params:
183-
GITHUB_REPO: spring-boot
184-
GITHUB_ORGANIZATION: spring-projects
185-
GITHUB_PASSWORD: ((github-password))
186-
GITHUB_USERNAME: ((github-username))
216+
<<: *github-task-params
187217
JDK_VERSION: java11
188-
MILESTONE: ((milestone))
189218
image: spring-boot-ci-image
190219
- task: detect-jdk14-update
191220
file: git-repo/ci/tasks/detect-jdk-updates.yml
@@ -207,11 +236,7 @@ jobs:
207236
- task: detect-ubuntu-image-updates
208237
file: git-repo/ci/tasks/detect-ubuntu-image-updates.yml
209238
params:
210-
GITHUB_REPO: spring-boot
211-
GITHUB_ORGANIZATION: spring-projects
212-
GITHUB_PASSWORD: ((github-password))
213-
GITHUB_USERNAME: ((github-username))
214-
MILESTONE: ((milestone))
239+
<<: *github-task-params
215240
image: spring-boot-ci-image
216241
- name: detect-docker-updates
217242
plan:
@@ -223,11 +248,7 @@ jobs:
223248
- task: detect-docker-updates
224249
file: git-repo/ci/tasks/detect-docker-updates.yml
225250
params:
226-
GITHUB_REPO: spring-boot
227-
GITHUB_ORGANIZATION: spring-projects
228-
GITHUB_PASSWORD: ((github-password))
229-
GITHUB_USERNAME: ((github-username))
230-
MILESTONE: ((milestone))
251+
<<: *github-task-params
231252
image: spring-boot-ci-image
232253
- name: build
233254
serial: true
@@ -240,10 +261,8 @@ jobs:
240261
params: { state: "pending", commit: "git-repo" }
241262
- do:
242263
- task: build-project
243-
privileged: true
244-
timeout: ((task-timeout))
264+
<<: *build-project-task-params
245265
image: spring-boot-ci-image
246-
file: git-repo/ci/tasks/build-project.yml
247266
- in_parallel:
248267
- task: build-smoke-tests
249268
timeout: ((task-timeout))
@@ -270,22 +289,8 @@ jobs:
270289
- put: repo-status-build
271290
params: { state: "success", commit: "git-repo" }
272291
- put: artifactory-repo
273-
params: &artifactory-params
274-
repo: libs-snapshot-local
275-
folder: distribution-repository
276-
build_uri: "https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}"
277-
build_number: "${BUILD_PIPELINE_NAME}-${BUILD_JOB_NAME}-${BUILD_NAME}"
278-
disable_checksum_uploads: true
279-
exclude:
280-
- "**/*.effective-pom"
281-
- "**/spring-boot-configuration-docs/**"
282-
- "**/spring-boot-test-support/**"
283-
artifact_set:
284-
- include:
285-
- "/**/spring-boot-docs-*.zip"
286-
properties:
287-
"zip.type": "docs"
288-
"zip.deployed": "false"
292+
params:
293+
<<: *artifactory-repo-put-params
289294
on_failure:
290295
do:
291296
- put: slack-alert
@@ -352,10 +357,8 @@ jobs:
352357
params: { state: "pending", commit: "git-repo" }
353358
- do:
354359
- task: build-project
355-
privileged: true
356-
timeout: ((task-timeout))
360+
<<: *build-project-task-params
357361
image: spring-boot-jdk11-ci-image
358-
file: git-repo/ci/tasks/build-project.yml
359362
- in_parallel:
360363
- task: build-smoke-tests
361364
timeout: ((task-timeout))
@@ -474,7 +477,7 @@ jobs:
474477
RELEASE_TYPE: M
475478
- put: artifactory-repo
476479
params:
477-
<<: *artifactory-params
480+
<<: *artifactory-repo-put-params
478481
repo: libs-staging-local
479482
- put: git-repo
480483
params:
@@ -492,7 +495,7 @@ jobs:
492495
RELEASE_TYPE: RC
493496
- put: artifactory-repo
494497
params:
495-
<<: *artifactory-params
498+
<<: *artifactory-repo-put-params
496499
repo: libs-staging-local
497500
- put: git-repo
498501
params:
@@ -510,7 +513,7 @@ jobs:
510513
RELEASE_TYPE: RELEASE
511514
- put: artifactory-repo
512515
params:
513-
<<: *artifactory-params
516+
<<: *artifactory-repo-put-params
514517
repo: libs-staging-local
515518
- put: git-repo
516519
params:
@@ -532,9 +535,7 @@ jobs:
532535
file: git-repo/ci/tasks/promote.yml
533536
params:
534537
RELEASE_TYPE: M
535-
ARTIFACTORY_SERVER: ((artifactory-server))
536-
ARTIFACTORY_USERNAME: ((artifactory-username))
537-
ARTIFACTORY_PASSWORD: ((artifactory-password))
538+
<<: *artifactory-task-params
538539
- task: generate-release-notes
539540
file: git-repo/ci/tasks/generate-release-notes.yml
540541
params:
@@ -563,9 +564,7 @@ jobs:
563564
file: git-repo/ci/tasks/promote.yml
564565
params:
565566
RELEASE_TYPE: RC
566-
ARTIFACTORY_SERVER: ((artifactory-server))
567-
ARTIFACTORY_USERNAME: ((artifactory-username))
568-
ARTIFACTORY_PASSWORD: ((artifactory-password))
567+
<<: *artifactory-task-params
569568
- task: generate-release-notes
570569
file: git-repo/ci/tasks/generate-release-notes.yml
571570
params:
@@ -594,13 +593,8 @@ jobs:
594593
file: git-repo/ci/tasks/promote.yml
595594
params:
596595
RELEASE_TYPE: RELEASE
597-
ARTIFACTORY_SERVER: ((artifactory-server))
598-
ARTIFACTORY_USERNAME: ((artifactory-username))
599-
ARTIFACTORY_PASSWORD: ((artifactory-password))
600-
BINTRAY_SUBJECT: ((bintray-subject))
601-
BINTRAY_REPO: ((bintray-repo))
602-
BINTRAY_USERNAME: ((bintray-username))
603-
BINTRAY_API_KEY: ((bintray-api-key))
596+
<<: *artifactory-task-params
597+
<<: *bintray-task-params
604598
- name: sync-to-maven-central
605599
serial: true
606600
plan:
@@ -616,12 +610,8 @@ jobs:
616610
image: spring-boot-ci-image
617611
file: git-repo/ci/tasks/sync-to-maven-central.yml
618612
params:
619-
BINTRAY_USERNAME: ((bintray-username))
620-
BINTRAY_API_KEY: ((bintray-api-key))
621-
SONATYPE_USER_TOKEN: ((sonatype-user-token))
622-
SONATYPE_PASSWORD_TOKEN: ((sonatype-user-token-password))
623-
BINTRAY_SUBJECT: ((bintray-subject))
624-
BINTRAY_REPO: ((bintray-repo))
613+
<<: *bintray-task-params
614+
<<: *sonatype-task-params
625615
- task: generate-release-notes
626616
file: git-repo/ci/tasks/generate-release-notes.yml
627617
params:

0 commit comments

Comments
 (0)