1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-01 15:59:06 +02:00

Revert "Testing CI integration: build plugin instead of pushing it"

This reverts commit dc95c7fc2c.
This commit is contained in:
Alex Plate 2023-11-03 18:19:48 +02:00
parent 2e4062b5db
commit 6d17304e4e
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F
2 changed files with 34 additions and 35 deletions
.teamcity/_Self/buildTypes
scripts/src/main/kotlin/scripts/release

View File

@ -95,45 +95,45 @@ sealed class ReleasePlugin(private val releaseType: String) : IdeaVimBuildType({
}
gradle {
name = "Publish release"
tasks = "build -x test"
tasks = "publishPlugin"
}
// gradle {
// name = "Push changes to the repo"
// tasks = "scripts:pushChangesWithReleaseBranch"
// }
// script {
// name = "Push changes to the repo"
// scriptContent = """
// branch=$(git branch --show-current)
// echo current branch is ${'$'}branch
// if [ "master" != "${'$'}branch" ];
// then
// git checkout master
// fi
//
// git push origin --tags
// git push origin
//
// if [ "patch" != $releaseType ];
// then
// git checkout release
// echo checkout release branch
// git branch --set-upstream-to=origin/release release
// git push --tags
// git push origin --force
// fi
//
// git checkout ${'$'}branch
// """.trimIndent()
// }
// gradle {
// name = "Run Integrations"
// tasks = "releaseActions"
// }
// gradle {
// name = "Slack Notification"
// tasks = "slackNotification"
// }
script {
name = "Push changes to the repo"
scriptContent = """
branch=$(git branch --show-current)
echo current branch is ${'$'}branch
if [ "master" != "${'$'}branch" ];
then
git checkout master
fi
git push origin --tags
git push origin
if [ "patch" != $releaseType ];
then
git checkout release
echo checkout release branch
git branch --set-upstream-to=origin/release release
git push --tags
git push origin --force
fi
git checkout ${'$'}branch
""".trimIndent()
}
gradle {
name = "Run Integrations"
tasks = "releaseActions"
}
gradle {
name = "Slack Notification"
tasks = "slackNotification"
}
}
features {

View File

@ -85,7 +85,6 @@ internal fun getVersion(projectDir: String, onlyStable: Boolean): Pair<Semver, O
}
internal fun Git.checkoutBranch(name: String) {
println("Checking out $name")
val shouldCreateBranch = this.branchList().call().any { it.name == "refs/heads/$name" }.not()
val checkoutCommand = checkout()
.setCreateBranch(shouldCreateBranch)