Separating build failure from test failures

14 views
Skip to first unread message

Cody Konior

unread,
Feb 22, 2017, 12:52:20 AM2/22/17
to Jenkins Users
I'd like to somehow separate on the Jenkins page the difference between jobs which failed due to a build/script error versus jobs which had failing tests.

I use the PowerShell plugin and can set the overall pass/fail based on that - sure. But then I lose visibility on the front page that a job had failing tests within it.

Does anyone have a workaround?

I saw a plugin a while ago that could add Pass/Fail counts (but not indicators) to the front view. But I don't remember the plugin name and it didn't function with Folders (and it was a view, so, it was nigh impossible to replace the All view, as you know how difficult it can be for folders).

Thanks.

Daniel Beck

unread,
Feb 22, 2017, 6:43:49 AM2/22/17
to jenkins...@googlegroups.com

> On 22.02.2017, at 06:52, Cody Konior <co...@codykonior.com> wrote:
>
> I'd like to somehow separate on the Jenkins page the difference between jobs which failed due to a build/script error versus jobs which had failing tests.

Jenkins has the three states Stable/Successful (inconsistently named on the UI), Unstable, and Failed.

Unstable means it built successfully, but has failing tests.

Failed mean it didn't build successfully.

So you'll need to instruct your build tool to not fail the build when tests fail, and instead (either through a plugin providing integration with your build tool, or e.g. generic log parsing) set the build status to Unstable.

Reply all
Reply to author
Forward
0 new messages