如何手动将 Cruise Control 构建标记为失败?
我的配置使用 exec 命令并查找自定义“errorstr”属性。但现在我想查找多个字符串作为失败的标志,但 errrorstr 属性只支持单个字符串。所以我想事后自己验证日志。我已经尝试将“lastbuildsuccessful”属性更改为“false”并向“build”元素添加错误属性。但这似乎并不影响仪表板。
有谁知道如何解决这个问题?我还没有找到缓存或类似的东西。
My config uses the exec command and looks for a custom "errorstr" attribute. But now I want to look for multiple strings as sign for a failure, but the errrorstr attribute does only support a single string. So I thought about validating the logs myself afterwards. I already tried to change the "lastbuildsuccessful" property to "false" and to add an error-attribute to the "build" element. But that does not seem to affect the dashboard.
Does anyone have an idea how to solve this? I haven't found a cache or anything like that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
exec 命令非常基本,不支持您想要执行的操作。您可以编写一个包装器脚本来检查多个错误并从 exec 命令调用该脚本,也可以使用具有更好自定义选项的更复杂的构建器,例如 ant 构建器。
The exec command is quite basic and doesn't support what you want to do. You can either write a wrapper script that checks for multiple errors and call that from the exec command, or you could use a more complex builder with better customization options like an ant builder.