当使用Hudson的Git插件时,我的作业总是在从我的在线git存储库中获取最新的源代码时失败(git://github.com/ithena/orm2dsl.git).
git插件首先git fetch成功执行.然后它尝试执行git checkout -f origin/,失败,如下所示.这是我的git存储库的问题还是没有意义的checkout命令?
Git命令没有在作业配置中设置的分支:
git checkout -f origin/
git checkout: updating paths is incompatible with switching branches/forcing
Did you intend to checkout 'origin/' which can not be resolved as commit?
Run Code Online (Sandbox Code Playgroud)
在作业配置中将分支设置为master的Git命令:
git checkout -f origin/master
git checkout: updating paths is incompatible with switching branches/forcing
Did you intend to checkout 'origin/master' which can not be resolved as commit?
Run Code Online (Sandbox Code Playgroud)
Hudson控制台输出:
started
Checkout
[workspace] $ git fetch
Checking out origin/
[workspace] $ git checkout …Run Code Online (Sandbox Code Playgroud) 我已经安装了msysgit,我试图在Hudson中使用它.每当我在交互式shell中运行命令时,无论是git-bash还是命令提示符,命令都是即时的.当我在Hudson中运行它们时,它们会滞后很长时间.
/bin/git help我刚刚调用它时运行花了63秒.我从来没有等到克隆开始输出(> 10分钟).
Hudson邮件列表已关闭,所以我想我会在这里尝试...