How to tell a build failed to start

Hi fellows,

I can collect most types of failing builds, but i would like to be able to include
builds that failed to start - unable to checkout sources from VCS for example.

Have tried a few properties of SBuild, but no luck so far.

2 comments
Comment actions Permalink

I am told SBuild.isInternalError is what I want, but I can't get that to work yet.

Are those builds returned from SBuildType.getLastChangesStartedBuild?

<bb />

0
Comment actions Permalink

Hi Ben,

You were told correctly =)

> Are those builds returned from SBuildType.getLastChangesStartedBuild?
No, this method and all alike ignore cancelled and failed to start builds.
Please use a method that allows a more accurate search:
- if you use TC 7.1, it's BuildsManager.processBuilds()
- else (and in 7.1 too), you may use BuildHistory.processEntries()

Could you please share what task you're trying to solve?
Probable there is or should be a dedicated API for that.


--
Maxim

0

Please sign in to leave a comment.