Renaming artifact

Daniel White's Avatar

Daniel White

31 May, 2017 06:36 PM

Is it possible to do one of these things:

  • Set the output file name for publish_wap_xcopy or publish_wap?
  • Rename the artifact?
  • Use the s3 deployment step to upload the artifact, but have a different file name?

Basically I want to deploy to S3 with a unique name (I'm using the build version + the commit hash) for EB.

Thanks.

  1. 1 Posted by Ilya Finkelshte... on 31 May, 2017 07:22 PM

    Ilya Finkelshteyn's Avatar

    Hi Daniel, we do not have the option to customize WAP artifact file name. Could you please try to publish artifact with custom script like this:

    environment:
      artifactName: $(APPVEYOR_BUILD_VERSION)-$(APPVEYOR_REPO_COMMIT).zip
    build_script:
    - msbuild "WebApplication3\WebApplication3.csproj" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /t:Package /p:PackageLocation=%APPVEYOR_BUILD_FOLDER%\%artifactName%
    - appveyor PushArtifact %artifactName% -Type WebDeployPackage -DeploymentName AppDeploymentName
    
    It is copy-paste from my experiment, so it works. Just replace project relative path. Deployment (not file) name is also customized here, not sure of you need it though.

    Ilya.

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