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