This Question is Answered

2 "helpful" answers available (2 pts)
2 Replies Last post: Feb 5, 2010 5:32 PM by inthewolfden  
inthewolfden Newbie 33 posts since
Nov 10, 2009
Currently Being Moderated

Jan 28, 2010 10:56 PM

Any way to find out who made the file changes, during the build process?

I am now doing some code review tasks, as well as StyleCop, during the build process.  I can get the changed file list from 'teamcity_build_changedFiles_file' and I can get the Subversion revision number from the same file.  What I don't have, is the name of the person who edited the file, or the bug number.  We are using Subversion and Bugzilla.

 

Is there any way to get to the name of the person, given the file name and subversion revision?  I want to be able to email the person who edited the file, if it fails the StyleCop scan.

Yegor Yarko JetBrains 1,429 posts since
May 5, 2004
Currently Being Moderated
Feb 5, 2010 4:30 PM in response to: inthewolfden
Re: Any way to find out who made the file changes, during the build process?

http://www.jetbrains.net/devnet/people/inthewolfdenStephen,

 

The information about the committers is not passed to the build. Actually, it is might be several names (since a build may include several changes) so names are probably not the only information that will be necessary in this case.

 

I'd consider one of the following approaches:

- fail the build with specific messages and rely on TeamCity ability to send email notifications for users who committed into the build (users need to have "builds with my changes" notification enabled)

- if you use TeamCity 5.0, use REST API to get information on the changes of the current build in XML

- write a Java plugin to TeamCity that will gather and pass all the necessary information to the build

- write a plugin that will send necessary emails based ont he build resutls.

More Like This

  • Retrieving data ...