1
votes

I have Jenkins job with summary plugin step in post build actions. Sometimes it fails because of absence of the necessary file for it(for some branches, and there is no ability to update them nearest time). Is it possible to ignore failure only in post build steps and mark build green?

2

2 Answers

1
votes

Finally I found solution - in build steps add shell step with command "touch summaryName.xml". If file exists it won't be changed. And if there is no summary file it will be created

0
votes

Yes, you can ignore the failure by ticking the check box [Do not fail this build if archiving returns nothing] in advanced section.