Environment deployment order?

sebastian's Avatar


25 Jun, 2015 08:05 PM

I've got an Environment set up to take several artifacts and deploy them using various providers... DB, website, services etc. I'm finding that the AppVeyor deployment agent isn't respecting the order that the provider settings are entered in. E.g. The first artifact listed in my provider settings is an SSDT database deployment, but it is executed last.

Is there a way to enforce this order?

  1. Support Staff 1 Posted by Feodor Fitsner on 25 Jun, 2015 10:39 PM

    Feodor Fitsner's Avatar

    I see. Actually, the order is based on artifacts collection. It goes through artifacts, takes their "deployment name" and then look for settings using deployment name as a prefix.

    I'm going to add a new issue to support that scenario.

  2. 2 Posted by sebastian on 26 Jun, 2015 05:59 AM

    sebastian's Avatar

    As a workaround, I tried prefixing the artifact name with '1.' but this didn't help. Looks like it's going off the artifact's file name.

    Another option could be to set up a separate Environment for the DB, and attempt to deploy it separately before the others, but this is quite ugly. And since it's an async deployment I'm not sure it would work as I expect.

    Is there any chance you are able to hotifx this for us?

  3. Support Staff 3 Posted by Feodor Fitsner on 26 Jun, 2015 06:03 AM

    Feodor Fitsner's Avatar

    Yes, I'll try to provide you some solution tomorrow.

  4. 4 Posted by sebastian on 26 Jun, 2015 06:10 AM

    sebastian's Avatar

    Thanks Feodor!

  5. Support Staff 5 Posted by Feodor Fitsner on 27 Jun, 2015 12:58 AM

    Feodor Fitsner's Avatar

    Here you are: http://www.appveyor.com/downloads/3.0.6/AppveyorDeploymentAgent.msi

    I did a better solution rather than relying on settings order. Every app can have deploy_order setting which is a number. Artifacts are being sorted in ascending order and deploy_order is 0 if not specified. For example:

    artifact1.deploy_website: true
    artifact1.site_name: MySite
    artifact1.deploy_order: 1
    artifact2.deploy_database: true
    artifact2.deploy_order: 2

    Let me know how that worked and I'll make this release public.

  6. 6 Posted by sebastian on 29 Jun, 2015 08:43 AM

    sebastian's Avatar

    Heya Feodor!

    Looks to be working a treat, thanks very much for the fast turnaround!

  7. Support Staff 7 Posted by Feodor Fitsner on 30 Jun, 2015 02:48 AM

    Feodor Fitsner's Avatar

    Great, will make it public tomorrow.

  8. sebastian closed this discussion on 25 Jul, 2015 08:52 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