For an agent plugin that I'm working on, I not only need a current source control revision identifier (for svn, it's a straight-up integer that can be acquired in a number of ways off of the runnerContext or any of its sub-objects), but I need the revision number of the last successful prior build that that agent ran.
For example, under an svn-supported teamcity environment, an agent is run and the current svn revision number is 62. The build finishes successfully. Three changelists are submitted, increasing the revision number to 65. When the build is run again, I'd like to know, before any of the build actions are taken (preferably [beforeBuildStart (sic) would be a good hook]), what the most recent revision id is against which a successful build was run (and the correct answer 99 times out of 100 would be 62).
Since you will ask if I don't tell ( ;-) ), I need to pass the revision range (62:65) to an external tool that will perform a static code analysis using the revision range.
There will be a follow-up question momentarily asking how to get TeamCity to recognize external libraries wrt Spring.
Thank you in advance,