自定义互联网webhook以获取TFS构建事件 [英] Custom internet webhook to get TFS build events

查看:78
本文介绍了自定义互联网webhook以获取TFS构建事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,





目前我有一台使用Microsoft TFS构建定义的构建机器。我目前使用Slack服务挂钩在构建失败时通知我们的团队。我需要在外部机器上创建一个通用服务
钩子,以从同一个tfs构建接收构建事件。这台外部机器不在我们的网络上,所以它必须通过互联网接收钩子(就像Slack一样)。但与Slack不同,我需要在外部机器上执行一个脚本
而不是发布消息。我假设webhooks是要走的路,但我需要外部机器上的HTTP服务端点,我不知道如何设置。任何建议都表示赞赏,不确定我是否只是休息一下,或者其他服务
挂钩之一可能更好用于此目的。





Hello all,


Currently I have a build machine that uses Microsoft TFS build definitions. I currently use Slack service hook to notify our team when a build fails. I need to create a generic service hook on an external machine to receive build events from the same tfs build. This external machine is not on our network so it has to receive the hook via the internet (just like Slack does). But unlike Slack, I need to execute a script on the external machine instead of posting a message. I am assuming the webhooks is the way to go, But I would need an HTTP service endpoint on the external machine which I am not sure how to setup. Any advice appreciated, not sure if I'm just way off or if one of the other service hooks may be better for this purpose.



推荐答案

Hi athurm,

Hi athurm,

如何设置可从外部机器/互联网访问的网络问题与TFS无关,此处不支持此问题。
   

The issue of how to setup network that can be accessible from external machine/internet is not related to TFS and it is not supported here.   

关于在构建失败时发送请求,webhook是更好的方法。

Regarding send a request when build fails, the webhook is the better way.

问候

Starain


这篇关于自定义互联网webhook以获取TFS构建事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆