nuget deploy - glob pattern

darrell.tunnell's Avatar

darrell.tunnell

26 Jul, 2017 04:39 PM

I am not quite understanding the syntax for the nugget deploy provider..

The entry in appveyor.yaml from the docs looks like this:

```
 artifact: /.*\.nupkg/
```

I am familiar with `glob` syntax - but I don't understand what syntax this is - does it have escaping in or something?
I'd like to deploy all nuget packages in any directory, that don't have the word "Test" in the file name - is that possible?

Thanks in advance

  1. 1 Posted by Ilya Finkelshte... on 26 Jul, 2017 07:41 PM

    Ilya Finkelshteyn's Avatar

    What you set inside the // is regular expression. AppVeyor will try to apply it to artifact deployment names and file names. For you something like this should work:

    /(?i)^((?!test).)*.nupkg$/
    
    Samples used from here and here.
  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:18 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

18 Jun, 2025 08:45 PM
18 Jun, 2025 04:23 PM
13 Jun, 2025 04:36 PM
13 Jun, 2025 04:27 PM
13 Jun, 2025 07:20 AM

 

10 Jun, 2025 01:56 AM
09 Jun, 2025 07:11 PM
04 Jun, 2025 04:08 PM
27 May, 2025 05:48 PM
27 May, 2025 06:37 AM
27 May, 2025 06:31 AM