Search code examples
rakejenkins

How to get Jenkins to report after the build script fails?


I use rake to build my project and one of the steps is running the unit, integration and fitnesse tests. If too many of these fail, I fail the rake script.

That part is working fine.

Unfortunately, after the build is failed, jenkins doesn't publish the html reports I generated from the unit, integration and fitnesse tests I generated, making it tad difficult to track down the failure reason.

Am I missing a configuration step to get the reports published?

Is Jenkins supposed to skip the post-build steps when the build fails?
It seems like it some for most of the plugins I am using.


Solution

  • Finally figured it out, one of those I could have had a V8 moments...

    I'm using a rake file to build and one of it's tasks is failing just before some reporting tasks that need to run in order to have the HTML pushed into the correct area to be published.