【发布时间】:2014-06-23 20:54:46
【问题描述】:
我正在尝试使用 Teamcity REST API 创建 VCS 根。在REST Documentation 之后,我在XML 下面发布到http://TeamcityServer/httpAuth/app/rest/vcs-roots
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<vcs-root name="TestVCS" vcsName="svn" modificationCheckInterval="5" href="/httpAuth/app/rest/vcs-roots/id:TestVCS">
<project id="TestProject" name="<Root project>" href="/httpAuth/app/rest/projects/id:TestProject"/>
<properties>
<property name="externals-mode" value="externals-full"/>
<property name="labelingMessage" value="Labeled automatically by TeamCity"/>
<property name="labelingPatterns" value="trunk=>tags"/>
<property name="svn-config-directory" value="C:\Windows\system32\config\systemprofile\AppData\Roaming\Subversion"/>
<property name="svn-use-default-config-directory" value="true"/>
<property name="url" value="https://svn-uat.net/TestProject"/>
<property name="user" value="testuser"/>
<property name="password" value="testpwd"/>
<property name="working-copy-format" value="1.6"/>
</properties>
<vcsRootInstances href="/httpAuth/app/rest/vcs-root-instances?locator=vcsRoot:(id:TestVCS)"/>
</vcs-root>
这将创建 VCS 根目录,但密码属性保持为空。我尝试使用 http://TeamcityServer/httpAuth/app/rest/vcs-roots/VCSId/properties/password 显式设置密码,但即使这样似乎也没有为 VCS root 设置密码。
【问题讨论】:
标签: continuous-integration teamcity jetbrains-ide teamcity-8.0