TeamCity的通话网址生成步骤 [英] TeamCity Call Url Build Step
问题描述
我使用的TeamCity使用Web部署3来构建和部署文件到一个IIS网站。
I am using TeamCity to build and deploy files onto a IIS website using Web Deploy 3.
我想补充的一个步骤完成后调用一个URL,以便在部署完成自定义缓存可以被刷新。
I would like to add a step to call a url when done so that the custom cache can be refreshed when the deployment is finished.
有没有一种方法,我可以添加一个构建步骤来调用一个url?
Is there a way I can add a build step to call a url?
感谢
推荐答案
我想解决这个使用命令行脚本,打网址,TeamCity的命令行选手之一。
I would solve this using a command line script that hits the url, and one of TeamCity's command line runners.
所以我假设你在Windows上的问题被标记asp.net。将这个获取-WebFile 脚本中的 Powershell的构建亚军。然后调用 GET-WebFilehttp://yourwebapp.net/
在底部。
The question is tagged asp.net so I assume you're on Windows. Put this Get-WebFile script in a Powershell Build Runner. Then call Get-WebFile "http://yourwebapp.net/"
at the bottom.
这篇关于TeamCity的通话网址生成步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!