【发布时间】:2017-07-25 18:32:18
【问题描述】:
我在 Team City 中使用 REST: https://confluence.jetbrains.com/display/TCD10/REST+API#RESTAPI-build_artifacts
下载工件。我需要为特定分支下载最新成功构建的工件。
目前这适用于名为(成功构建 TC)的特定分支:myBranch
http://tchost/httpAuth/app/rest/builds/buildType:MyBuildConfigId,branch:(myBranch)/artifacts/archived
但这对于名为(也有成功的 TC 构建)的特定分支失败:prefix/myBranch
http://tchost/httpAuth/app/rest/builds/buildType:MyBuildConfigId,branch:(prefix/myBranch)/artifacts/archived
我认为是因为后一种情况下的正斜杠“/”。但我需要能够创建带有正斜杠的分支。
如何在分支名称中创建带有“/”的有效 REST url?
【问题讨论】: