Agent history and overall build stats

I just wrote these two JSPs which I thought others would find useful.  One (agentHistory.jsp) shows a list of builds that have run on a specific agent in table format (interim solution for TW-5519).  The other (buildStats.jsp) just shows some statistical info for all builds in a given project.

You just need to set your db info in the jsps and drop them somewhere under teamcity/ROOT.

    String dbUsername = "SET_ME";
    String dbPassword = "SET_ME";
    String url = "jdbc:mysql://SET_ME/teamcity";

I hope somebody else finds them useful.

Tom



Attachment(s):
agentHistory.jsp
buildStats.jsp
4 comments
Comment actions Permalink

Great contribution, Tom, thanks!

0
Comment actions Permalink

Hey Tom, I' really interested in giving these a try but when I place them in my webapp/ROOT/ I'm getting a 404.  I basically just have the default install on linux.  Do you happen to know what I need to do to get these going?
Thanks,
David

0
Comment actions Permalink

Hi David,

I also have a (hopefully) typical install on Linux.  Dropping these files into webapps/ROOT and later webapps/ROOT/custom just worked.  Things to check:

- make sure you preserved the .jsp extension
- make sure the user that the TeamCity service is running as has access to the files
- there are some global mappings for file patterns in webapps/ROOT/WEB-INF/web.xml which could cause interference depending on any directory names you might choose

Hth,
Tom

0
Comment actions Permalink

There were a few problems after upgrading to 4.1 EAP because of a minor  schema change.  Attached are updated versions.

Tom



Attachment(s):
buildStats.jsp
agentHistory.jsp
0

Please sign in to leave a comment.