publishArtifacts service message not working
I have this output in my build log. But none of the files are showing up in my artifacts. I'm not sure why not. The files exist and the service message syntax seems correct.
What am I doing wrong?
This output is generated by Console.WriteLine() calls in my NUnit tests.
[12:07:38][FpWeb.Core.Tests.Notifications.FormLetterTests.billing_cancel] ##teamcity[publishArtifacts 'C:\TeamCity\buildAgent\work\4f777ac12fc52ee9\Fpweb.Commons\Commons\Fpweb.Commons.Tests\bin\Release\FormLetterTests\billing_cancel.html => FormLetters.zip']
[12:07:38][Fpweb.Core.Tests.dll] FpWeb.Core.Tests.Notifications.FormLetterTests.billing_cancelconfirm
[12:07:39][FpWeb.Core.Tests.Notifications.FormLetterTests.billing_cancelconfirm] ##teamcity[publishArtifacts 'C:\TeamCity\buildAgent\work\4f777ac12fc52ee9\Fpweb.Commons\Commons\Fpweb.Commons.Tests\bin\Release\FormLetterTests\billing_cancelconfirm.html => FormLetters.zip']
[12:07:39][Fpweb.Core.Tests.dll] FpWeb.Core.Tests.Notifications.FormLetterTests.billing_carddeclined
[12:07:39][FpWeb.Core.Tests.Notifications.FormLetterTests.billing_carddeclined] ##teamcity[publishArtifacts 'C:\TeamCity\buildAgent\work\4f777ac12fc52ee9\Fpweb.Commons\Commons\Fpweb.Commons.Tests\bin\Release\FormLetterTests\billing_carddeclined.html => FormLetters.zip']
[12:07:39][Fpweb.Core.Tests.dll] FpWeb.Core.Tests.Notifications.FormLetterTests.billing_copyofbill
[12:07:39][FpWeb.Core.Tests.Notifications.FormLetterTests.billing_copyofbill] ##teamcity[publishArtifacts 'C:\TeamCity\buildAgent\work\4f777ac12fc52ee9\Fpweb.Commons\Commons\Fpweb.Commons.Tests\bin\Release\FormLetterTests\billing_copyofbill.html => FormLetters.zip']
[12:07:39][Fpweb.Core.Tests.dll] FpWeb.Core.Tests.Notifications.FormLetterTests.billing_dedicated_order_complete
[12:07:40][FpWeb.Core.Tests.Notifications.FormLetterTests.billing_dedicated_order_complete] ##teamcity[publishArtifacts 'C:\TeamCity\buildAgent\work\4f777ac12fc52ee9\Fpweb.Commons\Commons\Fpweb.Commons.Tests\bin\Release\FormLetterTests\billing_dedicated_order_complete.html => FormLetters.zip']
Please sign in to leave a comment.
Try using paths, relative to checkout directory, e.g.
That did it. Thanks.
I spoke too soon. Relative paths did not fix the problem.
Should these files be showing up in the line at the end of the log that says "[Publishing artifacts] Collecting files to publish...". Because they are not.
I'll point out again, in case it matters, that these messages are being output from with in an NUnit tests using Console.WriteLine(). Could test output be getting treated differently perhaps?
I am sorry, I have missed this point in your first post.
Indeed, test output is not parsed for service messages.
Is there any reason not to use "Artifact Path" like this:
(at General Settings tab of your configuration) ?
Convenience. With a service message directly in the test output I could create and include random artifacts easily.