Commit Graph

8 Commits

Author SHA1 Message Date
Andreas Jaeger 7c68877e72 Retire zmq-event-publisher
The repo has been forked and is maintained elsewhere.
OpenStack does not need it anymore, so retire it.

Depends-On: https://review.opendev.org/702745
Change-Id: I0787450fdc66beba7d191280b9d208ab2fc024d6
2020-01-15 21:32:13 +01:00
Clark Boylan df9ee54284 Get master hostname from master computer object.
Jenkins.getDisplayName() is useless and returns "Jenkins". Get the name
of the master via the Jenkins master computer object. Fall back on
doing a DNS name lookup otherwise.

Change-Id: Icee4e22e9ca989fd1faa6d27f4dad3be76da6385
2014-01-29 18:06:10 -08:00
Clark Boylan 135d273963 Use single thread to perform all zmq sends.
jeromq does not appear to be thread safe. Use a single thread to call
send on the ZMQ socket to avoid contention for those resources. Have the
RunListener pass events to the ZMQ sender thread with a BlockingQueue.

Do not block when offering events to that queue to avoid
starvation/deadlock in the Jenkins job runners. Events may potentially
be lost if ZMQ cannot keep up.
2013-01-31 10:59:53 -08:00
Clark Boylan 7d54898d4e Use Hudson object to get global config for plugin
Instead of using the Run object for builds (which may be null) to get
the global config for the plugin retrieve it directly from a Hudson
instance.
2013-01-29 20:28:39 -08:00
Clark Boylan 8d334cd9a9 Use jeromq instead of jzmq. 2013-01-25 13:42:38 -08:00
Clark Boylan 28d5017b4a Check for and handle ZMQ errors.
Log ZMQ errors and deal with them by creating a new ZMQ PUB socket in
most situations.
2013-01-25 10:56:13 -08:00
Clark Boylan fd1480b87d Useful events and config.
JSON build info is now emitted in the published events and the plugin is
configurable. Config option include whether or not events should be
emitted (global option and per project option) and the TCP port to
listen on.
2013-01-23 16:10:54 -08:00
Clark Boylan 28a4fa86e1 Initial proof of concept for zmq event publisher.
It works, but isn't very useful yet.
2013-01-23 10:40:09 -08:00