验证可交付成果的工具?

发布于 2024-09-30 17:53:38 字数 172 浏览 0 评论 0原文

我正在寻找一种工具,可以根据应包含的文件列表或清单来验证可交付成果(例如 .tgz、.war/.jar、.zip 文件)。检查可交付成果中应包含的每个文件(根据列表)。

这是持续交付周期中最后验证步骤的一部分。

OSS 解决方案将是理想的选择。还没有找到任何东西,但想在出发并写一份之前检查一下。

I'm looking for a tool that validates deliverable (such as a .tgz, .war/.jar, .zip file) against a list or inventory of files that it should contain. Something that checks for every file that should be in the deliverable (per the list).

This is part of a final validation step in a continuous delivery cycle.

An OSS solution would be ideal. Have not found anything, but want to check before setting off and writing one.

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

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

发布评论

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

评论(1

暖伴 2024-10-07 17:53:38

在 bash 中,您可以执行以下操作:

gzip -dc deliverable.tgz | tar --list > incoming.txt
diff incoming.txt expected.txt

您不必编写超过几行的 shell 脚本。

In bash you could do something like:

gzip -dc deliverable.tgz | tar --list > incoming.txt
diff incoming.txt expected.txt

You shouldn't have to write more than a couple lines of a shell script.

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