[JIRA] (JENKINS-43995) Individual Pipeline steps and stages/blocks should have Result statuses

1 view
Skip to first unread message

vivek.pandey@gmail.com (JIRA)

unread,
Feb 13, 2018, 10:12:04 AM2/13/18
to jenkinsc...@googlegroups.com
Vivek Pandey assigned an issue to Sam Van Oort
 
Jenkins / Improvement JENKINS-43995
Individual Pipeline steps and stages/blocks should have Result statuses
Change By: Vivek Pandey
Assignee: Sam Van Oort
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

joerg.schwaerzler@infineon.com (JIRA)

unread,
Feb 14, 2018, 9:15:04 AM2/14/18
to jenkinsc...@googlegroups.com
Joerg Schwaerzler commented on Improvement JENKINS-43995
 
Re: Individual Pipeline steps and stages/blocks should have Result statuses

Sam Van Oort: Would be great to know the place where you described the workaround so I can have a look. Could you please post a link. Thanks.

vivek.pandey@gmail.com (JIRA)

unread,
Feb 27, 2018, 12:16:03 AM2/27/18
to jenkinsc...@googlegroups.com
Vivek Pandey updated an issue
 
Change By: Vivek Pandey
Sprint: Pipeline - July/August, Pipeline - October, Pipeline - December March 2018

jdumay@cloudbees.com (JIRA)

unread,
Feb 27, 2018, 7:25:03 PM2/27/18
to jenkinsc...@googlegroups.com
James Dumay updated an issue
Change By: James Dumay
*Problem*
Currently, the only status we have for an individual {{FlowNode}} (be it representing an atomic {{Step}} or a block) is whether it has an {{ErrorAction}}. Blue Ocean would like to be able to visualize other {{Result}} types (such as {{UNSTABLE}} and {{ABORTED}}) distinctly, as well as to be able to have all steps/blocks get marked as {{UNSTABLE}} or {{ABORTED}} if only one step/block actually is unstable or was aborted.

*Approach*
We want to have a shared understanding of how the status system should work before we attempt a long refactor of the Pipeline status system. The first goal is to build a throwaway simulator that we can use to describe a Pipeline, the status of its steps and what the resulting stage, parallel and pipeline status should be. This is used to develop a set of scenarios that will be used to define the specification for the refactor.

Before moving onto the real changes there must be consensus among the team that this is the desired behaviour.

yly@payrailz.com (JIRA)

unread,
Apr 5, 2018, 3:40:04 PM4/5/18
to jenkinsc...@googlegroups.com
Yin Ly commented on Improvement JENKINS-43995
 
Re: Individual Pipeline steps and stages/blocks should have Result statuses

I found this workaround: https://stackoverflow.com/a/47794397

It took a little bit to work out for my case, but it ends up giving me what I need - stage failures look different from the successful ones.  This is an acceptable short term workaround for me in order to get a good quick glance of stages which are failing.   

bsuryanaidu@gmail.com (JIRA)

unread,
Apr 20, 2018, 4:56:03 PM4/20/18
to jenkinsc...@googlegroups.com

Yin Ly: The workaround you mentioned does it mark stages in parallel also as failed and not the entire pipeline. Can you also provide us your workaround if possible. Thanks in advance.

bsuryanaidu@gmail.com (JIRA)

unread,
Apr 20, 2018, 4:57:04 PM4/20/18
to jenkinsc...@googlegroups.com
Yin Ly y...@payrailz.com : The workaround you mentioned does it mark stages in parallel also as failed and not the entire pipeline. Can you also provide us your workaround if possible. Thanks in advance.

bsuryanaidu@gmail.com (JIRA)

unread,
Apr 20, 2018, 4:57:22 PM4/20/18
to jenkinsc...@googlegroups.com
y...@payrailz.com [~yinly] : The workaround you mentioned does it mark stages in parallel also as failed and not the entire pipeline. Can you also provide us your workaround if possible. Thanks in advance.

jbriden@cloudbees.com (JIRA)

unread,
Apr 23, 2018, 7:37:07 PM4/23/18
to jenkinsc...@googlegroups.com

yly@payrailz.com (JIRA)

unread,
Apr 24, 2018, 11:39:04 AM4/24/18
to jenkinsc...@googlegroups.com
Yin Ly commented on Improvement JENKINS-43995
 
Re: Individual Pipeline steps and stages/blocks should have Result statuses

Surya Bharath Bommadevara, here is my workaround:  https://gist.github.com/yin042018/f7a65e9e9b93c828377ab939c5fbd6b6

My use case is running rspec regression tests.

I have not tried with parallel stages for different reasons.  I am doubtful it would work since I had to wrap a try around each stage.  It looks like parallel should wrap stages.  

 

 

zougi.fr@gmail.com (JIRA)

unread,
Jun 27, 2018, 6:38:03 AM6/27/18
to jenkinsc...@googlegroups.com

Hello Sam Van Oort, I don't really understand for which sprint this improvement is planned for. Last April? This issue blocks issue JENKINS-39203 which is the second most voted for open Bug on this Jira. We are a lot actively waiting for resolution! https://issues.jenkins-ci.org/browse/JENKINS-39203?jql=votes%20>%3D%2099%20AND%20Type%20%3D%20Bug%20AND%20status%20!%3D%20Closed%20AND%20status%20!%3D%20Resolved

This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

zougi.fr@gmail.com (JIRA)

unread,
Jun 27, 2018, 6:39:03 AM6/27/18
to jenkinsc...@googlegroups.com
Frederic Rousseau edited a comment on Improvement JENKINS-43995
Hello [~svanoort], I don't really understand for which sprint this improvement is planned for. Last April? This issue blocks issue JENKINS-39203 which is the second most voted for open Bug on this Jira. We are a lot actively waiting for resolution!  [jql search on votes >= 99 AND Type = Bug AND status != Closed AND status != Resolved| https://issues.jenkins-ci.org/browse/JENKINS-39203?jql=votes%20>%3D%2099%20AND%20Type%20%3D%20Bug%20AND%20status%20!%3D%20Closed%20AND%20status%20!%3D%20Resolved ]

Saad.Azam@magna.com (JIRA)

unread,
Apr 17, 2019, 8:24:06 AM4/17/19
to jenkinsc...@googlegroups.com
Saad Azam updated an issue
 
Change By: Saad Azam
Attachment: image-2019-04-17-14-23-53-010.png
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

Saad.Azam@magna.com (JIRA)

unread,
Apr 17, 2019, 8:24:26 AM4/17/19
to jenkinsc...@googlegroups.com
Saad Azam commented on Improvement JENKINS-43995
 
Re: Individual Pipeline steps and stages/blocks should have Result statuses

In my humble opinion this is one of the basic features missing in the pipeline and should be on high priority. All the solutions that have been described previously as workarounds such as using try-catch do not work for a declarative pipeline.

dnusbaum@cloudbees.com (JIRA)

unread,
May 15, 2019, 2:07:09 PM5/15/19
to jenkinsc...@googlegroups.com
Devin Nusbaum resolved as Fixed
 

As of Pipeline: API 2.34, Pipeline steps are able to use the new WarningAction API to identify that some non-fatal event occurred during the execution of a step but execution continued normally. Visualizations are able to access this new action and use them to change how visualizations are displayed. See this comment on JENKINS-39203 for additional details.

Change By: Devin Nusbaum
Status: Open Resolved
Assignee: Sam Van Oort Devin Nusbaum
Resolution: Fixed
Released As: Pipeline: API 2.34
Reply all
Reply to author
Forward
0 new messages