FTP Deploy - How to remove path element from artifact
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:
artifacts:
- path: Release\en-us\MyInstaller.msi
name: POSHInstaller
my deploy for FTP like this:
deploy:
- 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 ?
Thanks
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
1 Posted by Ilya Finkelshte... on 26 Apr, 2018 09:01 PM
Right, this can be confusing. You can do one if the following:
copy Release\en-us\MyInstaller.msi
as sayafter_build
script and then set- path: MyInstaller.msi
underartifacts
. Assuming you do not have already some anotherMyInstaller.msi
in the root of your repo clone.or
- path: Release\en-us
underartifacts
. Then addapplication: POSHInstaller
to FTP deployment setting. In this case AppVeyor will zipRelease\en-us
folder when creating an artifact and unzip it when deploying to FTP. AssumingRelease\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.Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:28 AM.