From 27f66762d0f949f16f8901f5af6c35ce751e2e91 Mon Sep 17 00:00:00 2001 From: nd Date: Wed, 20 Jan 2021 14:49:11 +0100 Subject: [PATCH] Fix compilation error in TC settings (#2313) --- .teamcity/settings.kts | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/.teamcity/settings.kts b/.teamcity/settings.kts index e10c7d6a..d4681b8e 100644 --- a/.teamcity/settings.kts +++ b/.teamcity/settings.kts @@ -81,7 +81,15 @@ class AggregatorBuild(tests: Collection) : BuildType({ } features { - enablePullRequests() + pullRequests { + vcsRootExtId = "${DslContext.settingsRoot.id}" + provider = github { + authType = token { + token = "credentialsJSON:5dc93081-e0b2-41e2-b8f0-dea3c96e6426" + } + filterAuthorRole = PullRequests.GitHubRoleFilter.EVERYBODY + } + } commitStatusPublisher { vcsRootExtId = "${DslContext.settingsRoot.id}" publisher = github { @@ -186,21 +194,17 @@ class TestBuild(val os: String, val arch: String, version: String, buildId: Abso } features { - enablePullRequests() + pullRequests { + vcsRootExtId = "${DslContext.settingsRoot.id}" + provider = github { + authType = token { + token = "credentialsJSON:5dc93081-e0b2-41e2-b8f0-dea3c96e6426" + } + filterAuthorRole = PullRequests.GitHubRoleFilter.EVERYBODY + } + } golang { testFormat = "json" } } }) - -fun enablePullRequests() { - pullRequests { - vcsRootExtId = "${DslContext.settingsRoot.id}" - provider = github { - authType = token { - token = "credentialsJSON:5dc93081-e0b2-41e2-b8f0-dea3c96e6426" - } - filterAuthorRole = PullRequests.GitHubRoleFilter.EVERYBODY - } - } -} \ No newline at end of file -- GitLab