summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Boylan <clark.boylan@gmail.com>2013-01-23 17:00:05 -0800
committerClark Boylan <clark.boylan@gmail.com>2013-01-23 17:00:05 -0800
commitf92be91eb0c37578961f81806b8fcb30b20b3d05 (patch)
tree718e0ada46f0a10b7ad380aae6c97833bc18ef4b
parentfd1480b87d33bd2fb3ec4a93cba2b1ff31930061 (diff)
Add a README and fix copyright/license headers.
-rw-r--r--README39
-rw-r--r--src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/HudsonNotificationProperty.java1
-rw-r--r--src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/Phase.java1
3 files changed, 41 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..b1a0e72
--- /dev/null
+++ b/README
@@ -0,0 +1,39 @@
1This is a Jenkins plugin that will publish Jenkins Job run events
2(start, complete, finish) to a ZMQ PUB socket. By default the PUB
3socket is on TCP port 8888 and no Job events will be published.
4You can choose to enable event publishing for all jobs in the
5Jenkins' global config or enable the plugin on a per job basis.
6
7To build this plugin you will need to have libzmq installed on your
8Jenkins server. You will also need to build a local copy of jzmq
9for the architecture of your Jenkins server. To get a build of jzmq
10that worked I had to tweak jzmq version 2.1.0 slightly. You can
11get that version at:
12
13 https://github.com/cboylan/jzmq
14
15First clone the above repository and check out the 2.1.0-build-fix
16branch. Then run the following commands to build jzmq:
17
18 ./autogen.sh && ./configure && make
19 #I had to skip tests as they would not run
20 maven clean install -Dmaven.test.skip=true
21
22Now you can build this plugin:
23
24 maven clean package
25 # Copy target/zmq-event-publisher.hpi to the Jenkins
26 # plugin dir and restart Jenkins.
27
28All of this will be much easier if you use the same OS and CPU
29architecture on your build host as on the Jenkins server.
30
31TODO:
32Better error handling (eg bind errors due to port conflicts)
33Avoid reading in the global config for each event if possible.
34Cleanup config.jelly for the non global Job config.
35
36This plugin borrows heavily from the Jenkins Notification Plugin
37https://github.com/jenkinsci/notification-plugin. That plugin
38does much of the same work and where applicable I have gone the
39easy route and copied the work they have done.
diff --git a/src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/HudsonNotificationProperty.java b/src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/HudsonNotificationProperty.java
index 5dfff6b..a9794c5 100644
--- a/src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/HudsonNotificationProperty.java
+++ b/src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/HudsonNotificationProperty.java
@@ -1,4 +1,5 @@
1/* 1/*
2 * Copyright 2013 Hewlett-Packard Development Company, L.P.
2 * Copyright Authors of the Jenkins Notification Plugin 3 * Copyright Authors of the Jenkins Notification Plugin
3 * 4 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/Phase.java b/src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/Phase.java
index f74e9e8..2797ee2 100644
--- a/src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/Phase.java
+++ b/src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/Phase.java
@@ -1,4 +1,5 @@
1/* 1/*
2 * Copyright 2013 Hewlett-Packard Development Company, L.P.
2 * Copyright Authors of the Jenkins Notification Plugin 3 * Copyright Authors of the Jenkins Notification Plugin
3 * 4 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * Licensed under the Apache License, Version 2.0 (the "License");