mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-01 00:19:44 +02:00
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:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user