<p>I use cruisecontrol.rb for CI and FogBugz for bug tracking, but the more general the answers, the better.</p>

<p>First is the technical problem: is there an API for FogBugz?  Are there good tutorials, or better yet, pre-written code?</p>

<p>Second is the procedural problem: what, exactly, should the CI put in the bug tracker when the build breaks?  Perhaps:</p>

<p>Title: "#{last committer} broke the build!"</p>

<p>Body: "#{ error traces }"</p>

<p>I suppose this presupposes the answer to this question: should I even put CI breaks into my bug tracking?</p>

[{'answer_id': 13212, 'author': 'Keith', 'author_id': 905, 'author_profile': 'https://Stackoverflow.com/users/905', 'pm_score': 0, 'selected': False, 'text': "<p>CC comes with a utility that warns you when builds fail, it probably isn't worth logging the failing build in FogBugz - you don't need to track issues that are immediately resolved (as most broken builds will be)</p>\n\n<p>To go the other way round (FogBugz showing checkins that fixed the issue) you need a web based repository browser - FogBugz is easy to configure so that it shows the right changes.</p>\n"}, {'answer_id': 13259, 'author': 'Brian Laframboise', 'author_id': 1557, 'author_profile': 'https://Stackoverflow.com/users/1557', 'pm_score': 2, 'selected': False, 'text': '<p>At my company we\'ve recently adopted the (commercial) Atlassian stack - including JIRA for issue tracking and Bamboo for builds. Much like the Microsoft world (I\'m guessing - we\'re a Java shop), if you get all your products from a single vendor you get the bonus of tight integration.</p>\n\n<p>For an example of how they\'ve done interoperability, view their <a href="http://www.atlassian.com/software/bamboo/features/interoperability.jsp" rel="nofollow noreferrer" title="interoperability">interoperability page</a>.</p>\n\n<p>Enough shilling. Generally speaking, I can summarize their general approach as:</p>\n\n<ul>\n<li>Create issues in your bug tracker (ex: issue key of PROJ-123).</li>\n<li>When you commit code, add "PROJ-123" to your commit comment to indicate what bug this code change fixes.</li>\n<li>When your CI server checks out the code, scan the commit comments of the diffs. Record any strings matching the regex of your issue keys.</li>\n<li>When the build completes, generate a report of what issue keys were found.</li>\n</ul>\n\n<p>Specifically to your second problem:</p>\n\n<p>Your CI doesn\'t doesn\'t have to put anything into your bug tracker. Bamboo doesn\'t put anything into JIRA. Instead, the Atlassian folks have provided a plugin to JIRA that will make a remote api call into Bamboo, asking the question "Bamboo, to what builds am I (a JIRA issue) related?". This is probably best explained with a <a href="http://confluence.atlassian.com/display/BAMBOO/Bamboo+2.1+Release+Notes#Bamboo2.1ReleaseNotes-LinkIssuesandBuilds" rel="nofollow noreferrer" title="screenshot">screenshot</a>.</p>\n'}, {'answer_id': 13318, 'author': 'markpasc', 'author_id': 1472, 'author_profile': 'https://Stackoverflow.com/users/1472', 'pm_score': 3, 'selected': True, 'text': '<p>All the CI setups I\'ve worked with send an email (to a list), but if you did want—especially if your team uses FogBugz much as a todo system—you could just open a case in FogBugz 6. <a href="http://www.fogcreek.com/FogBugz/docs/60/topics/advanced/API.html" rel="nofollow noreferrer">It has an API</a> that lets you open cases. For that matter, you could just configure it to send the email to your FogBugz\' email submission address, but the API might let you do more, like assign the case to the last committer.</p>\n\n<p><a href="https://stackoverflow.com/users/1557/brian-laframboise">Brian</a>\'s answer suggests to me, if your CI finds a failure in a commit that had a case number, you might even just reopen the existing case. Like codifying a case field for every little thing, though, there\'s a point where the CI automation could be "too smart," get it wrong, and just be annoying. Opening a new case could be plenty.</p>\n\n<p>And thanks: this makes me wonder if I should try integrating our <a href="http://search.cpan.org/~zev/Test-Chimps-0.07/" rel="nofollow noreferrer">Chimps</a> setup with our FogBugz! </p>\n'}]
['https://Stackoverflow.com/questions/13200', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1190/']