Cruise Control.NET:如何设置git仓库任务的用户名和密码?

时间:2013-03-04 01:04:19

标签: git passwords cruisecontrol.net username

我在构建服务器上运行CCNet服务来构建基于Git存储库的解决方案。 Git存储库受密码保护。有没有办法为源控制任务设置用户名和密码?

<sourcecontrol type="git">
</sourcecontrol>

1 个答案:

答案 0 :(得分:4)

方法1

如果您不关心安全性,请在URL字符串中嵌入密码

http://user:password@abcdef.com/abc/def.git

方法2

使用git凭证助手存储用户名和密码(更安全)

msysgit 1.8.1或更高版本:设置config以启用内置git-credential-wincred     [凭据]         helper = wincred

或为较旧的msysgit安装git-credential-winstore

相关问题