Artifact Dependency Rules - how to exclude top level file using wildcard symbol
How do I specify artifact dependency in this scenario
I have build step that produces structure as follows
/anyfolder
/my.library.nupkg
And I want to include anyfolder (can have any name) and all of it's contents but not the top level *.nupkg files
As per the docs https://confluence.jetbrains.com/display/TCD10/Artifact+Dependencies I tried this
**/*.*=>texts-:/*.nupkg
and this
**/*.*=>texts-:*.nupkg
But it doesn't seem to work most likely because of this note
For each artifact the most specific rule (the one with the longest prefix before the first wildcard symbol) is applied
So how do I exclude top level file using wild card?
Please sign in to leave a comment.
Hi, and sorry for the delay. I have been trying to replicate this issue, but have been unable to so far. Setting those artifact rules in a build that creates 3 files, some nested, and a nupkg file in the root, posts all the files except the nupkg. What version are you running?
Hi,
Thanks for looking at this, I'm on 10.0.2 (build 42234)
This is another example if the build step gives you output like that I want to include all folder/files apart from my.library.nupkg which is on the top level (same as anyfolder)
\anyfolder\
\foldera\file1.txt
\folderb\file2.txt
file3.txt
\my.library.nupkg
Thanks
Hi,
That's what I set up to replicate your situation, but I did it in the last release. I just created empty files with those formats and it worked as you would have expected. I tried it in the last release, would it be possible for you to set up a test installation with the last release and try whether it replicates in your build?
I am not aware of specific changes that would directly fix this, but it's not impossible that any of the side changes affected this scenario.