TeamCity Call Url Build Step
I would solve this using a command line script that hits the url, and one of TeamCity's command line runners.
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.
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.
NB: On older environments you may want to set -UseBasicParsing
to prevent parsing errors.