Environment deployments notifications

Ondrej Pialek's Avatar

Ondrej Pialek

09 May, 2015 09:51 AM


is there a way to get notified of a successful or failed environment deployment?

Some background:
We used to use inline deployments and if there was an issue with the deployment, such as a wrong password for WebDeploy, the build would fail and we would get notified. We moved to the async environment deployments in order to use different environment vars for our deployments but since these are async the build succeeds even if there is a problem with the subsequent deployment. This is of course fine but AppVeyor should provide some feedback if the asynchronous deployment fails. Email would be fine, or some form of a web hook (post to Slack is what we are after) would be ideal. Is there anything we missed?


  1. Support Staff 1 Posted by Feodor Fitsner on 11 May, 2015 02:06 AM

    Feodor Fitsner's Avatar

    There are not there yet, but we have an item for that with high priority. Will implement it in the coming weeks.

  2. 2 Posted by dbader on 10 May, 2017 09:42 PM

    dbader's Avatar

    What JSON data is sent to the webhook URL for Environment Deployment Notifications? I'm trying to find out what key values are available to use in the message template? The documentation for build notifications seems to be pretty thorough (https://www.appveyor.com/docs/notifications/#webhook-payload-default), but I can't find similar information for the environment deployments.

  3. Support Staff 3 Posted by Ilya Finkelshte... on 10 May, 2017 09:50 PM

    Ilya Finkelshteyn's Avatar

    Build notification webhook data you mentioned is subset of it. It also contains some data related to specific environment deployment. We recently filed https://github.com/appveyor/ci/issues/1531 to document it.

    For now you can create request bin at http://requestb.in and use it for experiment and see that content.

    Also note that it can be custom: https://www.appveyor.com/docs/notifications/#webhook-payload-custom. If you decide to customize, please note that for Environment deployment notification you have to prefix variables with ‘build.’, like ‘build.commitAuthor’.


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