Artifact on Failed build

I have a MSbuild TeamCity project which is failing with a nice long html error message.

Is there any way to get my error message into an artifact folder even on a failed build? It seems that the artifacts are not created on failed builds and therefore my tab never has the data it needs.

My artifact path is the following, and it does work when the build passes... which is kinda useless.

Logs/Install/**/*=>InstallLogs

2 comments
Comment actions Permalink

Hi James

Failded builds also produce artifacts, so all the files should be published.
Please check that the files are actually created on build agent's disk.
What are errors in a build log?

0
Comment actions Permalink

I took a closer look and it turns out that the artifacts were being copied. The problem was that the log files were not being created in the correct place!

Thanks for your help.

0

Please sign in to leave a comment.