Warm tip: This article is reproduced from stackoverflow.com, please click
cucumber jenkins jenkins-declarative-pipeline jenkins-pipeline

Jenkins cucumber reports

发布于 2020-04-22 11:04:42

I'm using Cucumber reports plugin in my declarative pipeline like that:

cucumber '**/cucumber.json'

I'm able to check if some tests fail through link on the sidebar, but do I need to do something to mark the stage containing cucumber.json check as failed if some cucumber reports are failed? Because the problem is the build and stage are both green and successful despite there are some failed cucumber reports.

Jenkins version is 2.176.3

Cucumber reports version is 4.10.0

Questioner
RedMurloc
Viewed
43
RedMurloc 2020-02-07 23:56

It is possible to set BuildStatus : 'FAILURE' to mark build as failed if a report marked as failed.

cucumber fileIncludePattern: '**/cucumber.json', buildStatus: 'FAILURE'