当 Jenkins 或 Hudson 说找不到要存档的文件时,我该如何排除故障?
在 Windows 上 Jenkins 1.418 作业(旧版本是 Hudson)的作业配置中,我在“存档工件”方面遇到问题。在标题为“要存档的文件”的框中,我有
foo/**/Release/Install/App.exe
它在配置时给我的错误是:
'foo//Release/Install/App.exe' does' t 匹配任何内容: 'foo' 存在,但不存在 'foo//Release/Install/App.exe'
现在,如果我是正确的,** 是按照 ant 的“搜索所有子目录”。奇怪的是,无论我输入什么,它都会告诉我顶级文件夹存在(foo),但它下面不存在其他文件夹。然而,当我使用 Windows 资源管理器进行导航时,我的所有文件夹都存在。
我该如何解决这个问题或修复它?
更新:我找到了一种排除故障的技术 - 使用 hudson/jenkins 中的工作区浏览功能来查找可见和不可见的内容。事实证明,某些目录的文件权限阻止它们在 jenkins/hudson 中可见。
In the job configuration for a Jenkins 1.418 job (older versions are Hudson) on Windows, I am having trouble with "Archive the artifacts". In the box titled "Files to archive" I have
foo/**/Release/Install/App.exe
The error it gives me at configuration time is:
'foo//Release/Install/App.exe' doesn't match anything: 'foo' exists but not 'foo//Release/Install/App.exe'
Now, if I'm correct, ** is "search all subdirectories" as per ant. What is odd, is that no matter what I enter it tells me the top level folder exists (foo), but no other folder exists underneath it. Yet when I use the windows explorer to navigate, all my folders exist.
How can I troubleshoot this or fix it?
Update: I figured out a technique to troubleshoot - use the workspace browse features in hudson/jenkins to find what is visible and what is not visible. Turns out some directories had file permissions that blocked them being visible inside jenkins/hudson.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将 Hudson 配置为运行批处理文件,但由于我使用的批处理文件中存在一些错误,我的文件夹引用失败。这不是 hudson 问题,而是批处理文件问题。我看到该错误并认为这是问题所在,因为它是报告的错误,但真正的问题是批处理文件中的静默失败。
I had hudson configured to run a batch file, and my folder references were failing because of some errors in the batch files I was using. This was not a hudson problem, but a batch file problem. I saw the error and thought it was the problem because it was a reported error, but the real problem was a silent failure in a batch file.