Jenkins在为源代码管理提供存储库URL时给出错误

时间:2017-07-18 14:22:32

标签: java git github jenkins

我在Jenkins中配置GitHub项目,同时输入源代码管理中触及的所有详细信息 - > Git - >存储库 - >提供存储库URL - https://github.com/xxx/gradle-java-sample-project.git

显示了此消息 -

无法连接到存储库:命令" git ls-remote -h https://github.com/xxx/gradle-java-sample-project.git HEAD"返回状态码1: 标准输出: stderr:xcrun:错误:无效的活动开发者路径(/ Library / Developer / CommandLineTools),缺少xcrun:/ Library / Developer / CommandLineTools / usr / bin / xcrun

我在configure System中检查过,安装了Git和GitHub插件。 不确定我错过了什么。

1 个答案:

答案 0 :(得分:1)

看起来您还没有安装命令行工具。在Mac上的终端中运行此代码。

xcode-select --install