Ilya Khaustov
Ilya Khaustov

Reputation: 328

Jenkins doesn't execute shell scripts in case of build failure

I have a build step in Jenkins job, which executes a shell script. When build failes, it is omitted. What can I do to avoid this and execute my script with any build state?

Upvotes: 4

Views: 4143

Answers (1)

hyde
hyde

Reputation: 62797

You should be able to achieve this with Any Build Step Plugin. Use it to run your script as post-build action.

As stated in Any Build Step Plugin page, it also seems to require Flexible Publish Plugin in order to allow running any build step as post-build action.

Upvotes: 4

Related Questions