tag:help.appveyor.com,2012-11-13:/discussions/questions/1263-environment-deployments-notificationsAppVeyor: Discussion 2018-08-25T02:17:05Ztag:help.appveyor.com,2012-11-13:Comment/367905192015-05-09T09:51:31Z2015-05-09T09:51:31ZEnvironment deployments notifications<div><p>Hello,</p>
<p>is there a way to get notified of a successful or failed
environment deployment?</p>
<p>Some background:<br>
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?</p>
<p>Thanks!<br>
Ondrej.</p></div>Ondrej Pialektag:help.appveyor.com,2012-11-13:Comment/367905192015-05-11T02:06:28Z2015-05-11T02:06:28ZEnvironment deployments notifications<div><p>There are not there yet, but we have an <a href="https://github.com/appveyor/ci/issues/14">item for that</a> with
high priority. Will implement it in the coming weeks.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/367905192017-05-10T21:42:08Z2017-05-10T21:42:11ZEnvironment deployments notifications<div><p>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 (<a href="https://www.appveyor.com/docs/notifications/#webhook-payload-default">https://www.appveyor.com/docs/notifications/#webhook-payload-default</a>), but I can't find similar information for the environment deployments.</p></div>dbadertag:help.appveyor.com,2012-11-13:Comment/367905192017-05-10T21:50:59Z2017-05-10T21:50:59ZEnvironment deployments notifications<div><p>Build notification webhook data you mentioned is subset of it. It also contains some data related to specific environment deployment. We recently filed <a href="https://github.com/appveyor/ci/issues/1531">https://github.com/appveyor/ci/issues/1531</a> to document it.</p>
<p>For now you can create request bin at <a href="http://requestb.in">http://requestb.in</a> and use it for experiment and see that content.</p>
<p>Also note that it can be custom: <a href="https://www.appveyor.com/docs/notifications/#webhook-payload-custom">https://www.appveyor.com/docs/notifications/#webhook-payload-custom</a>. If you decide to customize, please note that for Environment deployment notification you have to prefix variables with ‘build.’, like ‘build.commitAuthor’.</p>
<p>Ilya.</p></div>Ilya Finkelshteyn