Deploy via scipt

todd's Avatar


12 Dec, 2014 08:02 PM

I have a scripted deployment (deploys a couple Azure websites, runs database migrations, moves a few misc files around). It'd be great to run it from the Deployments tab, but when I create a new Environment, I don't see a deployment provider that simply runs a script. There's plenty of hooks for custom scripts in the build process but surprisingly none in the deploy process. Am I missing it?


  1. Support Staff 1 Posted by Feodor Fitsner on 12 Dec, 2014 10:07 PM

    Feodor Fitsner's Avatar

    Hi Todd,

    That's right there is no "Script" environment because "environment" deployments run on AppVeyor service and there is no reliable way to securely isolate tenants.

    However, to implement such scenario I'd recommend setting up another project just for deployment. You can have another repo for this project with just deployment script. It's pretty easy to download artifacts in that script:

    Let me know if you have any questions.

  2. 2 Posted by todd on 12 Dec, 2014 10:34 PM

    todd's Avatar

    Thanks, that makes sense. I see that I can script a deployment to happen automatically after the build (such as to staging) in the project settings. Do I have access to the artifacts locally at that point or would I need to download them in that scenario as well?

  3. Support Staff 3 Posted by Feodor Fitsner on 12 Dec, 2014 10:42 PM

    Feodor Fitsner's Avatar

    Sure, on "Deploy" stage you can access the list of uploaded artifacts (their local paths and temp download URLs) in PowerShell from $artifacts hash table.

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:50 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