Check build logs and buildids from teamcity openApi?

hi new to teamcity....we run some command line scripts in teamcity..Each of the teamcity build has 1 script under it. After run of each script
and hence each build, I need to check for certain messages/string in that build's log and take action based on those log messages.

I went through teamcity api and found 3 necessary interfaces/classes:-

SBuildServer -

> BuildLookupService ---> BuildLogReader.

The problem is that SBuildServer requires many initilization parameters like buildid, buildnumber, buildtype.
How can I information about these parameters from teamcity?. Eg:- What is the parameter that keeps
track of last completed build or last failed build id.

Original message URL:

Please sign in to leave a comment.