-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 2.89.2
BlueOcean 1.3.5
-
-
Blue Ocean 1.6 - beta 2, Blue Ocean - 1.6 - beta 4
In a pipeline with two parallel stages where one stage is skipped BlueOcean shows "Waiting for run to start", although the other stage produces log outputs. (See Waiting.PNG)
It seems like the skipped stage is selected by default. However, there is no output.
If there is an additional stage after the parallel stages and the pipeline reaches this stage, the pipeline is visualized properly. However, if you click on the skipped stage the message "Waiting for a run to start" is shown again.
Steps to reproduce:
Execute the following pipeline:
pipeline { agent any options { timeout(time: 120, unit: 'MINUTES') timestamps() skipDefaultCheckout() } stages { stage('Parallel Stage') { parallel { stage("Executed Stage") { steps { script { for(i=0; i<1000;i++){ echo "Temp" sleep 1 } } } } stage("Skipped Stage") { when { expression { false } } steps { echo "I am skipped" } } } } } }
coervivek There is an issue in the rest api. While the stages are executing PIpelineStepVisitor.currentStage is always set to be a stage that is skipped for conditional. therefore it does not add any steps. But if you cancel the job, this is no longer the case. I'm stuck on this, I don't know enough about how this works.