[JIRA] (JENKINS-37663) Build is not marked as UNSTABLE even though failures are found

2 views
Skip to first unread message

me@joshma.com (JIRA)

unread,
Aug 24, 2016, 6:04:01 PM8/24/16
to jenkinsc...@googlegroups.com
Joshua Ma created an issue
 
Jenkins / Bug JENKINS-37663
Build is not marked as UNSTABLE even though failures are found
Issue Type: Bug Bug
Assignee: Unassigned
Components: junit-plugin
Created: 2016/Aug/24 10:03 PM
Environment: Jenkins 2.19
junit 1.18
Labels: plugins
Priority: Major Major
Reporter: Joshua Ma

I'm using JUnitResultsArchive to record test results, and I'm seeing a weird bug where there are failures reported but the build is not marked unstable.

This is via Jenkins pipeline, and immediately after the step, I'm echoing the build result:

step([$class: 'JUnitResultArchiver', testResults: 'build/xunit.xml'])
echo ">>> BUILD RESULT ${currentBuild.result}"

I can confirm that a test failed in that step, and the result printed is ">>> BUILD RESULT null"

This doesn't always happen - in some other runs, the result is UNSTABLE as expected.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

global@tolar.ws (JIRA)

unread,
Oct 26, 2016, 3:38:01 PM10/26/16
to jenkinsc...@googlegroups.com

me@joshma.com (JIRA)

unread,
Dec 29, 2016, 6:08:01 PM12/29/16
to jenkinsc...@googlegroups.com

This is still affecting us - I have two builds (pipeline runs) back to back, where the second build does not change anything other than static images (not test related). Both builds have 1 test failing, but the first is SUCCESS while the second is UNSTABLE.

girardc79@gmail.com (JIRA)

unread,
Feb 8, 2017, 9:55:02 PM2/8/17
to jenkinsc...@googlegroups.com

girardc79@gmail.com (JIRA)

unread,
Feb 8, 2017, 9:59:02 PM2/8/17
to jenkinsc...@googlegroups.com
Chris Girard commented on Bug JENKINS-37663
 
Re: Build is not marked as UNSTABLE even though failures are found

We are also seeing this in our builds. We are using the multi-branch pipeline (i.e. Jenkinsfile) with the "junit" step. We have also seen back-to-back builds where the actual failing tests did not change, but one build was marked unstable while the other was passing.

Peculiar symptom: On the build status page for such builds, note the "Test Result (no failures)" followed immediately by the "Show All Failed Tests >>>" link:

Clicking the Show All link expanded to the 39 failing tests we had for that build.

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:25:09 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages