-
Bug
-
Resolution: Fixed
-
Major
-
None
-
-
tethys
Problem
If you have a parallel declaration, but no stages, in classic stage view nothing shows up (you just have to look at log). In blue ocean, you get a single node (stage) which shows only the first branch.
Expected behavior: should show 3 parallel branches (ideally)
Example
parallel 'branch1': { node('node1') { stage('Setup') { checkout([details removed]) } stage('Unit and Integration Tests') { bat '"my command to execute tests"' } } }, 'branch2': { node('node2') { stage('Setup') { checkout([details removed]) } stage('Unit and Integration Tests') { bat '"my command to execute tests"' } } }
Workaround
Simply wrap the parallels in a stage and it will work correctly.
stage('Build and Test') { parallel 'branch1': { node('node1') { stage('Setup') { checkout([details removed]) } stage('Unit and Integration Tests') { bat '"my command to execute tests"' } } }, 'branch2': { node('node2') { stage('Setup') { checkout([details removed]) } stage('Unit and Integration Tests') { bat '"my command to execute tests"' } } } }
It will then be visualised like:
Other examples
Parallel defined between stages but not nested in its own stage
node { stage('Checkout') { checkout scm } } parallel linux: { node('Linux') { stage('Build') { echo 'Build linux' } stage('Tests') { echo 'Tests linux' } stage('Static analysis') { echo 'Static analysis linux' } } }, windows: { node('Windows') { stage('Build') { echo 'Build windows' } stage('Tests') { echo 'Tests windows' } stage('Static analysis') { echo 'Static analysis windows' } } }
- is duplicated by
-
JENKINS-40458 Parallel pipeline not rendering properly
-
- Closed
-
- is related to
-
JENKINS-53751 The same parallel scripted and declarative pipelines rendered differently
-
- Resolved
-
- relates to
-
JENKINS-38442 View sequential stages in the pipeline visualization graph
-
- Closed
-
- links to
[JENKINS-39464] Pipeline with parallel and no stages does not get visualised correctly
Description |
Original:
If you have a parallel declaration, but no stages, in classic stage view nothing shows up (you just have to look at log). In blue ocean, you get a single node (stage) which shows only the first branch. Expected behavior: should show 3 parallel branches (ideally) The pipeline below results in this visualisation: !Screen Shot 2016-11-03 at 12.24.11 pm.png|thumbnail! The pipeline: {noformat} parallel(lint: { node { echo "yeah" } }, verifyZoneFiles: { node { echo "yeah" } }, rspec: { node { echo "yeah" } }, ) {noformat} |
New:
If you have a parallel declaration, but no stages, in classic stage view nothing shows up (you just have to look at log). In blue ocean, you get a single node (stage) which shows only the first branch. Expected behavior: should show 3 parallel branches (ideally) The pipeline below results in this visualisation: !Screen Shot 2016-11-03 at 12.24.11 pm.png|thumbnail! The pipeline: {noformat} parallel(lint: { node { echo "yeah" } }, verifyZoneFiles: { node { echo "yeah" } }, rspec: { node { echo "yeah" } }, ) {noformat} Suggested solution: in this case put a virtual "stage('parrallel') {...}" around it - then the visualisation is correct (3 dots in a column) |
Epic Link | New: JENKINS-35759 [ 171771 ] |
Sprint | New: tasman [ 136 ] |
Link |
New:
This issue duplicates |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Resolution | Original: Duplicate [ 3 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |
Description |
Original:
If you have a parallel declaration, but no stages, in classic stage view nothing shows up (you just have to look at log). In blue ocean, you get a single node (stage) which shows only the first branch. Expected behavior: should show 3 parallel branches (ideally) The pipeline below results in this visualisation: !Screen Shot 2016-11-03 at 12.24.11 pm.png|thumbnail! The pipeline: {noformat} parallel(lint: { node { echo "yeah" } }, verifyZoneFiles: { node { echo "yeah" } }, rspec: { node { echo "yeah" } }, ) {noformat} Suggested solution: in this case put a virtual "stage('parrallel') {...}" around it - then the visualisation is correct (3 dots in a column) |
New:
If you have a parallel declaration, but no stages, in classic stage view nothing shows up (you just have to look at log). In blue ocean, you get a single node (stage) which shows only the first branch. Expected behavior: should show 3 parallel branches (ideally) The pipeline below results in this visualisation: !Screen Shot 2016-11-03 at 12.24.11 pm.png|thumbnail! The pipeline: {noformat} parallel(lint: { node { echo "yeah" } }, verifyZoneFiles: { node { echo "yeah" } }, rspec: { node { echo "yeah" } }, ) {noformat} *Suggested solution* * Pipeline beings with a start dot (as done in * Lines off of the start dot connected to the parallels |
Sprint | Original: tasman [ 136 ] | New: frank [ 156 ] |
Sprint | Original: frank [ 156 ] | New: tethys [ 161 ] |
Rank | New: Ranked lower |