@@ -63,6 +63,12 @@ resources:
63
63
repo : spring-projects/spring-hateoas
64
64
base : ((branch))
65
65
66
+ - name : spring-hateoas-release
67
+ type : git
68
+ source :
69
+ uri : https://github.com/spring-projects/spring-hateoas.git
70
+ branch : ((release-branch))
71
+
66
72
- name : spring-hateoas-status
67
73
type : github-status
68
74
source :
@@ -85,6 +91,11 @@ groups:
85
91
- name : pull-requests
86
92
jobs :
87
93
- spring-hateoas-pull-requests
94
+ - name : release
95
+ jobs :
96
+ - release-to-artifactory
97
+ # - promote-to-bintray
98
+ # - sync-to-maven-central
88
99
89
100
jobs :
90
101
- name : Test - JDK 8
98
109
- task : test
99
110
file : spring-hateoas-github/ci/test.yml
100
111
params : { PROFILE: "non-existent" }
101
- << : *slack-failure
112
+ << : *slack-test- failure
102
113
103
114
- name : Test - JDK 11
104
115
serial : true
@@ -112,7 +123,7 @@ jobs:
112
123
image : openjdk:11-jdk
113
124
file : spring-hateoas-github/ci/test.yml
114
125
params : { PROFILE: "non-existant" }
115
- << : *slack-failure
126
+ << : *slack-test- failure
116
127
117
128
- name : Test - JDK 13
118
129
serial : true
@@ -126,7 +137,7 @@ jobs:
126
137
image : openjdk:13-jdk
127
138
file : spring-hateoas-github/ci/test.yml
128
139
params : { PROFILE: "non-existant" }
129
- << : *slack-failure
140
+ << : *slack-test- failure
130
141
131
142
- name : Build
132
143
serial : true
@@ -242,7 +253,166 @@ jobs:
242
253
title : " $BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME"
243
254
title_link : $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
244
255
245
- slack-failure : &slack-failure
256
+ - name : release-to-artifactory
257
+ serial : true
258
+ public : true
259
+ plan :
260
+ - get : spring-hateoas-github
261
+ resource : spring-hateoas-release
262
+ trigger : true
263
+ - put : spring-hateoas-status
264
+ params :
265
+ commit : spring-hateoas-release
266
+ state : pending
267
+ - task : build
268
+ file : spring-hateoas-github/ci/build.yml
269
+ - put : spring-hateoas-artifactory
270
+ params :
271
+ build_number : ${BUILD_NAME}
272
+ build_uri : ${ATC_EXTERNAL_URL}/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}
273
+ repo : libs-milestone-local
274
+ folder : spring-hateoas-artifactory
275
+ artifact_set :
276
+ - include :
277
+ - " /**"
278
+ properties :
279
+ zip.deployed : false
280
+ zip.displayname : " Spring HATEOAS"
281
+ zip.name : " spring-hateoas"
282
+ zip.type : " docs"
283
+ on_failure :
284
+ aggregate :
285
+ - put : spring-hateoas-status
286
+ params :
287
+ commit : spring-hateoas-github
288
+ state : failure
289
+ - put : slack
290
+ params :
291
+ attachments :
292
+ - color : danger
293
+ fallback : " $BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME <FAILURE>"
294
+ text : " Releasing to artifactory has failed"
295
+ title : " $BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME"
296
+ title_link : $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
297
+ on_success :
298
+ aggregate :
299
+ - put : spring-hateoas-status
300
+ params :
301
+ commit : spring-hateoas-github
302
+ state : success
303
+ - put : slack
304
+ params :
305
+ attachments :
306
+ - color : good
307
+ fallback : " $BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME <SUCCESS>"
308
+ text : " Releasing to artifactory has succeeded!"
309
+ title : " $BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME"
310
+ title_link : $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
311
+
312
+ # - name: promote-to-bintray
313
+ # serial: true
314
+ # plan:
315
+ # - get: spring-hateoas-github
316
+ # resource: spring-hateoas-release
317
+ # - get: spring-hateoas-artifactory
318
+ # trigger: true
319
+ # passed: [release-to-artifactory]
320
+ # params:
321
+ # save_build_info: true
322
+ # - task: promote-to-bintray
323
+ # file: spring-hateoas-github/ci/promote-to-bintray.yml
324
+ # params:
325
+ # ARTIFACTORY_USERNAME: ((artifactory-username))
326
+ # ARTIFACTORY_PASSWORD: ((artifactory-password))
327
+ # on_failure:
328
+ # aggregate:
329
+ # - put: spring-hateoas-status
330
+ # params:
331
+ # commit: spring-hateoas-github
332
+ # state: failure
333
+ # - put: slack
334
+ # params:
335
+ # attachments:
336
+ # - color: danger
337
+ # fallback: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME <FAILURE>"
338
+ # text: "Promoting to bintray has failed"
339
+ # title: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME"
340
+ # title_link: $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
341
+ # on_success:
342
+ # aggregate:
343
+ # - put: spring-hateoas-status
344
+ # params:
345
+ # commit: spring-hateoas-github
346
+ # state: success
347
+ # - put: slack
348
+ # params:
349
+ # attachments:
350
+ # - color: good
351
+ # fallback: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME <SUCCESS>"
352
+ # text: "Promoting to bintray has succeeded!"
353
+ # title: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME"
354
+ # title_link: $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
355
+
356
+ # - name: sync-to-maven-central
357
+ # serial: true
358
+ # plan:
359
+ # - get: spring-hateoas-github
360
+ # resource: spring-hateoas-release
361
+ # - get: spring-hateoas-artifactory
362
+ # trigger: true
363
+ # passed: [promote-to-bintray]
364
+ # params:
365
+ # save_build_info: true
366
+ # - task: sync-to-maven-central
367
+ # file: spring-hateoas-github/ci/sync-to-maven-central.yml
368
+ # params:
369
+ # BINTRAY_USERNAME: ((bintray-username))
370
+ # BINTRAY_API_KEY: ((bintray-api-key))
371
+ # SONATYPE_USER_TOKEN: ((sonatype-user-token))
372
+ # SONATYPE_PASSWORD_TOKEN: ((sonatype-user-token-password))
373
+ # ARTIFACTORY_USERNAME: ((artifactory-username))
374
+ # ARTIFACTORY_PASSWORD: ((artifactory-password))
375
+ # on_failure:
376
+ # aggregate:
377
+ # - put: spring-hateoas-status
378
+ # params:
379
+ # commit: spring-hateoas-github
380
+ # state: failure
381
+ # - put: slack
382
+ # params:
383
+ # attachments:
384
+ # - color: danger
385
+ # fallback: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME <FAILURE>"
386
+ # text: "Syncing to maven central has failed"
387
+ # title: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME"
388
+ # title_link: $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
389
+ # on_success:
390
+ # aggregate:
391
+ # - put: spring-hateoas-status
392
+ # params:
393
+ # commit: spring-hateoas-github
394
+ # state: success
395
+ # - put: slack
396
+ # params:
397
+ # attachments:
398
+ # - color: good
399
+ # fallback: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME <SUCCESS>"
400
+ # text: "Syncing to maven central has succeeded!"
401
+ # title: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME"
402
+ # title_link: $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
403
+ #
404
+ slack-test-success : &slack-test-success
405
+ on_success :
406
+ put : slack
407
+ params :
408
+ attachments :
409
+ - color : good
410
+ fallback : " $BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME <FAILURE>"
411
+ text : " Test has succeeded"
412
+ title : " $BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME"
413
+ title_link : $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
414
+
415
+ slack-test-failure : &slack-test-failure
246
416
on_failure :
247
417
put : slack
248
418
params :
0 commit comments