Custom WAP artifact names
Hi!
Maybe I wasn't reading the right piece of the docs, but I couldn't find how one could customze the name of the WAP artifact file. It appears to default to ProjectName.zip, but I would like to change it to include $(APPVEYOR_BUILD_VERSION) to make organizing exising artifacts easier in an S3 bucket. Is there a possibility for such setting or some fiddling with "artifacts" section should help (I tried several options to no avail, WAP projects seem to ignore it)?
- Aristarkh
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
Support Staff 1 Posted by Feodor Fitsner on 20 Apr, 2015 05:40 PM
Hi Aristarkh,
Currently, there is no way to set file name for WAP Web Deploy package, but you can replace automatic packaging with your own command, kind of:
then push it to artifacts:
2 Posted by Aristarkh Zagor... on 20 Apr, 2015 07:46 PM
Thank you for the example, Feodor.
3 Posted by rgowda on 21 Jul, 2016 04:28 PM
I was able to address a similar requirement by adding a "On build finish script" within Project --> Settings --> General
The CMD script was:
aws configure set AWS_ACCESS_KEY_ID <your_access_key_id>
aws configure set AWS_SECRET_ACCESS_KEY <your_access_key>
aws configure set default.region us-west-1
aws s3 mv s3://YOUR_BUCKET/YOUR_FOLDER/proejctDeployFileName.zip s3://YOUR_BUCKET/YOUR_FOLDER/proejct.Build-%APPVEYOR_BUILD_NUMBER%.%APPVEYOR_REPO_BRANCH%.zip
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:07 AM.