TeamCity email notification data model reference
Hi,
I am trying to customize email notifications in TeamCity and I am having hard time figuring out the data model which Teamcity uses for reference which I can use in the ftl template.
Example: I want to know the build time , build log details and so on. The existing ftl.dist files have details like build.fullName.
I am unable to find from where are these ftl data model populated inside teamcity. There should a xml document or so from where build.fullName is picked up which i too can use to customize.
Please let me know
Please sign in to leave a comment.
Hi,
our data model is available here: https://confluence.jetbrains.com/display/TCD10/Customizing+Notifications
The specific classes are pulled from our OpenAPI, such as http://javadoc.jetbrains.net/teamcity/openapi/current/jetbrains/buildServer/serverSide/SBuildType.html
The fields of the ftlvariables should be those accessible by the openapi.
Hope this helps.
Hi,
I went through those but i am not trying to customize with the API.
What i am actually looking is to send email notifications with specific template by editing the ftl.
E.g)
However I am having a hard time find the actual freemarker ftl names for the details i would like to populate.
As you can see i am getting template error for build number because i am not able to find the appropriate variable name to be populated in the ftl
Hope my query is more clear with this. Thanks