Using the AppVeyor deployment agent , how do I run a PS script once *all* my deployments have finished?
I've noted using the 'Enter-OncePerDeployment' trick to be able to run something once before my deployments take place, but how do I run something once they've all completed? For example, I want to remove app_offline.htm files from web apps and start services at the end, in a single batch, rather than individually at the end of each deployment.
Also, are there any recommendations for dealing with 'failed' deployments and how to roll back to their previous state?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by Feodor Fitsner on 11 Jun, 2015 06:59 PM
It's not there yet. There is an item for adding global "before" and "after" scripts: https://github.com/appveyor/ci/issues/44 - you can vote there by leaving your comment.
Support Staff 2 Posted by Feodor Fitsner on 11 Jun, 2015 07:00 PM
Regarding failed deployments - could you please elaborate what you mean there? Like Web Deploy sync errors?
In most cases you can just re-deploy previous build.
3 Posted by sebastian on 11 Jun, 2015 07:44 PM
Thanks, have left a comment!
With the rollbacks, I was more wondering if there was any AppVeyor standard practice for them, but a simple re-deploy of the last version makes sense... it seems to be standard practice for the build server to do 'nothing' in case of an error and let the devs take care of it, in case other immediate action makes it worse.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.