Sunday, June 16, 2013

Build artifacts viewer done right


Building deployment pipeline for the project usually involves integration of different systems which produce all kinds of "artifacts" - binaries, archives, images, etc.

In TeamCity, it usually looks like this:




















It works great for archives (TeamCity archive viewer is awesome), but why I still the the links when artifacts are just images?














Wouldn't it be easier to just show thumbnails so that you can understand the results without clicking each of them?

When it can be useful? For a simple smoke test you can take some screenshots, performance tests can also produce charts, etc. Luckily, it can be easily improved, since TeamCity has REST API and even .NET wrapper around it.


Using the code above we can connect to TeamCity and for each of the get the artifacts from the latest successful builds / display them as you wish. Here's the example:



























I think someday such feature will be provided out of the box, but for now such workaround works really well, it is simple and useful.

No comments:

Post a Comment