Monday, 2 September 2013

Make TeamCity publish artifacts

Make TeamCity publish artifacts

I'm surprised I can't find any documentation about this, but anyway...
Sometimes my TeamCity build hangs, and I end up needing to stop it. The
build process produces several log files on disk, which TeamCity then
publishes as build artifacts. However, if I stop the build, then TeamCity
refuses to publish the logs:
Build was interrupted. Artifacts will not be published for this build
The files still exist on disk, it's just that TeamCity doesn't publish
them any more. This is particularly exasperating since I really, really
need to see what's in those logs so I can work out why the build hung in
the first place.
Is there some way I can force TeamCity to always publish the build
artifacts, even if I have to abort the build?
(I've seen several questions asking how to stop TeamCity publishing
artifacts if the build fails, so I'm a bit puzzled as to why my setup
isn't doing this already, but anyway...)
PS. I realise I can just manually log into the build server to see the
logs, but kind of the whole point of TeamCity is to automate stuff like
that for me...

No comments:

Post a Comment