FTP Deploy - How to remove path element from artifact

jay.rosenthal's Avatar


26 Apr, 2018 07:28 PM

Hi All,
This feels like a pretty simple thing but after hours of trying and googling, I have to ask an expert.

I have an artifact defined like:

  - path: Release\en-us\MyInstaller.msi 
     name: POSHInstaller 

my deploy for FTP like this:

   - provider: FTP 
     protocol: ftp 
     host: ftp.myco.com 
     username:  user
     password:  pw
     artifact: POSHInstaller 
     folder: PowerShell

The artifact get copied to my FTP server at PowerShell\Release\en-us\MyInstaller.msi
I really want it at PowerShell\MyInstaller.msi

How (or can) I more explicitly define the target folder ? Or at least get the results I want ?


  1. 1 Posted by Ilya Finkelshte... on 26 Apr, 2018 09:01 PM

    Ilya Finkelshteyn's Avatar

    Right, this can be confusing. You can do one if the following:

    • Run copy Release\en-us\MyInstaller.msi as say after_build script and then set - path: MyInstaller.msi under artifacts. Assuming you do not have already some another MyInstaller.msi in the root of your repo clone.


    • Set - path: Release\en-us under artifacts. Then add application: POSHInstaller to FTP deployment setting. In this case AppVeyor will zip Release\en-us folder when creating an artifact and unzip it when deploying to FTP. Assuming Release\en-us does not have other files, which should not be deployed.

    Let us know if this helps. If both options are not good for you we can go for more creative solutions using 7z and pushing artifacts from scripts.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:28 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