Wildcards for custom artifacts

Adam Ralph's Avatar

Adam Ralph

31 Jan, 2014 07:48 PM

It would be good to be able to define paths to custom artifacts using wildcards, e.g. bin\*.nupkg

  1. Support Staff 1 Posted by Feodor Fitsner on 01 Feb, 2014 02:38 AM

    Feodor Fitsner's Avatar

    I've deployed update with wildcard support. This is how it works:

    To push a single file specify its full path (relative to repository root):

    somefile.ext or bin\debug\somefile.ext

    To push entire folder as a single zip archive (the name of zip will be the name of folder):

    somefolder or solution\project\bin

    Wildcards. To push all NuGet packages from specific folder:

    somefolder\*.nupkg

    To push NuGet packages from any bin folder (similar to NAnt or MSBuild wildcards):

    *\bin\*.nupkg

    Please let me know if you have any questions.

  2. 2 Posted by Adam Ralph on 01 Feb, 2014 09:49 AM

    Adam Ralph's Avatar

    Working as advertised, thank you!

    One small point. It seems to bork when forward slashes are used, e.g. bin/*.nupkg. It's probably better to allow either / or \.

  3. Support Staff 3 Posted by Feodor Fitsner on 01 Feb, 2014 10:22 PM

    Feodor Fitsner's Avatar

    Will add forward slash support, sure!

  4. 4 Posted by Alxandr on 22 May, 2014 11:10 PM

    Alxandr's Avatar

    Would it be possible to make * only mean the current directory? Normally, you have to do bin/**/*.nupkg to do all NuGet packages, however AppVeyor goes reccursive if I do bin/*.nupkg. This is a problem as my build-script generates double of all packages for some reason (can't change that part for now, maybe it'll get resolved later), so I get bin/Lib.nupkg and bin/Lib/Lib.nupkg.

  5. Support Staff 5 Posted by Feodor Fitsner on 22 May, 2014 11:32 PM

    Feodor Fitsner's Avatar

    Well, I don't think matching bin/Lib/Lib.nupkg with bin/*.nupkg pattern is a normal behavior. Looks like an issue to me. I'm going to make sure it matches bin/Lib.nupkg only.

  6. Support Staff 6 Posted by Feodor Fitsner on 23 May, 2014 06:15 AM

    Feodor Fitsner's Avatar

    The issue has been fixed and update deployed. Now bin/*.nupkg will matchbin/Lib.nupkg only, but not bin/Lib/Lib.nupkg. To match all *.nupkg recursively use bin/**/*.nupkg or **/*.nupkg (in all folders).

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