[JIRA] (JENKINS-61591) Using Stage view with mixed in/out of stage actions causes the build status to be wrong

16 views
Skip to first unread message

ataylor@cloudbees.com (JIRA)

unread,
Mar 19, 2020, 12:44:02 PM3/19/20
to jenkinsc...@googlegroups.com
Alex Taylor created an issue
 
Jenkins / Bug JENKINS-61591
Using Stage view with mixed in/out of stage actions causes the build status to be wrong
Issue Type: Bug Bug
Assignee: Sam Van Oort
Components: pipeline-stage-view-plugin
Created: 2020-03-19 16:43
Priority: Minor Minor
Reporter: Alex Taylor

Issue:
In declarative when you have a series of stages with one action outside of those stages that fails, it will cause the stage view status (the blue/red ball on the left side of the view) to show the incorrect status of the build.

Steps to reproduce:
Create a pipeline with this as the definition:

pipeline {
    agent any 
    checkout
    stages {
        stage('Build') { 
            steps {
               echo "hello"
            }
        }
        stage('Test') { 
            steps {
               echo "hello"
            }
        }
        stage('Deploy') { 
            steps {
               echo "hello"
            }
        }
    }
}

Run that code and look at the stage view to see that it appears the build was successful but it clearly failed on the build status screen on the left.

Expected results:
The stage view page correctly shows the build status being failed.

The biggest issue with this is that if a build fails to checkout its Jenkinsfile it will do this same thing which causes a problem where the build looks successful when it actually wasn't

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

ataylor@cloudbees.com (JIRA)

unread,
Mar 19, 2020, 12:45:02 PM3/19/20
to jenkinsc...@googlegroups.com
Alex Taylor updated an issue
Change By: Alex Taylor
Attachment: Screen Shot 2020-03-19 at 12.43.38 PM.png

ataylor@cloudbees.com (JIRA)

unread,
Mar 19, 2020, 12:45:03 PM3/19/20
to jenkinsc...@googlegroups.com
Alex Taylor updated an issue
Issue:
In declarative when you have a series of stages with one action outside of those stages that fails, it will cause the stage view status (the blue/red ball on the left side of the view) to show the incorrect status of the build.

Steps to reproduce:
Create a pipeline with this as the definition:
{code:java}

pipeline {
    agent any
    checkout
    stages {
        stage('Build') {
            steps {
               echo "hello"
            }
        }
        stage('Test') {
            steps {
               echo "hello"
            }
        }
        stage('Deploy') {
            steps {
               echo "hello"
            }
        }
    }
}
{code}

Run that code and look at the stage view to see that it appears the build was successful but it clearly failed on the build status screen on the left.
Build 203 looks correct and build 204 is the one with the incorrect status indicator:
!Screen Shot 2020-03-19 at 12.43.38 PM.png|thumbnail!

Expected results:
The stage view page correctly shows the build status being failed.

The biggest issue with this is that if a build fails to checkout its Jenkinsfile it will do this same thing which causes a problem where the build looks successful when it actually wasn't

dnusbaum@cloudbees.com (JIRA)

unread,
Mar 24, 2020, 1:03:02 PM3/24/20
to jenkinsc...@googlegroups.com

ataylor@cloudbees.com (JIRA)

unread,
Mar 24, 2020, 1:09:03 PM3/24/20
to jenkinsc...@googlegroups.com

Devin Nusbaum Always been a problem with declarative and stage view as far back as I can tell. It does not replicate with scripted syntax in any way I have tried locally

alexanderrtaylor@gmail.com (JIRA)

unread,
Apr 27, 2020, 11:15:03 PM4/27/20
to jenkinsc...@googlegroups.com

alexanderrtaylor@gmail.com (JIRA)

unread,
Apr 27, 2020, 11:16:04 PM4/27/20
to jenkinsc...@googlegroups.com

prakash.gandhi.be@outlook.com (JIRA)

unread,
Apr 27, 2020, 11:37:04 PM4/27/20
to jenkinsc...@googlegroups.com

prakash.gandhi.be@outlook.com (JIRA)

unread,
Apr 27, 2020, 11:37:04 PM4/27/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages