Has anyone managed to successfully integrate FogBugz with TeamCity? - FogBugz Knowledge Exchange most recent 30 from http://fogbugz.stackexchange.com2013-05-19T09:46:43Zhttp://fogbugz.stackexchange.com/feeds/question/3028http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://fogbugz.stackexchange.com/questions/3028/has-anyone-managed-to-successfully-integrate-fogbugz-with-teamcityHas anyone managed to successfully integrate FogBugz with TeamCity?Jim2010-05-12T13:17:42Z2012-08-20T06:01:12Z
<p>We're currently considering switching our Continuous Integration from CruiseControl.NET to either Cruise or TeamCity but have discovered that currently TeamCity has no support for FogBugz. </p>
<p>The free version of TeamCity looks awesome and is certainly looking like an alternative to Cruise/CruiseContro.NET. However the lack of FogBugz integration is annoying!</p>
<p>The TeamCity website says that it is possible to integrate with unsupported bug tracking software by adding the correct pattern to the comment-transformation block (in {path_to_teamcity_data_folder}/BuildServer/main-config.xml file) but i'm not sure how to get this to work.</p>
<p>Is there anyone out there who has successfully integrated FogBugz with TeamCity who would be able to help? </p>
http://fogbugz.stackexchange.com/questions/3028/has-anyone-managed-to-successfully-integrate-fogbugz-with-teamcity/3039#3039Answer by Jim for Has anyone managed to successfully integrate FogBugz with TeamCity?Jim2010-05-13T14:40:27Z2010-05-13T14:40:27Z<p>Ok... So i took another look at this with fresh eyes today and it was much easier than i first thought (embarrasingly so!)</p>
<pre><code> <transformation-pattern
search="BugzID:\s+(\d+)$"
replace="&lt;a target=&quot;_blank&quot; title=&quot;Click to open the case a new window&quot; href=&quot;
http://pathto.yourfogbugzinstall.com?$1&quot;&gt;Case $1&lt;/a&gt;"
description="FogBugz Case" />
</code></pre>
<p>This is pretty much taken straight from the docs. Hope it helps someone else. </p>
http://fogbugz.stackexchange.com/questions/3028/has-anyone-managed-to-successfully-integrate-fogbugz-with-teamcity/4699#4699Answer by Laazy J for Has anyone managed to successfully integrate FogBugz with TeamCity?Laazy J2010-09-17T13:48:41Z2010-09-17T13:48:41Z<p>The pattern needs to be added to TeamCity's <strong>config\main-config.xml</strong> file in the <strong></strong> element as described in <a href="http://confluence.jetbrains.net/display/TCD5/Mapping+External+Links+in+Comments" rel="nofollow">http://confluence.jetbrains.net/display/TCD5/Mapping+External+Links+in+Comments</a>.</p>
<p>The search pattern we use is a bit more advanced, it matches any "Bug", "Bugs", "Bugz", "Case", "Cases" prefixes.</p>
<pre><code><transformation-pattern
search="((?:(?:[Bb][Uu][Gg](?:[ZzSs])?)|(?:[Cc][Aa][Ss][Ee](?:s)?))\s*(?:[Ii][D][Ss]*)?\s*[#:; ]+(\d+))"
replace="&lt;a target=&quot;_blank&quot; title=&quot;Click to open this case in a new window&quot; href=&quot;http://pathto.yourfogbugzinstall.com/default.asp?$2&quot; &gt;$1&lt;/a&gt;"
description="Fogbugz case link" />
</code></pre>
<p>Hope this helps!</p>
<p>Incidentally, does anyone know how to make the pattern case-insensitive? So I can remove the ugly [Bb][Uu] etc?</p>
http://fogbugz.stackexchange.com/questions/3028/has-anyone-managed-to-successfully-integrate-fogbugz-with-teamcity/8208#8208Answer by John T for Has anyone managed to successfully integrate FogBugz with TeamCity?John T2011-05-13T22:20:37Z2011-05-13T22:20:37Z<p>I couldn't comment but - here are some links of note:</p>
<p>To set the case insensitive flag in the regular expression use '(?i)' at the beginning of the expression. Java documentation <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/regex/Pattern.html" rel="nofollow">here</a>.</p>
<p>Above search by 'Laazy J' becomes - </p>
<pre><code>(?i)((?:(?:bug(?:[zs])?)|(?:case(?:s)?))\s*(?:ids*)?\s*[#:; ]+(\d+))
</code></pre>
<p>The link to the TeamCity documentation is <a href="http://confluence.jetbrains.net/display/TCD6/Mapping+External+Links+in+Comments" rel="nofollow">here</a></p>
http://fogbugz.stackexchange.com/questions/3028/has-anyone-managed-to-successfully-integrate-fogbugz-with-teamcity/10723#10723Answer by Amir for Has anyone managed to successfully integrate FogBugz with TeamCity?Amir2012-08-20T06:01:12Z2012-08-20T06:01:12Z<p>After setting this config, does the service needs to be restarted? what should I do to make sure the new config takes effect in the system?
where I can see the result? in the TeamCity website?</p>