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:
parent
2e4062b5db
commit
6d17304e4e
68
.teamcity/_Self/buildTypes/ReleasePlugin.kt
vendored
68
.teamcity/_Self/buildTypes/ReleasePlugin.kt
vendored
@ -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 {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user