Best way to wait for a deployment to finish

I’ve setup TeamCity (7.0) to deploy a particular version using octo.exe just before it runs the UI tests. Unfortunately the deploy step only queues a deploy, which means the UI tests run before the website is deployed. What is the best way to wait for a deployment to finish?

Hi Robert,

Pawel had a similar problem:

I’m going to try and merge his changes tonight.

Paul