Hudson 或任何插件是否有办法从最后 X 次成功构建中归档工件?
我看到选项要么仅存档所有构建的工件,要么仅存档上次成功构建的工件。有没有什么方法或插件可以归档最近 10 个成功构建的工件?
谢谢
i see options to either only archive artifacts from all builds, or only the artifacts from the last successful build. is there any way or with a plugin to say archive the artifacts from the last 10 successful builds?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
构建完成后,工件将被存档。所以我不知道你想如何“从所有版本存档”?
不过,当您处于作业配置中时,请转到“放弃旧版本”(位于页面开头的某个位置)并单击“高级”按钮。在那里,您可以选择配置要保留构建工件的时间,而无需删除运行本身。如果您追求构建数量,则最后 x 构建的工件将被存档。如果最近十次构建失败。你有点问题。
另一种选择是转到“存档工件”的“高级”部分,然后选中“放弃除最后一个成功/稳定的工件以外的所有工件以节省磁盘空间”。
The artifacts are archived when the build is done. So I don't know how you want to "archive from all builds"?
Nevertheless, when you are in your job configuration, go to "Discard Old Builds" (somewhere at the beginning of the page) and click Advanced button. There you will have the option to configure how long you want to keep your build artifacts, without deleting the run itself. If you go for number of builds, the last x builds will have their artifacts archived. If the last ten builds failed. You kind of have a problem.
Another option would be to go to the Advanced section of "Archive the artifacts" and check "Discard all but the last successful/stable artifact to save disk space".
实际上,为了保留给定数量的工件,您必须选择“放弃旧构建”(在配置页面的最开始)并输入要存档的构建工件的数量。您还可以考虑保留天数。
您可以手动或通过带有自动“发布”或“升级”构建的插件来设置永久保留构建。
我同意这很令人困惑。
Actually to keep a given number of artifacts you must select "Discard old builds" (at the very beginning of the configuration page) and input the number of build artifacts to archives. You can also consider the number of days to keep.
You can set a build be kept forever, either manually or by plugin with an automated 'release' or 'promoted' build.
I agree this is confusing.