More info on after_deploy

davidames76's Avatar


13 Sep, 2017 08:32 PM

Hi there,

I'm after some more info on after_deploy please as I'm trying to troubleshoot some randomly failing smoke tests.

1. If we have more than 1 deployment, does it run once for each deployment, or does it run after all deployments have finished?
2. Is it guaranteed to execute after the Environment deployment has completed, or is the Environment deploy async?


  1. Support Staff 1 Posted by Ilya Finkelshte... on 13 Sep, 2017 09:10 PM

    Ilya Finkelshteyn's Avatar


    Environment deployments are indeed async. Please check this part of documentation. So in case of environment deployments after_deploy script runs after deployments started, but in case of inline deployments after_deploy script runs after deployments finished.

    If you have some special reason to use environment 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 this sample.

    If this is not exactly your case, please describe your scenario more.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac