Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
-
-
Blue Ocean 1.4 - beta 3
Description
Problem
Skipped parallel stages show up as "successful" rather than "not built".
They also do not have the expected visual treatment (e.g. fadeout the connected line).
Jenkinsfile
pipeline { agent any stages { stage('Run Tests') { parallel { stage('Test On Windows') { when { branch 'cake' } steps { echo 'hello world' } } stage('Test On Linux') { steps { echo 'hello world' } } } } } }
Log
Started by user admin [Pipeline] node Running on master in /Users/jdumay/.jenkins/workspace/JENKINS-47219 [Pipeline] { [Pipeline] stage [Pipeline] { (Run Tests) [Pipeline] parallel [Pipeline] [Test On Windows] { (Branch: Test On Windows) [Pipeline] [Test On Linux] { (Branch: Test On Linux) [Pipeline] [Test On Windows] stage [Pipeline] [Test On Windows] { (Test On Windows) [Pipeline] [Test On Linux] stage [Pipeline] [Test On Linux] { (Test On Linux) Stage 'Test On Windows' skipped due to when conditional [Pipeline] [Test On Windows] } [Pipeline] [Test On Windows] // stage [Pipeline] [Test On Windows] } [Pipeline] [Test On Linux] echo [Test On Linux] hello world [Pipeline] [Test On Linux] } [Pipeline] [Test On Linux] // stage [Pipeline] [Test On Linux] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS
Original Request
If conditional step in parallelĀ is skipped, it is still rendered as executed, just without steps.
See attached images.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Attachment | expected2.png [ 39901 ] |
Description |
If conditional step in parallel is skipped, it is still rendered as executed, just without steps. See attached images. |
*Log* {noformat} Started by user admin [Pipeline] node Running on master in /Users/jdumay/.jenkins/workspace/ [Pipeline] { [Pipeline] stage [Pipeline] { (Run Tests) [Pipeline] parallel [Pipeline] [Test On Windows] { (Branch: Test On Windows) [Pipeline] [Test On Linux] { (Branch: Test On Linux) [Pipeline] [Test On Windows] stage [Pipeline] [Test On Windows] { (Test On Windows) [Pipeline] [Test On Linux] stage [Pipeline] [Test On Linux] { (Test On Linux) Stage 'Test On Windows' skipped due to when conditional [Pipeline] [Test On Windows] } [Pipeline] [Test On Windows] // stage [Pipeline] [Test On Windows] } [Pipeline] [Test On Linux] echo [Test On Linux] hello world [Pipeline] [Test On Linux] } [Pipeline] [Test On Linux] // stage [Pipeline] [Test On Linux] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS {noformat} *Original Request* If conditional step in parallel is skipped, it is still rendered as executed, just without steps. See attached images. |
Description |
*Log* {noformat} Started by user admin [Pipeline] node Running on master in /Users/jdumay/.jenkins/workspace/ [Pipeline] { [Pipeline] stage [Pipeline] { (Run Tests) [Pipeline] parallel [Pipeline] [Test On Windows] { (Branch: Test On Windows) [Pipeline] [Test On Linux] { (Branch: Test On Linux) [Pipeline] [Test On Windows] stage [Pipeline] [Test On Windows] { (Test On Windows) [Pipeline] [Test On Linux] stage [Pipeline] [Test On Linux] { (Test On Linux) Stage 'Test On Windows' skipped due to when conditional [Pipeline] [Test On Windows] } [Pipeline] [Test On Windows] // stage [Pipeline] [Test On Windows] } [Pipeline] [Test On Linux] echo [Test On Linux] hello world [Pipeline] [Test On Linux] } [Pipeline] [Test On Linux] // stage [Pipeline] [Test On Linux] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS {noformat} *Original Request* If conditional step in parallel is skipped, it is still rendered as executed, just without steps. See attached images. |
*Screenshot* *Jenkinsfile* {code} pipeline { agent any stages { stage('Run Tests') { parallel { stage('Test On Windows') { when { branch 'cake' } steps { echo 'hello world' } } stage('Test On Linux') { steps { echo 'hello world' } } } } } } {code} *Log* {noformat} Started by user admin [Pipeline] node Running on master in /Users/jdumay/.jenkins/workspace/ [Pipeline] { [Pipeline] stage [Pipeline] { (Run Tests) [Pipeline] parallel [Pipeline] [Test On Windows] { (Branch: Test On Windows) [Pipeline] [Test On Linux] { (Branch: Test On Linux) [Pipeline] [Test On Windows] stage [Pipeline] [Test On Windows] { (Test On Windows) [Pipeline] [Test On Linux] stage [Pipeline] [Test On Linux] { (Test On Linux) Stage 'Test On Windows' skipped due to when conditional [Pipeline] [Test On Windows] } [Pipeline] [Test On Windows] // stage [Pipeline] [Test On Windows] } [Pipeline] [Test On Linux] echo [Test On Linux] hello world [Pipeline] [Test On Linux] } [Pipeline] [Test On Linux] // stage [Pipeline] [Test On Linux] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS {noformat} *Original Request* If conditional step in parallel is skipped, it is still rendered as executed, just without steps. See attached images. |
Attachment | problem.png [ 39918 ] |
Attachment | problem.png [ 39919 ] |
Description |
*Screenshot* *Jenkinsfile* {code} pipeline { agent any stages { stage('Run Tests') { parallel { stage('Test On Windows') { when { branch 'cake' } steps { echo 'hello world' } } stage('Test On Linux') { steps { echo 'hello world' } } } } } } {code} *Log* {noformat} Started by user admin [Pipeline] node Running on master in /Users/jdumay/.jenkins/workspace/ [Pipeline] { [Pipeline] stage [Pipeline] { (Run Tests) [Pipeline] parallel [Pipeline] [Test On Windows] { (Branch: Test On Windows) [Pipeline] [Test On Linux] { (Branch: Test On Linux) [Pipeline] [Test On Windows] stage [Pipeline] [Test On Windows] { (Test On Windows) [Pipeline] [Test On Linux] stage [Pipeline] [Test On Linux] { (Test On Linux) Stage 'Test On Windows' skipped due to when conditional [Pipeline] [Test On Windows] } [Pipeline] [Test On Windows] // stage [Pipeline] [Test On Windows] } [Pipeline] [Test On Linux] echo [Test On Linux] hello world [Pipeline] [Test On Linux] } [Pipeline] [Test On Linux] // stage [Pipeline] [Test On Linux] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS {noformat} *Original Request* If conditional step in parallel is skipped, it is still rendered as executed, just without steps. See attached images. |
*Problem* Skipped parallel stages show up as "successful" rather than "not built". They also do not have the expected treatment. *Screenshot* !problem.png|thumbnail! *Jenkinsfile* {code} pipeline { agent any stages { stage('Run Tests') { parallel { stage('Test On Windows') { when { branch 'cake' } steps { echo 'hello world' } } stage('Test On Linux') { steps { echo 'hello world' } } } } } } {code} *Log* {noformat} Started by user admin [Pipeline] node Running on master in /Users/jdumay/.jenkins/workspace/ [Pipeline] { [Pipeline] stage [Pipeline] { (Run Tests) [Pipeline] parallel [Pipeline] [Test On Windows] { (Branch: Test On Windows) [Pipeline] [Test On Linux] { (Branch: Test On Linux) [Pipeline] [Test On Windows] stage [Pipeline] [Test On Windows] { (Test On Windows) [Pipeline] [Test On Linux] stage [Pipeline] [Test On Linux] { (Test On Linux) Stage 'Test On Windows' skipped due to when conditional [Pipeline] [Test On Windows] } [Pipeline] [Test On Windows] // stage [Pipeline] [Test On Windows] } [Pipeline] [Test On Linux] echo [Test On Linux] hello world [Pipeline] [Test On Linux] } [Pipeline] [Test On Linux] // stage [Pipeline] [Test On Linux] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS {noformat} *Original Request* If conditional step in parallel is skipped, it is still rendered as executed, just without steps. See attached images. |
Description |
*Problem* Skipped parallel stages show up as "successful" rather than "not built". They also do not have the expected treatment. *Screenshot* !problem.png|thumbnail! *Jenkinsfile* {code} pipeline { agent any stages { stage('Run Tests') { parallel { stage('Test On Windows') { when { branch 'cake' } steps { echo 'hello world' } } stage('Test On Linux') { steps { echo 'hello world' } } } } } } {code} *Log* {noformat} Started by user admin [Pipeline] node Running on master in /Users/jdumay/.jenkins/workspace/ [Pipeline] { [Pipeline] stage [Pipeline] { (Run Tests) [Pipeline] parallel [Pipeline] [Test On Windows] { (Branch: Test On Windows) [Pipeline] [Test On Linux] { (Branch: Test On Linux) [Pipeline] [Test On Windows] stage [Pipeline] [Test On Windows] { (Test On Windows) [Pipeline] [Test On Linux] stage [Pipeline] [Test On Linux] { (Test On Linux) Stage 'Test On Windows' skipped due to when conditional [Pipeline] [Test On Windows] } [Pipeline] [Test On Windows] // stage [Pipeline] [Test On Windows] } [Pipeline] [Test On Linux] echo [Test On Linux] hello world [Pipeline] [Test On Linux] } [Pipeline] [Test On Linux] // stage [Pipeline] [Test On Linux] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS {noformat} *Original Request* If conditional step in parallel is skipped, it is still rendered as executed, just without steps. See attached images. |
*Problem* Skipped parallel stages show up as "successful" rather than "not built". They also do not have the expected visual treatment (e.g. fadeout the connected line). *Screenshot* !problem.png|thumbnail! *Jenkinsfile* {code} pipeline { agent any stages { stage('Run Tests') { parallel { stage('Test On Windows') { when { branch 'cake' } steps { echo 'hello world' } } stage('Test On Linux') { steps { echo 'hello world' } } } } } } {code} *Log* {noformat} Started by user admin [Pipeline] node Running on master in /Users/jdumay/.jenkins/workspace/ [Pipeline] { [Pipeline] stage [Pipeline] { (Run Tests) [Pipeline] parallel [Pipeline] [Test On Windows] { (Branch: Test On Windows) [Pipeline] [Test On Linux] { (Branch: Test On Linux) [Pipeline] [Test On Windows] stage [Pipeline] [Test On Windows] { (Test On Windows) [Pipeline] [Test On Linux] stage [Pipeline] [Test On Linux] { (Test On Linux) Stage 'Test On Windows' skipped due to when conditional [Pipeline] [Test On Windows] } [Pipeline] [Test On Windows] // stage [Pipeline] [Test On Windows] } [Pipeline] [Test On Linux] echo [Test On Linux] hello world [Pipeline] [Test On Linux] } [Pipeline] [Test On Linux] // stage [Pipeline] [Test On Linux] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS {noformat} *Original Request* If conditional step in parallel is skipped, it is still rendered as executed, just without steps. See attached images. |
Epic Link | JENKINS-43953 [ 181485 ] |
Sprint | Blue Ocean 1.4 - candidates [ 326 ] | |
Priority | Minor [ 4 ] | Major [ 3 ] |
Sprint | Blue Ocean 1.4 - candidates [ 326 ] | Blue Ocean 1.4 - beta 2 [ 416 ] |
Rank | Ranked higher |
Sprint | Blue Ocean 1.4 - beta 3 [ 416 ] | Blue Ocean 1.4 - beta 4 [ 441 ] |
Attachment | image-2017-12-09-02-06-05-091.png [ 40628 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Sprint | Blue Ocean 1.4 - beta 4 [ 441 ] | Blue Ocean 1.4 - beta 3 [ 416 ] |
Assignee | Cliff Meyers [ cliffmeyers ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Summary | Conditional parallel stages are not rendered properly if not skipped | Conditional parallel stages are not rendered properly if skipped |
Remote Link | This issue links to "PR#16 (Web Link)" [ 19504 ] |
Status | In Progress [ 3 ] | In Review [ 10005 ] |
Attachment | 2017-12-28-1-skipped-parallel.png [ 40914 ] |
Attachment | Jenkins-pipeline-failure-skipped-parallel-steps-green.png [ 41030 ] |
Remote Link | This issue links to "PR#1610 (Web Link)" [ 19739 ] |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10005 ] | Resolved [ 5 ] |
Remote Link | This issue links to "Page (Jenkins Wiki)" [ 19853 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |