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.
Please sign in to leave a comment.
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 />
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