I don't have a solution here, but I'll chime in that the process is a
bit risky.
I'll offer some tips for just-before-deployment:
* Be sure to test the plugin with slave nodes running on remote machines
before you try to deploy for real. (My first plugin crashed and
burned
because it was naive about remoting.)
* Watch the Hudson console (not just the build output) for exceptions.
Running mvn -e hudson-dev:run (exception stack traces) is especially
useful. Otherwise, exceptions triggered by jelly can get lost in
giant
logs, because sometimes you don't see any errors in the html page.
Or grep the logs the Big Three of jelly exceptions:
InvocationTargetException
NullPointerException
NoSuchMethodError
* Test a new plugin in a non-production clone of a production server,
with the actual projects that the plugin will run on in production.
Often plugin bugs are revealed by real data that weren't revealed by
test data.
On Oct 19, 2009, at 10:24 AM, Max Spring wrote:
> Anyone doing Hudson plugin development has probably faced this:
> How to best use Hudson itself (and probably the Promoted Builds
> Plugin)
> to deploy a newly built and tested Hudson plugin into already existing
> and running Hudson instances.
> I'm curious to hear how others have approached this, before I try to
> cobble something up myself.
> In my case I have to deal with several Hudson instances used by
> various
> teams.
> Thanks!
> -Max
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
[hidden email]
> For additional commands, e-mail:
[hidden email]
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]