Integrate TeamCity Reports to Confluence

旧时模样 提交于 2019-12-14 00:42:00

问题


Is there a way (plugin) to integrate build-reports from teamcity to confluence


回答1:


I'm not sure that this is what you're looking for but Etienne Studer has bloged about Confluence TeamCity Integration (it's pretty old but it's hard to be accurate without any informations on the versions you're using):

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.


(source: jroller.com)




回答2:


Try the "Confluence TeamCity Integration Plugin"

It provides 4 macroses:

  • Activity
  • Agents
  • Project
  • Build Configuration

Also, it's free



来源:https://stackoverflow.com/questions/1486369/integrate-teamcity-reports-to-confluence

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!