From 82c1501924dd0cb3d11ef5fbc2921498d48082a1 Mon Sep 17 00:00:00 2001 From: Brian Seeders Date: Wed, 20 Jan 2021 16:55:29 -0500 Subject: [PATCH] [CI] [TeamCity] Move PR commit status publishing gate to accommodate PR bot (#88911) --- .teamcity/src/builds/PullRequestCi.kt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.teamcity/src/builds/PullRequestCi.kt b/.teamcity/src/builds/PullRequestCi.kt index c38591fe850ac..997cf1771cc8d 100644 --- a/.teamcity/src/builds/PullRequestCi.kt +++ b/.teamcity/src/builds/PullRequestCi.kt @@ -63,13 +63,15 @@ object PullRequestCi : BuildType({ } features { - commitStatusPublisher { - enabled = isReportingEnabled() - vcsRootExtId = "${Kibana.id}" - publisher = github { - githubUrl = "https://api.github.com" - authType = personalToken { - token = "credentialsJSON:07d22002-12de-4627-91c3-672bdb23b55b" + if(isReportingEnabled()) { + commitStatusPublisher { + enabled = true + vcsRootExtId = "${Kibana.id}" + publisher = github { + githubUrl = "https://api.github.com" + authType = personalToken { + token = "credentialsJSON:07d22002-12de-4627-91c3-672bdb23b55b" + } } } }