Skip to content

Commit

Permalink
Update teamcity commit status publisher settings (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
Badya authored Aug 12, 2024
1 parent 19e3160 commit 73b7afa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .teamcity/additionalConfiguration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
*/

import jetbrains.buildServer.configs.kotlin.DslContext
import jetbrains.buildServer.configs.kotlin.Project
import jetbrains.buildServer.configs.kotlin.buildFeatures.commitStatusPublisher

fun Project.additionalConfiguration() {
knownBuilds.buildAll.features {
commitStatusPublisher {
vcsRootExtId = "${DslContext.settingsRoot.id}"
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "credentialsJSON:af36802a-ccd4-401b-86b9-0b08d2dfad17"
authType = storedToken {
tokenId = "tc_token_id:CID_7db3007c46f7e30124f81ef54591b223:-1:4b5743ff-b95e-41b0-89d6-e9a50d3048db"
}
}
param("github_oauth_user", "ilya-g")
}
}
}

0 comments on commit 73b7afa

Please sign in to comment.