tag:help.appveyor.com,2012-11-13:/discussions/questions/237-how-do-i-stage-deploymentsAppVeyor: Discussion 2017-09-22T16:02:28Ztag:help.appveyor.com,2012-11-13:Comment/324280682014-04-06T03:34:19Z2014-04-06T03:34:19ZHow do I stage deployments?<div><p>Hi Ryan,</p>
<p>Yes, it's possible with AppVeyor and this is something we've
been evangelizing from early beginning - do not re-build app for
deploying to different environments. The results of your builds
should be artifacts which are Web Deploy packages (or zip archives)
if you are going to use Web Deploy. To create Web Deploy package
you can either enable "Package Web Applications for Web Deploy"
option on Build tab of project settings or use custom MSBuild
command to publish a package (<a href=
"http://www.appveyor.com/docs/deployment/web-deploy">http://www.appveyor.com/docs/deployment/web-deploy</a>).</p>
<p>Then you create a new "Environment" (<a href=
"https://ci.appveyor.com/environments">https://ci.appveyor.com/environments</a>)
of Web Deploy type, select project on Deployments tab and finally
select build to deploy artifact (Web Deploy package) from. You can
have as many Web Deploy environments as you need.</p>
<p>Right now there are webhooks on build completion only, but if
you are interested we can add webhooks for environments (deployment
targets) too. Theoretically, to run your tests against deployed app
you could use another AppVeyor project that you call using API.</p>
<p>Please let me know if you have any questions.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/324280682014-04-06T16:36:37Z2014-04-06T16:36:37ZHow do I stage deployments?<div><p>I completely missed the Deploy link on the Environments until
this message. Only displaying the link on hover is nice but hides
that immensely useful feature. Nevertheless, that was exactly what
i was looking for in terms of triggering manual deployments.</p>
<p>As to automating progression from one environment to the next,
I'm open to using separate projects. You mentioned triggering the
test through an API. Are you referring to manually triggering the
test through an API call, or were you meaning I could do this
through the use of Webhooks?</p>
<p>Thanks for your help!<br>
Ryan</p></div>ryantag:help.appveyor.com,2012-11-13:Comment/324280682014-04-06T17:00:55Z2014-04-06T17:00:55ZHow do I stage deployments?<div><p>I agree we should made Deploy button more noticeable.</p>
<p>Yep, I meant webhooks on deployment complete event + calling
AppVeyor API to start a new build. However, on the second thought I
don't think plain HTTP request webhook would work as you need some
service (externally available) in the middle that will accept
webhook request and then call API to start a new build. I think
some sort of "Start AppVeyor build" webhook could work here.</p>
<p>Next week I'm going to re-work build notifications mechanism to
support Slack, HipChat and others, so maybe then I can apply that
implementation to Environments as well.</p>
<p>Btw, another approach would be to do all the job in a single
build, i.e. build artifact, deploy to a selected environment, then
wait until deployed app becomes available and finally run BVTs.</p></div>Feodor Fitsner