如何配置 Hudson 归档空文件夹

发布于 2024-08-07 01:42:02 字数 539 浏览 3 评论 0原文

我有以下示例/测试配置,Hudson 创建了一个空文件夹目录。然后指示它归档该文件夹中的所有内容,但它不会匹配空文件夹并最终不归档任何内容。更烦人的是,Hudson 不会提醒您没有任何内容与搜索字符串“root**”匹配,但是当它构建时,它会说没有任何内容与搜索字符串匹配。

“替代文本”"
(来源:86th.org

我们需要 Hudson 来存档这些我们的安装程序的文件夹为空,因为它需要它们。我担心这可能无法实现,因为文本“要存档的文件”。

无论如何,我如何配置 Hudson 将空文件夹归档为工件。

I have the following sample / test configuration that has Hudson create a directory of empty folders. Its then instructed to archive everything within that folder, except it will not match empty folders and ends up archiving nothing. Whats more annoying is that Hudson does not alert you that nothing matches the search string "root**", but when it builds, it says nothing matches the search string.

alt text
(source: 86th.org)

We need Hudson to archive these empty folders for our installer since its expecting them. I fear this may not be possible because of the text "Files to archive".

At any rate, How can I configure Hudson to archive empty folders as an artifact.

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

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

发布评论

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

评论(3

錯遇了你 2024-08-14 01:42:02

您应该在构建脚本中创建所需的工件,然后让 hudson 归档该文件。因此,如果您想要包含空文件夹的 zip 文件,请在批处理文件或 ant 脚本中执行适当的 zip 命令。然后归档输出文件。

You should create the artifact that you want in your build scripts, and then have hudson archive that file. So if you want a zip file that contains empty folders, do the appripriate zip command in your batch file or ant script. Then archive the output file.

旧时浪漫 2024-08-14 01:42:02

查看 Hudson 源代码,似乎工件归档是意味着仅与文件匹配。

您可能需要提交功能请求向用户列表发送电子邮件,Hudson 团队非常擅长回复请求和/或在新版本中添加功能。

Looking at the Hudson source code, it seems as if artifact archiving is meant to only match against files.

You might want to file a feature request or send an email to the USERS list, the Hudson team is pretty good about replying to requests and/or adding features in new releases.

°如果伤别离去 2024-08-14 01:42:02

我看到三种方法:

  1. 让您的应用程序不期望文件夹,而是按需创建它们。

  2. 或让应用程序在启动时创建文件夹。

  3. 或者您可以仅在文件夹中添加虚拟文件:) 只是开箱即用。

I see three ways:

  1. have your application NOT expect the folders but create them on demand.

  2. or have the application create the folders at startup.

  3. or you could just add dummy files in the folders :) just thinking out of the box.

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