Disabling publishing of artifacts as tests are running
Hello!
We currently run tests using the dotnet test buildrunner, and we are hitting the publish artifact limit of 1000.
I can see in the build configuration logs that after each test is run there is a TeamCity Service Message to publish the log from the test, and publish it to the hidden artifacts storage in .teamcity/VSTests.
We have not defined these service messages to run, so I can only assume it is part of the .NET build runner - is there any way for us to disable these messages and have the artifacts published at the end of all the test runs?
Basically what I see after each test is run, is the following message being output and trigger an artifact publish:
##teamcity[publishArtifacts 'C:\buildAgent\temp\buildTmp\some_log_file.log => .teamcity/VSTest/some_log_file.log']
Many thanks! Hope the issue I described is clear enough
FYI: We are on TeamCity Enterprise 2022.04.03
Please sign in to leave a comment.
https://www.jetbrains.com/help/teamcity/teamcity-configuration-and-maintenance.html#Build+Settings
Hi Anatoly!
Thanks for the reply! Adjusting that limit won't help us as our artifacts will continue to increase with the more tests we run.
What I was hoping to do was to disable the step we see in using the .NET test runner where it uses the service message to publish an internal artifact after each test is run. What I can see in our build log is after each .NET test is run, it issues the following service message
I assume the above is hardcoded or part of some .NET wrapper that TeamCity has when using the built in .NET test runner.
Thanks!