想知道是否有人可以帮助解决以下错误,我正在尝试运行 GOCD 管道。
Go 服务器安装在 Mac mini 上,我有一个在 Windows 机器上运行的 Go 代理。
我安装了适用于 Windows 的 Source Tree 和 Git。使用 Source Tree 或 Git Bash,我可以正常操作 Git,没有任何问题。
然而,当 Go 代理尝试运行管道时,我收到以下错误
11:58:46.723 [go] Job Started: 2017-07-06 11:58:46 BST
11:58:46.723 [go] Start to prepare TestPipeline/10/build/7/build on WinBuildMachine [C:\Program Files (x86)\Go Agent]
11:58:46.754 [go] Start to update materials.
11:58:46.754 [go] Start updating files at revision XXXXXX from https://github.com/X/X.git
11:58:46.785 Error performing command: --- Command ---
git rev-parse --abbrev-ref HEAD
--- Environment ---
{}
--- INPUT ----
--OUTPUT ---
HEAD
--- ERROR ---
STDERR: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
STDERR: Use '--' to separate paths from revisions, like this:
STDERR: 'git <command> [<revision>...] -- [<file>...]'
---
11:58:46.832 [go] Job completed TestPipeline/10/build/7/build on WinBuildMachine [C:\Program Files (x86)\Go Agent]
我缺乏想法,所以任何帮助将不胜感激。
进度更新
我已经为 Go Agents 沙箱设置了完全控制权限,但没有收到以下错误
12:47:49.339 [go] Job Started: 2017-07-06 12:47:49 BST
12:47:49.339 [go] Start to prepare TestPipeline/10/build/9/build on WinBuildMachine [C:\Program Files (x86)\Go Agent]
12:47:49.355 [go] Start to update materials.
12:47:49.355 [go] Start updating files at revision XXXXX from https://github.com/XXXXX/XXXXX.git
12:47:49.402 [GIT] Fetching changes
12:47:49.996 STDERR: bash.exe: warning: could not find /tmp, please create!
Go 取消了这项工作,因为它超过 20 分钟没有生成任何控制台输出
Git Bash 目录有一个 /tmp 文件夹,所以我也不确定这指的是什么。
再次感谢任何帮助。