TeamCity - 您如何向客户提供有关部署到其计算机的反馈?
目前,当我们的软件已过时时,会进行以下调用以在 TeamCity 中对部署进行排队。
/httpAuth/action.html?add2Queue={0}&system.name=TargetMachine&system.value={1}
参数 0 是 buildTypeId,参数 1 是 targetMachine 的主机名。
我们正在尝试建立一种方法,向客户提供有关其在 TeamCity 中构建的状态的反馈。我们的想法是创建一个在客户端计算机上弹出的网站,以显示其在 TeamCity 中的部署状态,但无法找到任何快速方法来执行此操作。请记住,我们不希望客户端看到整个队列,而只能看到他们的构建。
我遇到的问题是,当使用上面的命令调用 TeamCity 时,据我所知,无法检索创建的 buildId。如果我能得到 buildId,那么剩下的事情就很简单了。
Currently when our software is out of date, the following call is made to queue a deploy in TeamCity.
/httpAuth/action.html?add2Queue={0}&system.name=TargetMachine&system.value={1}
Argument 0 being the buildTypeId and argument 1 being the hostname of the targetMachine.
We are trying to setup a way to give the client feedback on the status of their build in TeamCity. Our idea was to create a website that would popup on a clients computer to show the status of their deployment in TeamCity, but can't figure out any quick way of doing this. Keep in mind we dont want the client to see the whole queue, only their build.
The problem I am arising at is when calling TeamCity with the command above, there is no way that I know of to retrieve the created buildId. If I could get the buildId, then the rest should be pretty easy.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 TeamCity Windows 托盘通知程序 工具。您可以为不同的事件配置 notificationf,例如构建开始/完成/等。显然,如果是在客户端 PC 上安装此类工具的情况。
例如,如果构建崩溃,用户将看到这样的弹出窗口:
TeamCity 还允许配置电子邮件通知与特定构建或项目相关的广泛事件。
You can use TeamCity Windows Tray Notifier tool. You can configure notificationf for different events like build started/finished/etc. Obviously if this is a case installing such a tool on the client's PC.
For instance, an user would see such popup window in case of build crash:
Also TeamCity allows configure email notification on the broad set of events related to a particular build or project.