简体   繁体   English

Hoptoad Java部署跟踪

[英]Hoptoad Java deployment tracking

I'm currently using Hoptoad to track exceptions in my Java application using Frog4J (http://freeasinbeard.org/post/1150100907/frog4j-simpler-integration-of-hoptoad-and-log4j). 我目前正在使用Hoptoad使用Frog4J来跟踪Java应用程序中的异常(http://freeasinbeard.org/post/1150100907/frog4j-simpler-integration-of-hoptoad-and-log4j)。

This is working really well for tracking the exceptions but I would really love to be able to track my deployments with Hoptoad as well (http://help.hoptoadapp.com/kb/api-2/deploy-tracking). 这对于跟踪异常确实非常有效,但是我也非常希望能够通过Hoptoad跟踪我的部署(http://help.hoptoadapp.com/kb/api-2/deploy-tracking)。

I know of no current way to tell Hoptoad when I'm deploying and so currently all of the errors need to be marked as resolved manually. 我目前尚无方法在部署时告诉Hoptoad,因此当前所有错误都需要标记为手动解决。 We currently have quite a backlog of fixed exceptions that we would really just like to mark as resolved at once and indeed mark them all as resolved every deployment. 当前,我们有大量的固定异常积压,我们真的想立即将其标记为已解决,并在每次部署时都将它们标记为已解决。

I know this is quite an easy step when using Ruby but I have been unable to find a way to do so with Java. 我知道使用Ruby时这是很容易的一步,但是我一直无法找到使用Java的方法。 Of course if you have any other suggestions of how to tell Hoptoad when I deploy using part of the API that would be equally as awesome as I could easily incorporate that into the deployment process. 当然,如果您还有其他建议,当我使用API​​的一部分进行部署时如何告诉Hoptoad,这与我可以轻松地将其合并到部署过程中一样出色。

Any help or ideas would be very much appreciated. 任何帮助或想法将不胜感激。

I have found a way to trigger this manually using curl. 我找到了一种使用curl手动触发此方法的方法。

For future reference the syntax is: 供以后参考,语法为:

curl --data "api_key=###&deploy[rails_env]=###&deploy[svn_revision]=###&deploy[scm_repository]=###&deploy[local_username]=###" http://hoptoadapp.com/deploys.txt

### will need to be replaced with your particulars. ###将需要替换为您的详细信息。

Thanks to the some hints found here: http://help.hoptoadapp.com/discussions/questions/391-documentation-for-deploy-tracking-api 感谢此处提供的一些提示: http : //help.hoptoadapp.com/discussions/questions/391-documentation-for-deploy-tracking-api

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

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