Confluence TeamCity Integration

Posted by: Etienne Studer on 08/09/2007

TeamCity provides a widget that displays the status of a given build configuration in an arbitrary web page. With a little help by Kir from JetBrains, I was able to integrate the External Status Widget into Confluence.

First, add the following section at the beginning of TeamCity/webapps/ROOT/status/externalStatus.jsp:

<style type="text/css">
  @import
  "${pageContext.request.requestURL}/../../css/status/externalStatus.css";
</style>

Then, integrate the External Status Widget for the build configurations of interest into Confluence:

h1. TeamCity
|{html-include:url=http://tc.xy.com/externalStatus.html?buildTypeId=bt77}|
|{html-include:url=http://tc.xy.com/externalStatus.html?buildTypeId=bt88}|
|{html-include:url=http://tc.xy.com/externalStatus.html?buildTypeId=bt99}|

That's it. Another fine feature of TeamCity.

In Benares, i.e. TeamCity 3, a link will be available that also includes the CSS information as part of the returned HTML fragment and hence there will be no more need to import the CSS style information separately.


About Etienne Studer

Etienne Studer

Etienne Studer is a Senior Java Software Developer at Navis LLC, world-wide market leader of Marine Terminal Operating Systems, based in Oakland. Starting his Java developer career at Canoo in Switzerland, he joined Navis three years ago and has been working on architectural decisions, framework infrastructure, and application development for Navis' next-generation products. Etienne is an expert in UltraLightClient (ULC), IntelliJ IDEA, and TeamCity and has spoken at various conferences and JUGs in California on behalf of JetBrains.

More About Etienne »

NFJS, the Magazine

December Issue Now Available
  • BDD and REST

    by Brian Sletten
  • Mocks and Stubs in Groovy Tests

    by Kenneth Kousen
  • Algorithms for Better Text Search Results

    by John Griffin
  • Knowns and Unknowns of Scrum and Agile

    by Brian Tarbox
Learn More »