0

嗨,我正在尝试在 Hudson 上使用 maven 发布插件。构建成功,然后,当 hudson 尝试发布项目时,它失败并出现以下错误。

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to commit files
Provider message:
The svn command failed.
Command output:
svn: Commit failed (details follow):
svn: CHECKOUT of '/svn/projects/!svn/ver/82706/some/path/buildconfig/configuration/pom.xml': authorization failed: Could not authenticate to server: rejected Basic challenge (http://xx.xxx.xx.xx)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 17 seconds
[INFO] Finished at: Thu Nov xx 12:25:31 CST xxxx
[INFO] Final Memory: 22M/88M
[INFO] ------------------------------------------------------------------------
channel stopped
Finished: FAILURE

我在这里缺少什么。我在stackoverflow上看过一些与此相关的文章。但是,它们与CHECKOUT无关。

我认为这是 SVN 的问题,因此,maven 无法继续。运行 hudson 的人可以在命令行上执行基本的 SVN 命令。

任何与此相关的帮助将不胜感激。

4

2 回答 2

1

The person running the hudson can do the basic SVN commands on the command line.

Does that also mean that the user Hudson is running as (most probably "hudson") can perform the svn commands? If not, you could check that by performing a sudo su hudson - and then trying the mvn release:prepare/perform commands.

于 2010-11-18T18:57:30.770 回答
0

这个问题是通过要求拥有 hudson 进程的人进行发布来解决的。那时它工作得很好。我们遇到的问题是 hudson 没有共享用户。安装它的人拥有它。

当我们移动到新的 hudson 盒子时,我们必须创建一个专门的 hudson 用户。

于 2010-11-18T22:10:21.400 回答