mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Move SDKMAN to a separate job
Closes gh-21903
This commit is contained in:
parent
6a8ad73e2e
commit
e5aea89599
@ -658,11 +658,28 @@ jobs:
|
||||
name: generated-changelog/tag
|
||||
tag: generated-changelog/tag
|
||||
body: generated-changelog/changelog.md
|
||||
- name: publish-to-sdkman
|
||||
serial: true
|
||||
plan:
|
||||
- get: ci-image
|
||||
- get: git-repo
|
||||
- get: artifactory-repo
|
||||
passed: [sync-to-maven-central]
|
||||
params:
|
||||
download_artifacts: false
|
||||
save_build_info: true
|
||||
- task: publish-to-sdkman
|
||||
image: ci-image
|
||||
file: git-repo/ci/tasks/publish-to-sdkman.yml
|
||||
params:
|
||||
<<: *sdkman-task-params
|
||||
RELEASE_TYPE: RELEASE
|
||||
BRANCH: ((branch))
|
||||
groups:
|
||||
- name: "builds"
|
||||
jobs: ["build", "jdk11-build", "jdk15-build", "windows-build"]
|
||||
- name: "releases"
|
||||
jobs: ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release", "sync-to-maven-central"]
|
||||
jobs: ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release", "sync-to-maven-central", "publish-to-sdkman"]
|
||||
- name: "ci-images"
|
||||
jobs: ["build-ci-images", "detect-docker-updates", "detect-jdk-updates", "detect-ubuntu-image-updates"]
|
||||
- name: "pull-requests"
|
||||
|
@ -11,7 +11,5 @@ java -jar /spring-boot-release-scripts.jar distribute $RELEASE_TYPE $BUILD_INFO_
|
||||
|
||||
java -jar /spring-boot-release-scripts.jar publishGradlePlugin $RELEASE_TYPE $BUILD_INFO_LOCATION || { exit 1; }
|
||||
|
||||
java -jar /spring-boot-release-scripts.jar publishToSdkman $RELEASE_TYPE $version $BRANCH || {exit 1;}
|
||||
|
||||
echo "Promotion complete"
|
||||
echo $version > version/version
|
||||
|
9
ci/scripts/publish-to-sdkman.sh
Executable file
9
ci/scripts/publish-to-sdkman.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
source $(dirname $0)/common.sh
|
||||
|
||||
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
|
||||
|
||||
java -jar /spring-boot-release-scripts.jar publishToSdkman $RELEASE_TYPE $version $BRANCH || {exit 1;}
|
||||
|
||||
echo "Push to SDKMAN complete"
|
11
ci/tasks/publish-to-sdkman.yml
Executable file
11
ci/tasks/publish-to-sdkman.yml
Executable file
@ -0,0 +1,11 @@
|
||||
---
|
||||
platform: linux
|
||||
inputs:
|
||||
- name: artifactory-repo
|
||||
params:
|
||||
RELEASE_TYPE:
|
||||
BRANCH:
|
||||
SDKMAN_CONSUMER_KEY:
|
||||
SDKMAN_CONSUMER_TOKEN:
|
||||
run:
|
||||
path: git-repo/ci/scripts/publish-to-sdkman.sh
|
Loading…
Reference in New Issue
Block a user