-
Bug
-
Resolution: Fixed
-
Major
-
None
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" } }
- 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
[JENKINS-38223] FlowNode.isRunning is not very useful
Link |
New:
This issue blocks |
Link |
Original:
This issue blocks |
Link |
New:
This issue relates to |
Javadoc does claim
but I can see no way that could ever have been implemented, since the BlockEndNode for parallel is not constructed until after all branches have completed. So I guess the Javadoc needs to be edited to stop making that claim.
The use case you cite makes no sense. If the branch has a BlockEndNode, then by definition it has completed.