-
Bug
-
Resolution: Unresolved
-
Major
-
Jenkins version : 2.332.2
blueocean : 1.25.3
OS : macOS (Big Sur)
Hi,
I am encountering a strange issue and hope I can get some help. Below is a test jenkins pipeline code which can best demonstrate the issue i am seeing.
Stage '1p' executes well with both stage 'a' and 'b' executing in parallel ( stage 'one' and 'two' are sequential stage in 'a' and 'b' ). When Stage '2p' starts, the parallel rendering of stage '1p' (yes, previous stage) flattens out as a single bubble ( parallel view disappears) until '2p' is completed. Once stage '2p' is completed, the state '1p' goes back to parallel stage view. I am not sure if this is a bug or I am missing something. The use case I have is stage '2p' has an input step waiting for QA approval, which could be waiting for several hours and the rest of the pipeline is being rendered as a straight line view, even though there are a lot of stages with parallel execution.
fp = [:]
sp = [:]
pipeline {
agent any
stages {
stage('1p') {
steps {
script {
['a','b'].each
parallel fp
}
}
}
stage('2p') {
steps {
script {
['c'].each
parallel sp
}
}
}
}
}
def gen_fp(item) {
return {
stage(item) {
stage('one')
stage('two')
{ sleep 3 echo "two" } }
}
}