Skip to end of metadata
Go to start of metadata

This script will add the Notification Plugin to every job.

It will also skip jobs that already have the notification plugin set up.

for (item in Hudson.instance.items) { 
  notification = { it.getKey().getClass() == com.tikal.hudson.plugins.notification.HudsonNotificationPropertyDescriptor }    
  if (notification != null) {

  println(">>>>>>>> Adding notification plugin to $")   
  protocol = com.tikal.hudson.plugins.notification.Protocol.UDP
  endpoint = new com.tikal.hudson.plugins.notification.Endpoint(protocol, '')
  notification = new com.tikal.hudson.plugins.notification.HudsonNotificationProperty([endpoint])

  • No labels