Skip to content

Commit 0f86217

Browse files
committed
Update teamcity commit status publisher settings
1 parent ce30554 commit 0f86217

File tree

2 files changed

+14
-22
lines changed

2 files changed

+14
-22
lines changed

.teamcity/additionalConfiguration.kt

Lines changed: 0 additions & 21 deletions
This file was deleted.

.teamcity/settings.kts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import jetbrains.buildServer.configs.kotlin.*
22
import jetbrains.buildServer.configs.kotlin.buildSteps.*
33
import jetbrains.buildServer.configs.kotlin.triggers.*
4+
import jetbrains.buildServer.configs.kotlin.buildFeatures.commitStatusPublisher
45

56
/*
67
The settings script is an entry point for defining a TeamCity
@@ -63,7 +64,6 @@ project {
6364

6465
buildTypesOrder = listOf(buildAll, buildVersion, *builds.toTypedArray(), deployPublish, deployVersion, *deploys.toTypedArray())
6566

66-
additionalConfiguration()
6767
}
6868

6969
fun Project.buildVersion() = BuildType {
@@ -105,6 +105,19 @@ fun Project.buildAll(versionBuild: BuildType) = BuildType {
105105
}
106106
}
107107

108+
features {
109+
commitStatusPublisher {
110+
vcsRootExtId = "${DslContext.settingsRoot.id}"
111+
publisher = github {
112+
githubUrl = "https://api.github.com"
113+
authType = storedToken {
114+
tokenId =
115+
"tc_token_id:CID_3c2e87590eb212c2b4b597f0b6696f72:34894:ebd4e9b7-fa1d-4e09-b44a-8604fc643a7c"
116+
}
117+
}
118+
}
119+
}
120+
108121
commonConfigure()
109122
}.also { buildType(it) }
110123

0 commit comments

Comments
 (0)