-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: blueocean-plugin
The scenario works fine for the scripted pipeline but the same fails in the declarative pipeline
scripted pipeline
{{def j=[:]
node \{
[
[name: "api", folder: "api"],
[name: "ui", folder: "ui"]
].each { m ->
j[m.name] = {
stage('a') {
echo "A"
}
stage('b') \{
echo "B"
}
}
}
parallel j
}}}
 
declarative pipeline
Â
{{pipeline \{
agent any;
stages {
stage("parallel") {
steps {
script {
def j=[:]
[
[name: "api", folder: "api"],
[name: "ui", folder: "ui"]
].each { m ->
j[m.name] = {
stage('a') {
echo "A"
}
stage('b') \{
echo "B"
}
}
}
parallel j
}
}
}
}
}}}

All the stages run but are not displayed.
See related Stackoverflow question.
Seems related to JENKINS-49050