From 472a3a4f3ea38638d8f3605d42fc9d0bd6a326c9 Mon Sep 17 00:00:00 2001 From: Andrei Kokorev Date: Fri, 29 Nov 2024 13:30:25 +0100 Subject: [PATCH] Use 'tag' build locator instead of deprecated 'tags' (#129) * Use 'tag' build locator instead of deprecated 'tags' --- CHANGELOG.md | 3 +++ .../org/jetbrains/teamcity/rest/coroutines/implementation.kt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19a4ad3..d8da908 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to teamcity-rest-client library will be documented in this file. +## [3.0.1] +Stop using deprecated `tags` dimension to filter builds, use `tag` instead. + ## [3.0.0] - 2024-10-24 - Upgrade slf4j api, that is the reason for major version change: diff --git a/teamcity-rest-client-impl/src/main/kotlin/org/jetbrains/teamcity/rest/coroutines/implementation.kt b/teamcity-rest-client-impl/src/main/kotlin/org/jetbrains/teamcity/rest/coroutines/implementation.kt index aed7f1a..e5a03e9 100644 --- a/teamcity-rest-client-impl/src/main/kotlin/org/jetbrains/teamcity/rest/coroutines/implementation.kt +++ b/teamcity-rest-client-impl/src/main/kotlin/org/jetbrains/teamcity/rest/coroutines/implementation.kt @@ -542,7 +542,7 @@ private class BuildLocatorImpl(private val instance: TeamCityCoroutinesInstanceI status?.name?.let { "status:$it" }, agentName?.let { "agentName:$it" }, if (tags.isNotEmpty()) - tags.joinToString(",", prefix = "tags:(", postfix = ")") + tags.joinToString("),tag:(", prefix = "tag:(", postfix = ")") else null, if (pinnedOnly) "pinned:true" else null, count?.let { "count:$it" },