Question on the execution order of the artifactRules
I have these rules, hoping to copy the .pdb files to one folder and everything else to another.
artifactRules = """
build/** => %FOLDER_1%
-:build/**/*.pdb => %FOLDER_1%
build/**/*.pdb => %FOLDER_2%
"""but it breaks on the 3rd line, saying
No files matched for patterns "build/**/*.pdb"
I can confirm without the 2nd line, it's gonna copy all the .pdb files, so they definitely exist. I am curious if there is a way to handle this properly.
Please sign in to leave a comment.
To copy .pdb files to one folder and all other files to another, you can set the artifactRules as follows:
artifactRules = """
+:build/**/*.pdb => %FOLDER_2%
+:build/** => %FOLDER_1%
-:build/**/*.pdb => %FOLDER_1%
"""
Best Regards,
Tom
huh, didn't realize that the order matter that much. The reason I was getting error because they got excluded for any following rules?
Reordering your rules should help prevent this error. Starting with inclusion rules, then placing exclusions afterward, typically ensures everything is handled as expected.
For any questions or concerns, please do not hesitate to reach out.
Best Regards,
Tom