How to make Jenkins build unstable if there are failure test cases in serenity report? I am using Jenkins declarative pipeline and publishing serenity reports using HTML publish plugin.
Asked
Active
Viewed 397 times
1 Answers
0
See this post for a related question.
You could either write your own script with exit codes as the author originally started with, or you could experiment with a plugin like top answer suggests.
Writing your own script will give you more control, but implementation might take less time using a plugin.

qgoehrig
- 195
- 1
- 2
- 15
-
1I am reading the serenity report in script block and taking decision accordingly. It worked for me like a charm. Thank you. – Swanand Gajendragadkar May 28 '20 at 07:07