简体   繁体   English

通过ant目标查找构建失败原因

[英]Finding Build failure cause via ant target

Hello I am very new to programming and ant, but wanted to learn and need some help from available Gurus. 您好,我是编程和蚂蚁的新手,但想学习并需要可用的Gurus的帮助。

At the moment we have build system and it builds on every code check-in, but many times there are build failures. 目前,我们已经建立了构建系统,并且该构建基于每次代码签入,但是很多时候都存在构建失败。

I wanted to know if there is any way to create ant target by which it can send out email notification to the person who broke the build with the error? 我想知道是否有任何方法可以创建ant目标,从而通过它可以向由于错误导致构建失败的人发送电子邮件通知?

Thank you for your help in advance. 提前谢谢你的帮助。

At the moment we have build system and it builds on every code check-in 目前,我们已经建立了系统,并且该系统基于每个代码签入

What system is this? 这是什么系统?

Normally, this functionality would be found in your continuous integration system, something like Jenkins , Bamboo , Team City , or Travis 通常,可以在您的持续集成系统中找到此功能,例如JenkinsBambooTeam CityTravis。

For sending mail use ant mail logger . 要发送邮件,请使用ant mail logger
To work out who broke the build depends upon your version control system => cvs, svn, git .. etc. 找出谁破坏了构建,取决于您的版本控制系统=> cvs,svn,git等。
Each of that tools provides it's specific ways to detect the person that did the checkin, commit, push .. 每个工具都提供了特定的方法来检测执行签入,提交和推送的人员。
IMO it's better to send the mail to a list of recipients that are responsible for the application than to one person only - which may be out of office .. etc. IMO最好将邮件发送给负责该应用程序的收件人列表,而不是仅发送给一个人-可能不在办公室等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM