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"
1
49
resource_types :
2
50
- name : artifactory-resource
3
51
type : docker-image
@@ -23,17 +71,12 @@ resources:
23
71
type : git
24
72
icon : github-circle
25
73
source :
26
- uri : ((github-repo))
27
- username : ((github-username))
28
- password : ((github-password))
29
- branch : ((branch))
74
+ << : *git-repo-resource-source
30
75
- name : git-repo-windows
31
76
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
37
80
git_config :
38
81
- name : core.autocrlf
39
82
value : true
@@ -74,26 +117,20 @@ resources:
74
117
type : docker-image
75
118
icon : docker
76
119
source :
120
+ << : *docker-resource-source
77
121
repository : ((docker-hub-organization))/spring-boot-ci-image
78
- username : ((docker-hub-username))
79
- password : ((docker-hub-password))
80
- tag : 2.2.x
81
122
- name : spring-boot-jdk11-ci-image
82
123
type : docker-image
83
124
icon : docker
84
125
source :
126
+ << : *docker-resource-source
85
127
repository : ((docker-hub-organization))/spring-boot-jdk11-ci-image
86
- username : ((docker-hub-username))
87
- password : ((docker-hub-password))
88
- tag : 2.2.x
89
128
- name : spring-boot-jdk14-ci-image
90
129
type : docker-image
91
130
icon : docker
92
131
source :
132
+ << : *docker-resource-source
93
133
repository : ((docker-hub-organization))/spring-boot-jdk14-ci-image
94
- username : ((docker-hub-username))
95
- password : ((docker-hub-password))
96
- tag : 2.2.x
97
134
- name : artifactory-repo
98
135
type : artifactory-resource
99
136
icon : package-variant
@@ -170,22 +207,14 @@ jobs:
170
207
- task : detect-jdk8-update
171
208
file : git-repo/ci/tasks/detect-jdk-updates.yml
172
209
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
177
211
JDK_VERSION : java8
178
- MILESTONE : ((milestone))
179
212
image : spring-boot-ci-image
180
213
- task : detect-jdk11-update
181
214
file : git-repo/ci/tasks/detect-jdk-updates.yml
182
215
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
187
217
JDK_VERSION : java11
188
- MILESTONE : ((milestone))
189
218
image : spring-boot-ci-image
190
219
- task : detect-jdk14-update
191
220
file : git-repo/ci/tasks/detect-jdk-updates.yml
@@ -207,11 +236,7 @@ jobs:
207
236
- task : detect-ubuntu-image-updates
208
237
file : git-repo/ci/tasks/detect-ubuntu-image-updates.yml
209
238
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
215
240
image : spring-boot-ci-image
216
241
- name : detect-docker-updates
217
242
plan :
@@ -223,11 +248,7 @@ jobs:
223
248
- task : detect-docker-updates
224
249
file : git-repo/ci/tasks/detect-docker-updates.yml
225
250
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
231
252
image : spring-boot-ci-image
232
253
- name : build
233
254
serial : true
@@ -240,10 +261,8 @@ jobs:
240
261
params : { state: "pending", commit: "git-repo" }
241
262
- do :
242
263
- task : build-project
243
- privileged : true
244
- timeout : ((task-timeout))
264
+ << : *build-project-task-params
245
265
image : spring-boot-ci-image
246
- file : git-repo/ci/tasks/build-project.yml
247
266
- in_parallel :
248
267
- task : build-smoke-tests
249
268
timeout : ((task-timeout))
@@ -270,22 +289,8 @@ jobs:
270
289
- put : repo-status-build
271
290
params : { state: "success", commit: "git-repo" }
272
291
- 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
289
294
on_failure :
290
295
do :
291
296
- put : slack-alert
@@ -352,10 +357,8 @@ jobs:
352
357
params : { state: "pending", commit: "git-repo" }
353
358
- do :
354
359
- task : build-project
355
- privileged : true
356
- timeout : ((task-timeout))
360
+ << : *build-project-task-params
357
361
image : spring-boot-jdk11-ci-image
358
- file : git-repo/ci/tasks/build-project.yml
359
362
- in_parallel :
360
363
- task : build-smoke-tests
361
364
timeout : ((task-timeout))
@@ -474,7 +477,7 @@ jobs:
474
477
RELEASE_TYPE : M
475
478
- put : artifactory-repo
476
479
params :
477
- << : *artifactory-params
480
+ << : *artifactory-repo-put- params
478
481
repo : libs-staging-local
479
482
- put : git-repo
480
483
params :
@@ -492,7 +495,7 @@ jobs:
492
495
RELEASE_TYPE : RC
493
496
- put : artifactory-repo
494
497
params :
495
- << : *artifactory-params
498
+ << : *artifactory-repo-put- params
496
499
repo : libs-staging-local
497
500
- put : git-repo
498
501
params :
@@ -510,7 +513,7 @@ jobs:
510
513
RELEASE_TYPE : RELEASE
511
514
- put : artifactory-repo
512
515
params :
513
- << : *artifactory-params
516
+ << : *artifactory-repo-put- params
514
517
repo : libs-staging-local
515
518
- put : git-repo
516
519
params :
@@ -532,9 +535,7 @@ jobs:
532
535
file : git-repo/ci/tasks/promote.yml
533
536
params :
534
537
RELEASE_TYPE : M
535
- ARTIFACTORY_SERVER : ((artifactory-server))
536
- ARTIFACTORY_USERNAME : ((artifactory-username))
537
- ARTIFACTORY_PASSWORD : ((artifactory-password))
538
+ << : *artifactory-task-params
538
539
- task : generate-release-notes
539
540
file : git-repo/ci/tasks/generate-release-notes.yml
540
541
params :
@@ -563,9 +564,7 @@ jobs:
563
564
file : git-repo/ci/tasks/promote.yml
564
565
params :
565
566
RELEASE_TYPE : RC
566
- ARTIFACTORY_SERVER : ((artifactory-server))
567
- ARTIFACTORY_USERNAME : ((artifactory-username))
568
- ARTIFACTORY_PASSWORD : ((artifactory-password))
567
+ << : *artifactory-task-params
569
568
- task : generate-release-notes
570
569
file : git-repo/ci/tasks/generate-release-notes.yml
571
570
params :
@@ -594,13 +593,8 @@ jobs:
594
593
file : git-repo/ci/tasks/promote.yml
595
594
params :
596
595
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
604
598
- name : sync-to-maven-central
605
599
serial : true
606
600
plan :
@@ -616,12 +610,8 @@ jobs:
616
610
image : spring-boot-ci-image
617
611
file : git-repo/ci/tasks/sync-to-maven-central.yml
618
612
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
625
615
- task : generate-release-notes
626
616
file : git-repo/ci/tasks/generate-release-notes.yml
627
617
params :
0 commit comments