Teamcity can not upload file to the correct folder in the hidden artifact
I'm using NUnit runner in Teamcity, when running tests, TeamCity runner collects resources from agents and then pushes them to TeamCity hidden artifact so it can be displayed in TeamCity browser.
However, in my case, the destination path in TeamCity hidden artifact is not generated correctly (maybe because of " " characters) and leads to captured picture cant not be displayed in the UI.
here is an example log.
[17:59:58] : [Publishing artifacts] Collecting files to publish: [C:\TeamCity\buildAgent\work\118672db624852d\MyTest.TestSpecs\bin\TrackRelease\net48\Screenshots\ProductDetailPageFeature\Desktop_StickyNavigation_VerifyClickAction_aeg_de-de_null__FAILED.png => .teamcity/NUnit/MyTest.TestSpecs.Features.PDP.ProductDetailPageFeature.Desktop_StickyNavigation_VerifyClickAction(_aeg_, _de-de_, null)/0c32bc2f-8571-4f49-9884-cc452af5b7ff]
[17:59:58]W: [Publishing artifacts] Artifacts path '_de-de_' not found
[17:59:58]W: [Publishing artifacts] Artifacts path 'null)/0c32bc2f-8571-4f49-9884-cc452af5b7ff' not found
[17:59:58] : [Publishing artifacts] Publishing 1 file using [WebPublisher]: MyTest.TestSpecs/bin/TrackRelease/net48/Screenshots/ProductDetailPageFeature/Desktop_StickyNavigation_VerifyClickAction_aeg_de-de_null__FAILED.png => .teamcity/NUnit/MyTest.TestSpecs.Features.PDP.ProductDetailPageFeature.Desktop_StickyNavigation_VerifyClickAction(_aeg_
[17:59:58] : [Publishing artifacts] Publishing 1 file using [ArtifactsCachePublisherImpl]: MyTest.TestSpecs/bin/TrackRelease/net48/Screenshots/ProductDetailPageFeature/Desktop_StickyNavigation_VerifyClickAction_aeg_de-de_null__FAILED.png => .teamcity/NUnit/MyTest.TestSpecs.Features.PDP.ProductDetailPageFeature.Desktop_StickyNavigation_VerifyClickAction(_aeg_
[17:59:58]i: [Publishing artifacts] Will publish 1 artifact(s) to TeamCity node with id MAIN_SERVERFrom the UI, the image that the server try to load has url
.teamcity/NUnit/MyTest.TestSpecs.Features.PDP.ProductDetailPageFeature.Desktop_StickyNavigation_VerifyClickAction(_aeg_,_de-de_,null)/0c32bc2f-8571-4f49-9884-cc452af5b7ff/(...)
=> does not have file => not found
Does anyone have exp with TeamCity and Nunit?
Please sign in to leave a comment.
It appears to be a bug of NUnit runner specifically - I have created a bug entry on the matter: https://youtrack.jetbrains.com/issue/TW-83097/NUnit-runner-generates-hidden-artifact-name-with-comma. Please consider subscribing to this issue to receive updates on its status.
Thank you!