I'm currently trying to create a new Build Trigger using the Teamcity API. I found the following link that explain how to do that.
The problem that i have is when i try to add my BuildTriggerDescriptor to the SBuildType, it try to cast it to jetbrains.buildServer.buildTriggers.BuildTriggerDescriptorImpl. I dont have any reference to that class and is not included in the api. Here is the Exception message that i have.
java.lang.ClassCastException: "Class Name" cannot be cast to jetbrains.buildServer.buildTriggers.BuildTriggerDescriptorImpl.
Do you have an idea what might cause this problem or do you have any example of a custom build trigger? Or better, is there a way to add a VCS trigger to a build configuration via the API. I did not found anything about this in the API that's why i'm trying to create my own Trigger that would in fact do the same thing.
Teamcity version used: 5.1.5 and 6.0.2