Is there a way to know what bug numbers relate to files in the changedFile list?

Right now, I am pulling in the list of file changes from the file in the build agent, during the build.  I do this, because I am running some code checks on new files.  If a file fails one of the code checks, I want to be able to know which bug it relates to so I can an email containing the bug number.  We use Bugzilla for our bug software.

Is there anyway for me to know the bugs involved in the build, during the build?  Can I find a file on the file list and know which bug it relates to?

6 comments
Comment actions Permalink

Yes, you should be able to integrate with Buzilla, Jira, or YouTrack.  We are using Jira ourselves and it works nicely.  The instructions for doing this can be found here: http://www.jetbrains.net/confluence/display/TCD5/Issue+Tracker+Tab

Once it is set up, any changes that contain the bug # in the change description should become links when viewing them in TeamCity.

0
Comment actions Permalink

Thank you for your response.  I am already doing all of this.  What I haven't been able to figure out is how to access the list of bugs that are included in the build, during the build process.  The main reason I need the list is for email notification, as well as figuring out which bug a changed file goes with.

0
Comment actions Permalink

Ah, ok I must have misunderstood the question a little.  Would it be enough to have the bug #s in the change descriptions in the e-mail resolve to links to the bug or are you looking for something where you could just have a list of resolved bugs in the notification?

I know the bug #s won't resolve to links in the email notifications and I actually think that would be a pretty nice feature to request.

As far as getting a list of resolved bugs, I'm not really sure how best to do that.  I'm sure it could be done in a plugin but I just don't know if that would be the best way to do it.  Sorry I couldn't be more help.

0
Comment actions Permalink

The email notification is probably secondary to the files issue.  During the course of my build, I have access to this list of changed files.  I am writing a task that will search each of the added files, to make sure that they meet certain standards.  If one of the added files violates the standards, then I will need to know which bug the file belongs to.  Once I have that, I get the email and to the link to Bugzilla.  I mainly need to figure out how to get from a file to the bug that it was changed or added for.

0
Comment actions Permalink

Anyone from TeamCity have some insight to share in this matter?  Obviously, at some point, TeamCity knows what files were changed and it appears that it knows the bug numbers too, if you have your bug tool integrated (which I do).  So, how does Team City get all of it's information about bugs?  Does it store them anyway, or is it all done by querying Bugzilla every time you hover over something (like pending changes or changes in a build?

0
Comment actions Permalink

TeamCity knows about bugs mentioned in change comments. Using TeamCity API it is possible to obtain a list of bugs for a change, and for a build. For build the list is composed from the build changes. By change I mean a single commit to VCS repository.

I think a plugin can be written which will watch for commits and keep track of changed files for a bug. Then plugin could send this information to agent (and then to a build) via build parameters.

0

Please sign in to leave a comment.