Using the AppVeyor deployment agent , how do I run a PS script once *all* my deployments have finished?

sebastian's Avatar


11 Jun, 2015 06:45 AM

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?

  1. Support Staff 1 Posted by Feodor Fitsner on 11 Jun, 2015 06:59 PM

    Feodor Fitsner's Avatar

    It's not there yet. There is an item for adding global "before" and "after" scripts: - you can vote there by leaving your comment.

  2. Support Staff 2 Posted by Feodor Fitsner on 11 Jun, 2015 07:00 PM

    Feodor Fitsner's Avatar

    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. 3 Posted by sebastian on 11 Jun, 2015 07:44 PM

    sebastian's Avatar

    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.

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.

Comments are currently closed for this discussion. You can start a new one.

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