Skip to content

Commit 6553020

Browse files
committed
Merge branch '2.2.x' into 2.3.x
Closes gh-24420
2 parents f4ed2e7 + e5aea89 commit 6553020

File tree

4 files changed

+38
-3
lines changed

4 files changed

+38
-3
lines changed

ci/pipeline.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,11 +578,28 @@ jobs:
578578
name: generated-changelog/tag
579579
tag: generated-changelog/tag
580580
body: generated-changelog/changelog.md
581+
- name: publish-to-sdkman
582+
serial: true
583+
plan:
584+
- get: ci-image
585+
- get: git-repo
586+
- get: artifactory-repo
587+
passed: [sync-to-maven-central]
588+
params:
589+
download_artifacts: false
590+
save_build_info: true
591+
- task: publish-to-sdkman
592+
image: ci-image
593+
file: git-repo/ci/tasks/publish-to-sdkman.yml
594+
params:
595+
<<: *sdkman-task-params
596+
RELEASE_TYPE: RELEASE
597+
BRANCH: ((branch))
581598
groups:
582599
- name: "builds"
583600
jobs: ["build", "jdk11-build", "jdk15-build", "windows-build"]
584601
- name: "releases"
585-
jobs: ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release", "sync-to-maven-central"]
602+
jobs: ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release", "sync-to-maven-central", "publish-to-sdkman"]
586603
- name: "ci-images"
587604
jobs: ["build-ci-images", "detect-docker-updates", "detect-jdk-updates", "detect-ubuntu-image-updates"]
588605
- name: "pull-requests"

ci/scripts/promote.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@ java -jar /spring-boot-release-scripts.jar distribute $RELEASE_TYPE $BUILD_INFO_
1111

1212
java -jar /spring-boot-release-scripts.jar publishGradlePlugin $RELEASE_TYPE $BUILD_INFO_LOCATION || { exit 1; }
1313

14-
java -jar /spring-boot-release-scripts.jar publishToSdkman $RELEASE_TYPE $version $BRANCH || {exit 1;}
15-
1614
echo "Promotion complete"
1715
echo $version > version/version

ci/scripts/publish-to-sdkman.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
source $(dirname $0)/common.sh
4+
5+
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
6+
7+
java -jar /spring-boot-release-scripts.jar publishToSdkman $RELEASE_TYPE $version $BRANCH || {exit 1;}
8+
9+
echo "Push to SDKMAN complete"

ci/tasks/publish-to-sdkman.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
platform: linux
3+
inputs:
4+
- name: artifactory-repo
5+
params:
6+
RELEASE_TYPE:
7+
BRANCH:
8+
SDKMAN_CONSUMER_KEY:
9+
SDKMAN_CONSUMER_TOKEN:
10+
run:
11+
path: git-repo/ci/scripts/publish-to-sdkman.sh

0 commit comments

Comments
 (0)