[JIRA] (JENKINS-60839) Use the new PipelineAPI to correctly mark the right stage as unstable if tests fail

1 view
Skip to first unread message

r.baeriswyl@gmail.com (JIRA)

unread,
Jan 22, 2020, 8:57:02 AM1/22/20
to jenkinsc...@googlegroups.com
Roman Bäriswyl created an issue
 
Jenkins / Improvement JENKINS-60839
Use the new PipelineAPI to correctly mark the right stage as unstable if tests fail
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: nunit-plugin
Created: 2020-01-22 13:56
Priority: Major Major
Reporter: Roman Bäriswyl

Currently, when any of the tests fail, the whole build is marked as unstable without further incofmation (happens probably here)
Now that there is a new API which passes more information about the failed step. That change is documented here.
So the nunit plugin should be adjusted so that it can be displayed, where the build got unstable.
In JUnit, this PR introduced this change. This PR might be used as idea on how to implement this.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

r.baeriswyl@gmail.com (JIRA)

unread,
Jan 22, 2020, 9:33:02 AM1/22/20
to jenkinsc...@googlegroups.com
Roman Bäriswyl commented on Improvement JENKINS-60839
 
Re: Use the new PipelineAPI to correctly mark the right stage as unstable if tests fail

I could probably do it myself and open a PR but I miss some more background. The biggest problem is that in nunit-plugin at the specific place, I only see a `build (Run<?, ?>)` object. And it is based on `SimpleBuildStep` where I do not see the `getContext` method to get the `node` where I should add the `addOrReplaceAction(new WarningAction(Result.UNSTABLE)`. If someone could give me some hints, I could create a PR myself for this.

Reply all
Reply to author
Forward
0 new messages