Access Build Changes in Builds?

Does anyone know of a way to access build changes during a build (i.e., the data that is displayed in the "Changes" drop down in the "Projects" tab for each build)? I have a couple of use cases for this:

1. Run Checkstyle on just the changes and fail the build if there are any violations. We began using Checkstyle a few years too late for our projects and cannot correct all of the style changes in one shot, but it would be nice to flag commits on individual files moving forward.
2. Obtain schema changes stored in JIRA for issues that require them so that we can bundle those as build artifacts

We use ant as the build runner. If anyone has solved these problems in other ways, I'd be interested in hearing about your solution(s).

3 comments

You can write a plugin which will generate build changes in XML or some other format for a given build. You can make it accessible by HTTP and download changes details right from the build script.

--
Pavel Sher

0

You can write a plugin which will generate build changes in XML or some other format for a given build. You can make it accessible by HTTP and download changes details right from the build script.

--
Pavel Sher


Thanks Pavel. This may actually work for me. Is there any documentation on writing/deploying plugins?

0

Take a look at: http://www.jetbrains.net/confluence/display/TCD3/DevelopingTeamCityPlugins
Documentation is far from ideal, but you can also take a look at sample plugin project which is bundled with TeamCity distribution.

--
Pavel Sher

0

Please sign in to leave a comment.