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']

5 comments
Comment actions Permalink

Try using paths, relative to checkout directory, e.g.



Fpweb.Commons\Commons\Fpweb.Commons.Tests\bin\Release\FormLetterTests\billing_dedicated_order_complete.html => FormLetters.zip
0
Comment actions Permalink

That did it.  Thanks.

0
Comment actions Permalink

I spoke too soon.  Relative paths did not fix the problem.

[10:50:18][Fpweb.Commons.Tests.dll] FpWeb.Core.Tests.Notifications.FormLetterTests.billing_cancel
[10:50:19][FpWeb.Core.Tests.Notifications.FormLetterTests.billing_cancel] ##teamcity[publishArtifacts 'Fpweb.Commons\Commons\Fpweb.Commons.Tests\bin\Release\FormLetterTests\billing_cancel.html => FormLetters.zip']
[10:50:19][Fpweb.Commons.Tests.dll] FpWeb.Core.Tests.Notifications.FormLetterTests.billing_cancelconfirm
[10:50:20][FpWeb.Core.Tests.Notifications.FormLetterTests.billing_cancelconfirm] ##teamcity[publishArtifacts 'Fpweb.Commons\Commons\Fpweb.Commons.Tests\bin\Release\FormLetterTests\billing_cancelconfirm.html => FormLetters.zip']
[10:50:20][Fpweb.Commons.Tests.dll] FpWeb.Core.Tests.Notifications.FormLetterTests.billing_carddeclined
[10:50:20][FpWeb.Core.Tests.Notifications.FormLetterTests.billing_carddeclined] ##teamcity[publishArtifacts 'Fpweb.Commons\Commons\Fpweb.Commons.Tests\bin\Release\FormLetterTests\billing_carddeclined.html => FormLetters.zip']
[10:50:20][Fpweb.Commons.Tests.dll] FpWeb.Core.Tests.Notifications.FormLetterTests.billing_copyofbill
[10:50:20][FpWeb.Core.Tests.Notifications.FormLetterTests.billing_copyofbill] ##teamcity[publishArtifacts 'Fpweb.Commons\Commons\Fpweb.Commons.Tests\bin\Release\FormLetterTests\billing_copyofbill.html => FormLetters.zip']


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?

0
Comment actions Permalink

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:

Fpweb.Commons\Commons\Fpweb.Commons.Tests\bin\Release\FormLetterTests\*.html => FormLetters.zip

(at General Settings tab of your configuration) ?

0
Comment actions Permalink

Convenience.  With a service message directly in the test output I could create and include random artifacts easily.

0

Please sign in to leave a comment.