Hudson results one step behind

Posted by kaerast on Stack Overflow See other posts from Stack Overflow or by kaerast
Published on 2010-05-16T13:59:26Z Indexed on 2010/05/16 14:00 UTC
Read the original article Hit count: 198

Filed under:
|
|

I'm using the filesytem plugin for Hudson, and when a build happens it looks for new/modified files, copies them to the Workspace, runs tests using Rake, and then publishes those junit xml result files.

However, the updated junit xml result files don't get pushed to the workspace until the next build. This means that when the publishing of the junit xml result files happens, it's always one step behind. And this means I need to run a build twice before the results show.

The Rake task is creating the junit xml files in the project directory. I've tried outputting to the workspace directory, but it seems to make things worse and the results don't get published at all.

Am I doing something fundamentally wrong here? Is there a simple way of getting those junit xml results pushed to the workspace so that the post-build "Publish JUnit test result report" actually runs against the newly created xml files?

© Stack Overflow or respective owner

Related posts about hudson

Related posts about junit