Skip to content

Commit e927eac

Browse files
author
Abduqodiri Qurbonzoda
committed
Check if build id ends with given id instead of equality check
1 parent dd47961 commit e927eac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.teamcity/utils.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ const val DEPLOY_PUBLISH_ID = "Deploy_Publish"
3939

4040
class KnownBuilds(private val project: Project) {
4141
private fun buildWithId(id: String): BuildType {
42-
val fullId = "RootProjectId_$id"
43-
return project.buildTypes.single { it.id.toString() == fullId }
42+
return project.buildTypes.single { it.id.toString().endsWith(id) }
4443
}
4544

4645
val buildVersion: BuildType get() = buildWithId(BUILD_CONFIGURE_VERSION_ID)

0 commit comments

Comments
 (0)