我在堆栈溢出上问了同样的问题,但我只得到了 5 次查看,我认为这是一个更好的论坛来解决这个问题。
我正在为托管在 github 上的私有仓库中的 C# 项目设置 CI。Git 安装在主 CentOS 机器上,MSBuild 安装在从属 Windows 上。
我已经在 github 上创建了帐户,并将其添加到我的私人仓库中。当我在 Jenkins 上设置源代码控制时,我输入了 URL(如https://github.com/.../repo.git)并使用新帐户输入凭据。
詹金斯报道:
Failed to connect to repository : Command "git config --local credential.helper store --file=/tmp/git2956041026506359040.credentials" returned status code 129:
stdout:
stderr: error: unknown option `local'
usage: git config [options]
Config file location
--global use global config file
--system use system config file
-f, --file <FILE> use given config file
Action
--get get value: name [value-regex]
--get-all get all …
Run Code Online (Sandbox Code Playgroud)