Extending Notification Templates Model
You can extend data model passed into Customizing Notifications when evaluating.
In your plugin, implement jetbrains.buildServer.notification.TemplateProcessor
interface. The following example can be found in our sample plugin:
public class SampleTemplateProcessor implements TemplateProcessor { public SampleTemplateProcessor() { } @NotNull public Map<String, Object> fillModel(@NotNull NotificationContext context) { Map<String, Object> model = new HashMap<String, Object>(); model.put("users", context.getUsers()); model.put("event", context.getEventType()); return model; } }
Last modified: 20 April 2023