Is it possible to put delay between tasks or conditional loop

Gregory Suvalian picture Gregory Suvalian · Jul 26, 2017 · Viewed 12.6k times · Source

Is it possible to either loop or delay between running tasks in either build or release pipelines? I deploy containers as part of those pipelines and they take time to spin up and be available for webtests, so I can not run webtest immediately following Release task. What can be a solution to this requirements inside TFS or VSTS?

Answer

Daniel Mann picture Daniel Mann · Jul 26, 2017

Put an in-line PowerShell task in place that runs Start-Sleep -Seconds 10 or however long you want to wait.

Or better yet, write your own script that polls your containers for availability.