Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
Give following pipeline script, b1 branch finishes immediately and b2 is not completed yet (waiting for input). I determine branch's completion from a branch's end FlowNode and calling FlowNode.isRunning() returns true instead false as its already completed. This makes BlueOcean API returns b1 as running whereas its already been completed.
node { stage("hey") { echo "hello from hey" } stage("par") { parallel ( "b1" : { echo 'hello from b1' }, "b2" : { def branchInput = input message: 'Please input branch to test against', parameters: [[$class: 'StringParameterDefinition', defaultValue: 'master', description: '', name: 'branch']] echo "BRANCH NAME: ${branchInput}" } ) } stage("ho") { echo "hello from ho" } }
Attachments
Issue Links
- is blocking
-
JENKINS-40934 LogActionImpl listener inefficient; poor performance queuing large parallel workloads
-
- Resolved
-
- is related to
-
JENKINS-26139 FlowNode.isRunning should also check whether the execution is complete
-
- Resolved
-
- relates to
-
JENKINS-45553 Parallel pipeline execution scales poorly
-
- Closed
-
-
JENKINS-38398 Parallel branches do not show completed in the stage graph when the branch is finished
-
- Closed
-
- links to
Code changed in jenkins
User: Jesse Glick
Path:
src/main/java/org/jenkinsci/plugins/workflow/graph/FlowNode.java
http://jenkins-ci.org/commit/workflow-api-plugin/5deffd7f6f73638576ddcacc2890e8dfd3438408
Log:
JENKINS-38223Introduced FlowNode.isActive.