Skip to content
This repository was archived by the owner on Jun 12, 2026. It is now read-only.

Commit a04970b

Browse files
committed
ci: try fixing build trigger for tags
1 parent e6a54c7 commit a04970b

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.teamcity/settings.kts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import jetbrains.buildServer.configs.kotlin.BuildType
22
import jetbrains.buildServer.configs.kotlin.DslContext
33
import jetbrains.buildServer.configs.kotlin.ParameterDisplay
44
import jetbrains.buildServer.configs.kotlin.PublishMode
5+
import jetbrains.buildServer.configs.kotlin.VcsSettings
56
import jetbrains.buildServer.configs.kotlin.buildFeatures.CommitStatusPublisher
67
import jetbrains.buildServer.configs.kotlin.buildFeatures.commitStatusPublisher
78
import jetbrains.buildServer.configs.kotlin.buildFeatures.perfmon
@@ -47,6 +48,7 @@ abstract class Build(
4748
val publishPassword: String,
4849
val publishVersion: String,
4950
val trigger: VcsTrigger.() -> Unit,
51+
val vcsSettings: VcsSettings.() -> Unit,
5052
) : BuildType({
5153
name = buildTypeName
5254

@@ -56,19 +58,13 @@ abstract class Build(
5658

5759
triggers {
5860
vcs(trigger)
61+
vcsSettings()
5962
}
6063

6164
features {
6265
perfmon {
6366
}
6467

65-
pullRequests {
66-
provider = github {
67-
authType = vcsRoot()
68-
ignoreDrafts = true
69-
}
70-
}
71-
7268
commitStatusPublisher {
7369
publisher = github {
7470
githubUrl = "https://api.github.com"
@@ -115,7 +111,10 @@ object BuildSnapshot : Build(
115111
publishVersion = "0.2.0-SNAPSHOT", // TODO: Proper version resolution, maybe move to gradle and use git in build
116112
trigger = {
117113
branchFilter = "+:refs/heads/*"
118-
}
114+
},
115+
vcsSettings = {
116+
branchFilter = "+:refs/heads/*"
117+
},
119118
)
120119

121120
object BuildRelease : Build(
@@ -126,5 +125,8 @@ object BuildRelease : Build(
126125
publishVersion = "%build.vcs.number%",
127126
trigger = {
128127
branchFilter = "+:refs/tags/*"
129-
}
128+
},
129+
vcsSettings = {
130+
branchFilter = "+:refs/tags/*"
131+
},
130132
)

0 commit comments

Comments
 (0)