Batch Deployment Environment

James White's Avatar

James White

11 Jun, 2015 01:26 PM

I'm running into trouble using Web Deploy and an ASP.NET 5 project as they've changed the target folder structure and the default Web Deploy doesn't work properly (puts wwwroot & approot into wwwroot folder). As it's probably a bit of a hassle to allow too much customization of the Web Deploy provider, would it be possible to add a batch or script deployment environment. You could download/unzip artifacts to a temp folder and then let the user run msdeploy the way one can if they are on a build machine.

If not, adding a checkbox for these to the Web Deploy options might suffice:

    -enablelink:contentlibextension  
    -enableRule:AppOffline

Web Deploy 3.6 Release Notes

Thanks!

James

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

    Feodor Fitsner's Avatar

    Hi James,

    "Script" deployment provider could be implemented with an additional project. There could be a simple repo with just one PowerShell script downloading/unzipping and doing the deployment. Artifacts could be easily downloaded using PowerShell: http://www.appveyor.com/docs/api/samples/download-artifacts-ps I'm sure Web Deploy 3.6 can be downloaded and silently installed as well.

    I'm going to blog about this trick with "deployment projects" later this week.

    Anyway, we should base AppVeyor built-in Web Deploy provider on Web Deploy 3.6 with ASP.NET 5 support. I added a new issue: https://github.com/appveyor/ci/issues/292

  2. 2 Posted by James White on 11 Jun, 2015 07:19 PM

    James White's Avatar

    That makes sense, thanks!

  3. 3 Posted by jake on 13 Jun, 2016 11:39 AM

    jake's Avatar

    Hey Feodor,

    Would it be possible to create another deployment provider which is Trigger Build? That way we could set up a more explicit build chain invocation and we get the UI to select which build we want to deploy rather than just the latest.

    Cheers,
    Jake

  4. Support Staff 4 Posted by Feodor Fitsner on 13 Jun, 2016 06:05 PM

    Feodor Fitsner's Avatar

    Hi Jake,

    You can start another build from a build or you mean a new Environment type to start another build here: https://ci.appveyor.com/environments?

  5. 5 Posted by jake on 14 Jun, 2016 02:54 PM

    jake's Avatar

    I would like to go to deployments, click new deployments. And deploy to deployment build.

    I upload ruby gems, push to chocolatey, npm in a single OSS project, at the moment I have to do a rebuild. I have just figured how to work around this.

    I am deploying to github releases and uploading all my artifacts as a draft. I then have a second build which only builds tags. When I publish the github release it triggers my deploy build which downloads all my artifacts from my github release then does the deployment. It's a bit fiddly but it will work.

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:06 AM.

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