我正在 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:错误:无效的 Activity 开发人员路径(/Library/Developer/CommandLineTools),缺少 xcrun 位于:/Library/Developer/CommandLineTools/usr/bin/xcrun
我检查了配置系统,Git 和 GitHub 插件已安装。 不确定我错过了什么。
最佳答案
您似乎尚未安装命令行工具。在 Mac 上的终端中运行此代码。
xcode-select --install
关于java - Jenkins 在向源代码管理提供存储库 URL 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45169523/