build failure hook?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

build failure hook?

Ákos Maróy
Hi,

I'm using hudson, and I want to execute some commants if and only if a
build has filed. Of course I could use the 'execute shell script' option
for executing the build, and detect the build failure there. But it
would be more elegant, if I could just have a task among the post-build
options that executes if and only if the build has failed.

Is there such a possibility with Hudson?

Thanks,


Akos

PS: What I'm trying to do is to create a Trac ticket if the build has
failed, by simply calling a URL using wget

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: build failure hook?

Kohsuke Kawaguchi
Administrator
Ákos Maróy wrote:

> Hi,
>
> I'm using hudson, and I want to execute some commants if and only if a
> build has filed. Of course I could use the 'execute shell script' option
> for executing the build, and detect the build failure there. But it
> would be more elegant, if I could just have a task among the post-build
> options that executes if and only if the build has failed.
>
> Is there such a possibility with Hudson?
>
> Thanks,
>
>
> Akos
>
> PS: What I'm trying to do is to create a Trac ticket if the build has
> failed, by simply calling a URL using wget
I think it would be good if you can extend the existing Trac plugin to
do that. That sounds like a useful feature in general.

If you'd just like to record an RFE in the issue tracker, you can do so.

Or if you are interested in making this change by yourself, would you
mind checking the CVS history to figure out who owns it and sending them
a heads up that you'd like to make this change? --- I forgot who's doing
the trac plugin, but I think they'll like this feature, too.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]


smime.p7s (4K) Download Attachment