Jenkins::NotificationListenerA TCP server that listens to messages from Jenkins Notification plugin. | |
Download |
Jenkins::NotificationListener Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Yo-An Lin
- Publisher web site:
- http://search.cpan.org/~cornelius/
Jenkins::NotificationListener Tags
Jenkins::NotificationListener Description
Jenkins::NotificationListener is a simple TCP server that listens to messages from Jenkins' Notification plugin.Jenkins::NotificationListener uses AnyEvent::Socket to create tcp server object, so it's a non-blocking implementation.This tcp server reads JSON format notification from Jenkins Notification plugin, and creates payload object Jenkins::Notification. the payload object is built with Net::Jenkins::Job, Net::Jenkins::Job::Build objects from the information that is provided from notification json.By using Jenkins::NotificationListener, you can simple use the payload object to interact with Jenkins server.To test your Jenkins notification plugin, you can also use jenkins-notification-listener.pl script. jenkins-notification-listener.plSYNOPSIS use Jenkins::NotificationListener; Jenkins::NotificationListener->new( host => $host , port => $port , on_notify => sub { my $payload = shift; # Jenkins::Notification; print $payload->name , " #" , $payload->build->number, " : " , $payload->status , " : " , $payload->phase , " : " , $payload->url , "\n"; })->start;Product's homepage
Jenkins::NotificationListener Related Software