Can I strip the leading subfolders off an archive path when it's published?

trejkaz's Avatar


15 May, 2018 05:05 AM

(Originally a side-question from here)

A build I've gotten working recently publishes an artifact from a directory further into the project, like this:

  - path: lib_vrinputemulator\%CONFIGURATION%\
    name: LibVRInputEmulator

This results in awkward archive URLs, but it also means that if the directory ever got renamed or relocated, other builds relying on this path would then fail.

Is there a way to strip off the "lib_vrinputemulator\Release\" for the actual published result?

  1. Support Staff 1 Posted by Ilya Finkelshte... on 16 May, 2018 04:29 AM

    Ilya Finkelshteyn's Avatar

    You can copy to the build folder (APPVEYOR_BUILD_FOLDER environment variable) as part of build_scriptor after_build script and the set - path: in artifacts settings.

  2. 2 Posted by trejkaz on 16 May, 2018 04:31 AM

    trejkaz's Avatar

    I figured that was the case too, but it does mean copying extra files.

    At the moment I'm dodging it by changing the path the zip is created in to put it directly in the root, but it still seems like a build should be able to put its artifact anywhere it wants, and then it should be possible to pick them up from anywhere with any path.

  3. 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