Has anyone managed to successfully integrate FogBugz with TeamCity? - FogBugz Knowledge Exchange most recent 30 from http://fogbugz.stackexchange.com 2013-05-19T09:46:43Z http://fogbugz.stackexchange.com/feeds/question/3028 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://fogbugz.stackexchange.com/questions/3028/has-anyone-managed-to-successfully-integrate-fogbugz-with-teamcity Has anyone managed to successfully integrate FogBugz with TeamCity? Jim 2010-05-12T13:17:42Z 2012-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#3039 Answer by Jim for Has anyone managed to successfully integrate FogBugz with TeamCity? Jim 2010-05-13T14:40:27Z 2010-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> &lt;transformation-pattern search="BugzID:\s+(\d+)$" replace="&amp;lt;a target=&amp;quot;_blank&amp;quot; title=&amp;quot;Click to open the case a new window&amp;quot; href=&amp;quot; http://pathto.yourfogbugzinstall.com?$1&amp;quot;&amp;gt;Case $1&amp;lt;/a&amp;gt;" description="FogBugz Case" /&gt; </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#4699 Answer by Laazy J for Has anyone managed to successfully integrate FogBugz with TeamCity? Laazy J 2010-09-17T13:48:41Z 2010-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>&lt;transformation-pattern search="((?:(?:[Bb][Uu][Gg](?:[ZzSs])?)|(?:[Cc][Aa][Ss][Ee](?:s)?))\s*(?:[Ii][D][Ss]*)?\s*[#:; ]+(\d+))" replace="&amp;lt;a target=&amp;quot;_blank&amp;quot; title=&amp;quot;Click to open this case in a new window&amp;quot; href=&amp;quot;http://pathto.yourfogbugzinstall.com/default.asp?$2&amp;quot; &amp;gt;$1&amp;lt;/a&amp;gt;" description="Fogbugz case link" /&gt; </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#8208 Answer by John T for Has anyone managed to successfully integrate FogBugz with TeamCity? John T 2011-05-13T22:20:37Z 2011-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#10723 Answer by Amir for Has anyone managed to successfully integrate FogBugz with TeamCity? Amir 2012-08-20T06:01:12Z 2012-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>