我正在尝试使用Teamcity创建一个VCS。在REST文件之后,我将在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根目录设置密码。
发布于 2014-05-09 11:07:29
所以我在Jetbrains开发者社区上找到了答案。这是因为Teamcity出于安全考虑,SVN使用"secure:svn- password“,Perforce使用"secure:passwd”,而不是简单的密码。因此,我将XML更改为如下所示:
<property name="secure:svn-password" value="testpwd"/>https://stackoverflow.com/questions/23508329
复制相似问题