Fix issues when replaying a release build

- The release branch is reset to the original state
- The local tag is deleted
This commit is contained in:
René Pfeuffer
2024-05-31 11:30:50 +02:00
parent 0ffd80310b
commit ba8e43349a

5
Jenkinsfile vendored
View File

@@ -30,9 +30,12 @@ pipeline {
}
steps {
// read version from branch, set it and commit it
sh "git tag -d ${releaseVersion} || true"
sh "git fetch --tags"
sh "git checkout ${env.BRANCH_NAME}"
sh "git reset --hard origin/${env.BRANCH_NAME}"
gradle "setVersion -PnewVersion=${releaseVersion}"
sh "git add gradle.properties '**.json'"
sh "git checkout ${env.BRANCH_NAME}"
commit "Release version ${releaseVersion}"
// fetch all remotes from origin