JMS trigger

28 views
Skip to first unread message

tommyB

unread,
Feb 23, 2012, 7:51:57 PM2/23/12
to Jenkins Users
So I have been using Jenkins for a couple of years to periodically run
some etl/batch jobs. Most of the jobs are simple enough that I just
need a groovy script or two to take care business. So anyway, I am
starting to get requests to start dealing with real time data from
JMS. The data processing is fairly simple, and Jenkins has been a
life saver for notification, logging and its restful api. If I were
to do what I need to consume and process data from a message queue, I
basically would be creating a crappy version of Jenkins. So I
thought, why not extend Jenkins? So here's my proposed use case...
please tell me if this is insane. I was thinking I could make a JMS
trigger that can fire off a job if messages are in a queue; the job
would run until all messages have been consumed. I haven't seen
anyone do this so I wonder if this is beyond the scope of
Jenkins.

Didier Durand

unread,
Feb 24, 2012, 12:11:28 AM2/24/12
to Jenkins Users
Hi,

If you go to the plugins page and check the Build Triggers section,
you'll see that many plugins have the same intent as yours: FileFound
plugin, FST plugin, IRC plugin, URL change plugin.

So, you should definitely do it.

Btw, the plugins mentionned probably provide good source code
skeletons for you

regards

didier

tommyB

unread,
Feb 24, 2012, 10:02:13 AM2/24/12
to Jenkins Users
Hey thanks. I looked at the FileFound plugin; I think I can use that
as a foundation for mine. Will give it a shot!

Kirill Evstigneev

unread,
Feb 24, 2012, 11:56:51 AM2/24/12
to jenkins...@googlegroups.com
Look at ScriptTrigger plugin. It uses arbitrary Groovy script to decide if the build should be run. You can query for JMS data.

tommyB

unread,
Feb 24, 2012, 8:06:07 PM2/24/12
to Jenkins Users
That is perfect.... not sure how I missed that. Thanks.

Nick

unread,
Apr 22, 2015, 7:26:01 PM4/22/15
to jenkins...@googlegroups.com, thomas....@gmail.com
Hi Tommy,

I'm looking for a similar plugin. How'd you go with this? Did you ever get the plugin working/published to the Jenkins repo?

Kind regards,

Nick
Reply all
Reply to author
Forward
0 new messages