Skip to content

Extend Jenkins plugin

jdcoffre edited this page May 22, 2014 · 1 revision

Extend Grapes Jenkins plugin

Grapes Jenkins plugin has been designed to send notification to Grapes server. This way, you can plug Grapes directly to your own CI. Getting dependencies information as soon as your project is built by a CI is the best way to keep up-to-date information. To make you able to send your own information to the server, Grapes Jenkins plugin provides an extension point on notification.

By extended the plugin, you can create your own notifications and this way, fill the Grapes database with your own information.

If you need to better understand what an Jenkins extension point is, go and see Jenkins documentation

How to extend?

  • extend GrapesNotification and its descriptor (documentation)
  • ... and that is it!

The Jenkins plugin will instantiate your implementation of GrapesNotification at the notification time and will send it to the Grapes server using it own configuration.

Available notifications

  • POST_MODULE
  • PROMOTE

POST_MODULE

A POST_MODULE notification sends Module object to a Grapes server. This will create or perform an update of the module information into Grapes database.

Default implementation: the default implementation of this notification is done to send Grapes Maven plugin reports. You can activate it in the job configuration using "Manage Grapes Maven plugin Notification". For more information see the Grapes Jenkins plugin usage page.

PROMOTE

A PROMOTE notification make the server add a flag promoted on a targeted module.

Default implementation: there is no default implementation for now.

Clone this wiki locally