Skip to content

Parallel stages show as complete when only 1 stage complete #447

@The-Jonsey

Description

@The-Jonsey

Jenkins and plugins versions report

Environment
println("Jenkins: ${Jenkins.instance.getVersion()}")
println("OS: ${System.getProperty('os.name')} - ${System.getProperty('os.version')}")
println("Java: ${System.getProperty('java.version')} - ${System.getProperty('java.vm.vendor')} (${System.getProperty('java.vm.name')})")
println "---"

Jenkins.instance.pluginManager.plugins
.collect()
.sort { it.getShortName() }
.each {
  plugin -> println("${plugin.getShortName()}:${plugin.getVersion()}")
}
return

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux

Reproduction steps

  1. Write a pipeline with parallel stages i.e
pipeline {
    agent any

    stages {
        stage('Parallel Stages') {
            parallel {
                stage('Fast Stage') {
                    steps {
                        sh 'sleep 5'
                    }
                }
                stage('Slow Stage') {
                    steps {
                        sh 'sleep 60'
                    }
                }
            }
        }
    }
}
  1. Run said pipeline and preview on the job page with the list of builds, rather than the individual build graph

Expected Results

The graph view to show some indication of stages still running, as this can make builds look like they are complete, while they are still running

Actual Results

Job page showing build appears to be complete
Screenshot 2024-05-30 at 10-16-27 Parallel Looks Like Complete Pipeline-Graph-View Jenkins
Build graph showing build is still running
Screenshot 2024-05-30 at 10-16-36 Graph Parallel Looks Like Complete Pipeline-Graph-View #3 Jenkins

Anything else?

No response

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions