Skip to content

Commit 602511a

Browse files
committed
ci: fix branch specifiers
1 parent 965f929 commit 602511a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.teamcity/builds/Build.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class Build(
126126
}
127127

128128
bts.buildTypes().forEach {
129-
it.thisVcs(if (forPullRequests) "refs/pull/*" else DEFAULT_BRANCH)
129+
it.thisVcs(if (forPullRequests) "pull/*" else DEFAULT_BRANCH)
130130

131131
it.features {
132132
loginToECR()

.teamcity/builds/Common.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ fun BuildType.thisVcs(forBranch: String) = vcs {
165165
branchSpec =
166166
"""
167167
-:*
168-
+:$forBranch
168+
+:$forBranch
169169
"""
170170
.trimIndent()
171171

.teamcity/settings.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ project {
6363
vcs {
6464
this.branchFilter =
6565
"""
66-
+:refs/heads/$DEFAULT_BRANCH
66+
+:$DEFAULT_BRANCH
67+
+:pull/*
6768
"""
6869
.trimIndent()
6970
}

0 commit comments

Comments
 (0)