mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Don't set next version when staging final version
Closes gh-38399
This commit is contained in:
parent
83d1d8e36d
commit
b4348ecf19
@ -12,3 +12,4 @@ milestone: "2.7.x"
|
|||||||
build-name: "spring-boot"
|
build-name: "spring-boot"
|
||||||
concourse-url: "https://ci.spring.io"
|
concourse-url: "https://ci.spring.io"
|
||||||
task-timeout: 2h00m
|
task-timeout: 2h00m
|
||||||
|
final-release: false
|
||||||
|
@ -519,6 +519,7 @@ jobs:
|
|||||||
timeout: ((task-timeout))
|
timeout: ((task-timeout))
|
||||||
file: git-repo/ci/tasks/stage.yml
|
file: git-repo/ci/tasks/stage.yml
|
||||||
params:
|
params:
|
||||||
|
FINAL_RELEASE: ((final-release))
|
||||||
RELEASE_TYPE: M
|
RELEASE_TYPE: M
|
||||||
<<: *gradle-enterprise-task-params
|
<<: *gradle-enterprise-task-params
|
||||||
<<: *docker-hub-task-params
|
<<: *docker-hub-task-params
|
||||||
@ -542,6 +543,7 @@ jobs:
|
|||||||
timeout: ((task-timeout))
|
timeout: ((task-timeout))
|
||||||
file: git-repo/ci/tasks/stage.yml
|
file: git-repo/ci/tasks/stage.yml
|
||||||
params:
|
params:
|
||||||
|
FINAL_RELEASE: ((final-release))
|
||||||
RELEASE_TYPE: RC
|
RELEASE_TYPE: RC
|
||||||
<<: *gradle-enterprise-task-params
|
<<: *gradle-enterprise-task-params
|
||||||
<<: *docker-hub-task-params
|
<<: *docker-hub-task-params
|
||||||
@ -565,6 +567,7 @@ jobs:
|
|||||||
timeout: ((task-timeout))
|
timeout: ((task-timeout))
|
||||||
file: git-repo/ci/tasks/stage.yml
|
file: git-repo/ci/tasks/stage.yml
|
||||||
params:
|
params:
|
||||||
|
FINAL_RELEASE: ((final-release))
|
||||||
RELEASE_TYPE: RELEASE
|
RELEASE_TYPE: RELEASE
|
||||||
<<: *gradle-enterprise-task-params
|
<<: *gradle-enterprise-task-params
|
||||||
<<: *docker-hub-task-params
|
<<: *docker-hub-task-params
|
||||||
|
@ -38,7 +38,7 @@ git tag -a "v$stageVersion" -m"Release v$stageVersion" > /dev/null
|
|||||||
./gradlew --no-daemon --max-workers=4 -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository
|
./gradlew --no-daemon --max-workers=4 -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository
|
||||||
|
|
||||||
git reset --hard HEAD^ > /dev/null
|
git reset --hard HEAD^ > /dev/null
|
||||||
if [[ $nextVersion != $snapshotVersion ]]; then
|
if [[ $FINAL_RELEASE != true && $nextVersion != $snapshotVersion ]]; then
|
||||||
echo "Setting next development version (v$nextVersion)"
|
echo "Setting next development version (v$nextVersion)"
|
||||||
sed -i "s/version=$snapshotVersion/version=$nextVersion/" gradle.properties
|
sed -i "s/version=$snapshotVersion/version=$nextVersion/" gradle.properties
|
||||||
git add gradle.properties > /dev/null
|
git add gradle.properties > /dev/null
|
||||||
|
@ -8,6 +8,7 @@ outputs:
|
|||||||
params:
|
params:
|
||||||
RELEASE_TYPE:
|
RELEASE_TYPE:
|
||||||
CI: true
|
CI: true
|
||||||
|
FINAL_RELEASE:
|
||||||
GRADLE_ENTERPRISE_CACHE_URL:
|
GRADLE_ENTERPRISE_CACHE_URL:
|
||||||
GRADLE_ENTERPRISE_CACHE_USERNAME:
|
GRADLE_ENTERPRISE_CACHE_USERNAME:
|
||||||
GRADLE_ENTERPRISE_CACHE_PASSWORD:
|
GRADLE_ENTERPRISE_CACHE_PASSWORD:
|
||||||
|
Loading…
Reference in New Issue
Block a user