tfsazure-devopsazure-pipelinestfsbuild

Is it possible to put delay between tasks or conditional loop


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?


Solution

  • 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.