BuildStart Event-Catching


I'm developing a TCPlugin, which starts an application, when a build is run. It works fine, but there are too many builds, which are not interesting, as builds are also triggered when files are checked into VCS. Is there a possibility to differ between "SRunningBuild", that were triggered by VCS and the one that started manually? It seems, that both activate same events.

Comment actions Permalink

Currently the only way to check who triggered build is by requestor field: String SBuild.getRequestor(). The requestor string is shown in the build queue in column "Triggered by". For VCS trigger this string usually contains name of the VCS plugin (Subversion, Perforce and so on).

Pavel Sher

Comment actions Permalink

Thank you, Pavel !!!

That's exactly what I was looking for ;)


Please sign in to leave a comment.