Is it possible to create a custom Failure Condition?
I have an idea of a plugin which would fail the build if a certain commit (sha is set as a parameter) is not an ancestor of head. It looks like Failure Condition is just the right place to put it, but there are two issues:
- Bundled “Fail on text in build log” isn't run unless build is finished. I want the plugin to fail build immediately, before any build step even starts.
- I couldn't find anything by “Failure Condition” here http://javadoc.jetbrains.net/teamcity/openapi/current/.
So, would it be easier to implement the behavior as a build runner?
UPD: It looks like extending BuildServerAdapter is the way to go, so I would be happy if this thread gets answer instead.