John Mazzitelli a écrit :
Did you take a look at the hudson plugin prototype that is already in
the RHQ SVN:
http://svn.rhq-project.org/repos/rhq/trunk/modules/plugins/hudson/
You can probably see how it did auto-discovery.
Yes, I did start from this plugin (i checkout the trunk). I did spot a
discoverResources method inside the HudsonServerDiscoveryComponent,
however it does requires an urlBase.
My real issue here is how can I make Jopr understand that the JBoss
instance it has already "autodiscovered" is an Hudson instance ?
> "If JBoss AS Free Memory is running too low, invoke a Hudson
operation such
> as 'kill all current builds' ". Does it sounds possible (and sensible)
to you ?
>
This is a long desired feature not yet implemented (I'll see if I can dig out that
JIRA). We need a way to have an alert triggered on one resource to execute an operation on
another resource. That we do not have yet, so you can't do this today. BUT! What you
could do is expose a "Free Memory" metric directly on your Hudson resource (you
would need to collect that metric yourself in the Hudson component - but that's not
difficult to do). That way, you have a metric AND the operation on the same resource,
which would allow you to do what you want.
----- Original Message -----
From: "Tiago Bruno Pires Gomes" <tiago-bruno.piresgomes(a)atosorigin.com>
To: jopr-dev(a)lists.jboss.org
Cc: "romain pelisse" <romain.pelisse(a)atosorigin.com>
Sent: Wednesday, July 29, 2009 10:10:06 AM GMT -05:00 US/Canada Eastern
Subject: [jopr-dev] Hudson Plugin
Hi
I work on Hudson plugin for Jopr for several weeks now. I manage to some operations and
metrics (not really usefull in this context) working. The plugin is still a beta but I
feel it is working enough to be at release for review by jopr developer and contributor.
The plugin (and its history) is availaible on BitBucket, as a mercurial repository :
http://bitbucket.org/tpiresgo/hudsonplugin/
Also, I have some troubles understanding how auto discovery works, can someone help me
with this ?
Once I'll get auto discovery working fine, I would like to know if such an operation
sounds possible to you:
"If JBoss AS Free Memory is running too low, invoke a Hudson operation such as
'kill all current builds' ". Does it sounds possible (and sensible) to you ?
------------------------------------------------------------------------