TeamCity 中编译失败结果错误
我已将外部应用程序添加到 MSBuild 项目的构建过程中(通过 Exec 任务),它使 TeamCity 认为编译失败,因为它在行开头打印“Error ...”。然而,这不是一个错误,即使它实际上是一个错误,Exec 任务也会被设置为忽略命令的退出代码,这是外部应用程序用来通知错误的代码。
我能做些什么?前几天我向官方询问过,目前还没有得到任何答复。
I've added an external application to the building process of a MSBuild project (through an Exec task), and it is making TeamCity believe the compilation failed because it prints "Error ..." at the start of a line. However, it is not an error, and even if it actually would be one, the Exec task is set to ignore the exit code of the command, which is what the external app uses to notify of errors.
What can I do? I asked on the official some days ago, but haven't got any reply so far.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以创建自己的应用程序来隐藏输出。然后读取退出代码并根据情况进行失败或继续。
You could create your own application to hide the output. Then read the exit code and fail or continue depending on how it went.