tag:help.appveyor.com,2012-11-13:/discussions/questions/8741-more-info-on-after_deployAppVeyor: Discussion 2018-08-25T02:19:54Ztag:help.appveyor.com,2012-11-13:Comment/434376202017-09-13T21:10:24Z2017-09-13T21:10:24ZMore info on after_deploy<div><p>Hello,</p>
<p>Environment deployments are indeed async. Please check <a href="https://www.appveyor.com/docs/deployment/#overview">this part of documentation</a>. So in case of <strong>environment</strong> deployments <code>after_deploy</code> script runs after deployments <strong>started</strong>, but in case of <strong>inline</strong> deployments <code>after_deploy</code> script runs after deployments <strong>finished</strong>.</p>
<p>If you have some special reason to use <strong>environment</strong> deployments during the build (for example you need Agent deployment) can use our API to start deployment and check if deployments finished. Please look at <a href="https://gist.github.com/IlyaFinkelshteyn/d0e6f92a73824ecb1f7fd0a053bd1407">this sample</a>.</p>
<p>If this is not exactly your case, please describe your scenario more.</p>
<p>Ilya.</p></div>Ilya Finkelshteyn