TeamCity Call Url Build Step

前端 未结 3 2155
青春惊慌失措
青春惊慌失措 2021-02-14 18:11

I am using TeamCity to build and deploy files onto a IIS website using Web Deploy 3.

I would like to add a step to call a url when done so that the custom cache can be r

3条回答
  •  没有蜡笔的小新
    2021-02-14 19:02

    A newer, cleaner, just-as-simple method would be also using Powershell:

    wget "http://yourwebapp.net"
    

    wget is an alias for Invoke-WebRequest, supporting more options like settings the request timeout.

    Full docs: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-6

    NB: On older environments you may want to set -UseBasicParsing to prevent parsing errors.

提交回复
热议问题