无法删除 Hudson 中的工作区

发布于 2024-10-10 00:09:33 字数 1139 浏览 0 评论 0 原文

我有一个从 cvs 导入到 Hudson 的项目。当我尝试清除包含一些带有非 ascii 符号或空格的文件的工作区时,我得到类似的信息:

java.io.IOException: Unable to delete <FILENAME>
    hudson.Util.deleteFile(Util.java:260)
    hudson.Util.deleteRecursive(Util.java:302)
    hudson.Util.deleteContentsRecursive(Util.java:221)
    hudson.Util.deleteRecursive(Util.java:301)
    hudson.Util.deleteContentsRecursive(Util.java:221)
    hudson.Util.deleteRecursive(Util.java:301)
    hudson.Util.deleteContentsRecursive(Util.java:221)
    hudson.Util.deleteRecursive(Util.java:301)
    hudson.Util.deleteContentsRecursive(Util.java:221)
    hudson.Util.deleteRecursive(Util.java:301)
    hudson.FilePath$9.invoke(FilePath.java:821)
    hudson.FilePath$9.invoke(FilePath.java:819)
    hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899)
    hudson.remoting.UserRequest.perform(UserRequest.java:114)
    hudson.remoting.UserRequest.perform(UserRequest.java:48)
    hudson.remoting.Request$2.run(Request.java:270)
    ...

有没有解决方案?或者至少有办法在从 cvs 存储库导入期间忽略某些文件/文件夹吗?

我使用哈德森版本。 1.392 在装有 Debian Linux 的服务器上。在我的本地电脑上安装 Windows XP 的同一台 Hudson 上,没有出现此问题。

I have a project imported from cvs to Hudson. When I try to wipe out workspace containing some files with non-ascii symbols or whitespaces I get something like that:

java.io.IOException: Unable to delete <FILENAME>
    hudson.Util.deleteFile(Util.java:260)
    hudson.Util.deleteRecursive(Util.java:302)
    hudson.Util.deleteContentsRecursive(Util.java:221)
    hudson.Util.deleteRecursive(Util.java:301)
    hudson.Util.deleteContentsRecursive(Util.java:221)
    hudson.Util.deleteRecursive(Util.java:301)
    hudson.Util.deleteContentsRecursive(Util.java:221)
    hudson.Util.deleteRecursive(Util.java:301)
    hudson.Util.deleteContentsRecursive(Util.java:221)
    hudson.Util.deleteRecursive(Util.java:301)
    hudson.FilePath$9.invoke(FilePath.java:821)
    hudson.FilePath$9.invoke(FilePath.java:819)
    hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899)
    hudson.remoting.UserRequest.perform(UserRequest.java:114)
    hudson.remoting.UserRequest.perform(UserRequest.java:48)
    hudson.remoting.Request$2.run(Request.java:270)
    ...

Is there any solution for that? Or at least is there a way to ignore some files/folders during the import from cvs repository?

I use Hudson ver. 1.392 on a server with Debian Linux. On the same Hudson on my local pc with Windows XP this problem didn't occur.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

╰◇生如夏花灿烂 2024-10-17 00:09:33

您是否按照 URIEncoding="UTF-8" rel="nofollow">这里

我还遇到了这个 Hudson JIRA:

HUDSON-3030: Hudson 无法删除包含外来字符的文件文件名

这个 Jira 听起来像是您遇到的问题,但它已被关闭,因为它与 hudson 无关。

Have you set URIEncoding="UTF-8" in your tomcat connector as described here?

I also came across this Hudson JIRA:

HUDSON-3030: Hudson fails to delete files with foreign characters in the file name

This Jira sounds like the problem you are having, but it has been closed because it was not related to hudson.

花桑 2024-10-17 00:09:33

Eclipse bug 36322 中讨论了同样的问题,与过时的锁定文件相关来自 NFS。

一种建议的解决方法是向构建作业的 shell 部分添加清理命令,例如 find /path/to/hudson/jobs/ -name ".nfs*" -exec rm {} \;

The same problem is discussed in Eclipse bug 36322, related to stale lock files from NFS.

One suggested workaround is to add a cleanup command to the shell section of the build job, something like find /path/to/hudson/jobs/<jobname> -name ".nfs*" -exec rm {} \;.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文