Chen Xie
Chen Xie

Reputation: 4241

Hudson: How to trigger cleanup shell after a build is failed?

I am using Hudson framework, and I want to have a feature that, when the build process (the step of execute shell) failed, another cleanup shell script will be executed no matter what.

The current behavior is once the executed shell exit because of failure, all the following up actions will be neglected and email will be triggered for failure.

Upvotes: 2

Views: 1333

Answers (1)

gareth_bowles
gareth_bowles

Reputation: 21130

The Parameterized Trigger plugin will allow you to set up your cleanup script as a separate Hudson job and then trigger it from your first build, regardless of whether the first build passes or fails.

Upvotes: 2

Related Questions