This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
2 Replies Last post: Feb 9, 2010 8:07 PM by Ben  
Ben  Newbie 19 posts since
Sep 30, 2008
Currently Being Moderated

Feb 9, 2010 4:21 PM

How to find notification rules

I am trying to find the list of a user's watched builds. I have a NotificationRulesManager, with which I can (I think) get the list of notification rules using getUserNotificationRules, but to do so I need some magic strings.

 

Where can I find the values for notifierType?

 

I have tried things like "BUILD_FAILED", "ALL", "*" but with no success.

 

Thanks

 

Note: If there's a better way to get the watched builds list, please let me know

 

<bb />

 

Message was edited by: Ben

Pavel Sher JetBrains 2,081 posts since
Mar 6, 2008
Currently Being Moderated
Feb 9, 2010 6:02 PM in response to: Ben
Re: How to find notification rules

Please take a look at jetbrains.buildServer.status.StatusProvider::getWatchedBuildTypes()

You still need to know notifier type which rules you want to use. Notifier type is a name of notifier plugin, for Email notifier it is "email", for Jabber - "jabber". Other notifier plugins can use their own names. To obtain list of registered notifiers use jetbrains.buildServer.notification.NotificatorRegistry::getNotificators()

More Like This

  • Retrieving data ...