Custom WAP artifact names

Aristarkh Zagorodnikov's Avatar

Aristarkh Zagorodnikov

20 Apr, 2015 03:45 PM

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

  1. Support Staff 1 Posted by Feodor Fitsner on 20 Apr, 2015 05:40 PM

    Feodor Fitsner's Avatar

    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:

    msbuild YourWapProjectName.csproj /T:Package /P:PackageLocation="%appveyor_build_folder%\MyAppPackage-%appveyor_build_version%.zip"
    

    then push it to artifacts:

    appveyor PushArtifact %appveyor_build_folder%\MyAppPackage-%appveyor_build_version%.zip -Type WebDeployPackage
    
  2. 2 Posted by Aristarkh Zagor... on 20 Apr, 2015 07:46 PM

    Aristarkh Zagorodnikov's Avatar

    Thank you for the example, Feodor.

  3. 3 Posted by rgowda on 21 Jul, 2016 04:28 PM

    rgowda's Avatar

    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

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

Recent Discussions

17 Jul, 2019 12:16 AM
17 Jul, 2019 12:15 AM
16 Jul, 2019 10:50 PM
16 Jul, 2019 07:47 PM
16 Jul, 2019 06:34 PM

 

16 Jul, 2019 05:17 PM
16 Jul, 2019 10:17 AM
16 Jul, 2019 07:46 AM
15 Jul, 2019 06:33 PM
15 Jul, 2019 06:09 PM
15 Jul, 2019 05:53 PM