GOCD致命:含糊不清的争论' HEAD'

时间:2017-07-06 11:15:10

标签: git bash continuous-delivery go-cd

想知道是否有人可以帮助解决以下错误我正在尝试运行GOCD管道。

Go服务器安装在Mac mini上,我在Windows机器上运行Go Agent。

我安装了Source Tree和Git for Windows。使用Source Tree或Git Bash,我可以正常运行Git而不会出现任何问题。

然而,当Go Agent尝试运行管道时,我收到以下错误

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!

取消此作业,因为它没有生成超过20分钟的任何控制台输出

Git Bash目录有一个/ tmp文件夹,所以我不确定这是什么意思。

再次感谢任何帮助。

0 个答案:

没有答案