Jenkins Build fails when artifacts are not there

Posted by leifg on Stack Overflow See other posts from Stack Overflow or by leifg
Published on 2011-12-23T14:11:25Z Indexed on 2012/06/26 15:16 UTC
Read the original article Hit count: 216

I use Jenkins to run some integration tests on a web appilcation (using cucumber, capybara and selenium)

Everytime a test fails, a screenshot, the HTML source and a video of the process is saved.

the path structure looks like this:

results/output/<test_name>/<files>

I use the archive artifacts feature of Jenkins to provide the files (pattern: results/output/*/*). It works great.

However as soon as a build succeeds, there are no screenshots/videos etc... and the build fails because Jenkins cannot find the files for the pattern.

Is there a way to tell Jenkins to succeed without having the files present?

I don't want to do a dirty hack which involves creating an empty folder structure like result/output/success/hooray.txt.

© Stack Overflow or respective owner

Related posts about continuous-integration

Related posts about hudson