Skip to content

Commit

Permalink
Revert "Temporally comment out release branch reset"
Browse files Browse the repository at this point in the history
This reverts commit e67c71e.
  • Loading branch information
AlexPl292 committed Jul 2, 2024
1 parent e67c71e commit a84c04c
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .teamcity/_Self/buildTypes/ReleasePlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,26 @@ sealed class ReleasePlugin(private val releaseType: String) : IdeaVimBuildType({
name = "Pull git history"
scriptContent = "git fetch --unshallow"
}
// script {
// name = "Reset release branch"
// scriptContent = """
// if [ "major" = "$releaseType" ] || [ "minor" = "$releaseType" ]
// then
// echo Resetting the release branch because the release type is $releaseType
// git checkout master
// latest_eap=${'$'}(git describe --tags --match="[0-9].[0-9]*.[0-9]-eap.[0-9]*" --abbrev=0 HEAD)
// echo Latest EAP: ${'$'}latest_eap
// commit_of_latest_eap=${'$'}(git rev-list -n 1 ${'$'}latest_eap)
// echo Commit of latest EAP: ${'$'}commit_of_latest_eap
// git checkout release
// git reset --hard ${'$'}commit_of_latest_eap
// else
// git checkout release
// echo Do not reset the release branch because the release type is $releaseType
// fi
// echo Checked out release branch
// """.trimIndent()
// }
script {
name = "Reset release branch"
scriptContent = """
if [ "major" = "$releaseType" ] || [ "minor" = "$releaseType" ]
then
echo Resetting the release branch because the release type is $releaseType
git checkout master
latest_eap=${'$'}(git describe --tags --match="[0-9].[0-9]*.[0-9]-eap.[0-9]*" --abbrev=0 HEAD)
echo Latest EAP: ${'$'}latest_eap
commit_of_latest_eap=${'$'}(git rev-list -n 1 ${'$'}latest_eap)
echo Commit of latest EAP: ${'$'}commit_of_latest_eap
git checkout release
git reset --hard ${'$'}commit_of_latest_eap
else
git checkout release
echo Do not reset the release branch because the release type is $releaseType
fi
echo Checked out release branch
""".trimIndent()
}
gradle {
name = "Calculate new version"
tasks = "scripts:calculateNewVersion"
Expand Down

0 comments on commit a84c04c

Please sign in to comment.