Skip to content

Commit 73b7afa

Browse files
authored
Update teamcity commit status publisher settings (#388)
1 parent 19e3160 commit 73b7afa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.teamcity/additionalConfiguration.kt

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@
33
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
44
*/
55

6+
import jetbrains.buildServer.configs.kotlin.DslContext
67
import jetbrains.buildServer.configs.kotlin.Project
78
import jetbrains.buildServer.configs.kotlin.buildFeatures.commitStatusPublisher
89

910
fun Project.additionalConfiguration() {
1011
knownBuilds.buildAll.features {
1112
commitStatusPublisher {
13+
vcsRootExtId = "${DslContext.settingsRoot.id}"
1214
publisher = github {
1315
githubUrl = "https://api.github.com"
14-
authType = personalToken {
15-
token = "credentialsJSON:af36802a-ccd4-401b-86b9-0b08d2dfad17"
16+
authType = storedToken {
17+
tokenId = "tc_token_id:CID_7db3007c46f7e30124f81ef54591b223:-1:4b5743ff-b95e-41b0-89d6-e9a50d3048db"
1618
}
1719
}
18-
param("github_oauth_user", "ilya-g")
1920
}
2021
}
2122
}

0 commit comments

Comments
 (0)