몇 가지 빌드가 있습니다. 각 빌드에는 두 개의 태그가 있습니다. 태그는 모듈 이름과 버전을 표시합니다. 따라서 one-module
및 1.2.3
또는 two-module
및 4.5.6
과 같은 태그가 있습니다.TeamCity REST API로 여러 태그를 지정하여 빌드를 얻는 방법은 무엇입니까?
나는이 작업을 수행 할 수 있습니다
/httpAuth/app/rest/builds/?locator=tags:one-module,branch:unspecified:any&fields=build(tags(tag))
내가이 얻을 것이다 :
{
"build": [
{
"tags": {
"tag": [
{
"name": "1.2.4"
},
{
"name": "one-module"
}
]
}
},
{
"tags": {
"tag": [
{
"name": "1.2.3"
},
{
"name": "one-module"
}
]
}
}
]
}
는 지금은 태그 one-module
및 1.2.4
으로 최신 빌드를 싶어. 내가 어떻게 할 수 있니?
/httpAuth/app/rest/builds/?locator=tags:one-module,1.2.4,branch:unspecified:any&fields=build(tags(tag))
을하지만이있어 :
Error has occurred during request processing (Bad Request).
Error: jetbrains.buildServer.server.rest.errors.LocatorProcessException: Bad locator syntax: Invalid dimension name :'1.2.4'. Should contain only alpha-numeric symbols or be known one. Details: locator: 'tags:one-module,1.2.4,branch:unspecified:any', at position 16
Invalid request. Check locator is specified correctly.
나는 인 TeamCity 버전 9.1.6이 있습니다. 인 TeamCity REST API BuildLocator documentation는 말한다 :
태그 : - ","(쉼표) - 빌드 태그로 구분 된 목록을, 그래서
(만 지정된 모든 반환 된 태그를 포함 를 구축) I 이처럼 2 개 이상의 태그로 빌드를 선택하십시오. 이 작동하지 않습니다?
내가 뭘 잘못하고 있니? 2 개 이상의 태그로 최신 빌드를 빌드하는 방법은 무엇입니까?