Jenkins Pipeline is not getting displayed Properly in BlueOcen

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins Pipeline is not getting displayed Properly in BlueOcen

SS-2
Hi Devs,

This is my first post to this forum . We had a requirement to create a pipeline having the below flow.












For the above flow written the code snippet is below 

node('Some Node') {
try{
stage('Start'){
currentBuild.result = 'SUCCESS'
echo "Begin of Pipeline"

}

stage('Checkout and Init'){
//Step 0
parallel (
"Checkout Platform" : {
dir('platform') {
echo "Checkout Platform"
}
},
"Checkout Platform Clover":{
dir('platformclover') {
echo "Checkout Platform Clover"
}
},
"Checkout Platform Sonar":{
dir('platformsonar') {
echo "Checkout Platform Sonar"
}
},
"Checkout Automation Framework":{
dir('automationframework') {
echo "Checkout Automation Framework"
}
},
"Checkout Automation BVT"    :{
dir('automationbvt') {
echo "Checkout Automation BVT"
}
},
"Checkout Automation Server":{
dir('automationserver') {
echo "Checkout Automation Server"
}
},
"Checkout Automation Web":{
dir('automationweb') {
echo "Checkout Automation Web"
}
}

)
//Step 2
echo "Load Properties"

}
stage('Print Change Log'){
//Step 0
echo "Print ChangeLog"

}
stage('Platform_Build') {
//Step 1
 echo "Build Platform"
//Step 2
echo "Copy Platform to Common Stage"

//Step 3
echo "Update Current"
}
parallel (
"Platform_Clover" : {
stage("Platform Clover"){
//Step 1
 echo "Build Platform Clover"
//Step 2
echo "Copy Platform Clover to Common Stage"

//Step 3
echo "Update Current"
}
},

"Automation Build and Deploy" : {  
stage('Platform_Deploy'){
//Step 1 Platform_Deploy
echo "Deploy Platform to Nexus"
}
stage('Automation_Framework_Build'){
//Step 1
  echo "Build Automation Framework"

}
parallel (
"Build_BVT_Automation" : {
 //Step 1
echo "Build Automation BVT"
 
 //Step2
  echo "Build Current Automation BVT"
},
"Build_Web_Automation" : {
//Step 1
echo "Build Automation Web"
 
 //Step2
  echo "Build Current Automation Web"
},
"Build_Server_Automation" : {
 //Step 1
echo "Build Automation Server"
 
 //Step2
  echo "Build Current Automation Server"
}
)
stage('Deploy_Automation_Code') {
//Step 1
echo "Deploy Automation Code"

}
},

"Platform_SonarQube" : {
echo "Build Sonarqube"
}
)
stage('End'){
echo "Complete Platform Pipeline"
}
}catch(Exception e){
currentBuild.result = 'FAILURE'
}
finally{ 
if (currentBuild.result.toString().equals('SUCCESS')){
echo "Create GIT Tag"
}
echo "Send Email Notification"
}
}

The above code is giving something crap in BlueOcean and the stage like "Deploy_Automation_Code" is not seen at all in the UI.
The first node is parallel "AUtomation Build and Deploy" step is showing the echo of two stages.
Using Jenkins Version 2.46.2.Below is the UI which I am getting in BlueOcean




Can anyone give some expert thoughts where I am missing something and any existing defect with already there in BlueOcean. Thanks a ton in Advance

Thanks,
Satbachan

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7b4b500d-ce88-4f04-831e-8a28835c1382%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Pipeline is not getting displayed Properly in BlueOcen

Baptiste MATHUS
Hello, this list is for Jenkins core and plugins *development* itself. So please use the users mailing list instead.

Thank you.

Le 16 août 2017 14:21, "Satbachan Singh" <[hidden email]> a écrit :
Hi Devs,

This is my first post to this forum . We had a requirement to create a pipeline having the below flow.












For the above flow written the code snippet is below 

node('Some Node') {
try{
stage('Start'){
currentBuild.result = 'SUCCESS'
echo "Begin of Pipeline"

}

stage('Checkout and Init'){
//Step 0
parallel (
"Checkout Platform" : {
dir('platform') {
echo "Checkout Platform"
}
},
"Checkout Platform Clover":{
dir('platformclover') {
echo "Checkout Platform Clover"
}
},
"Checkout Platform Sonar":{
dir('platformsonar') {
echo "Checkout Platform Sonar"
}
},
"Checkout Automation Framework":{
dir('automationframework') {
echo "Checkout Automation Framework"
}
},
"Checkout Automation BVT"    :{
dir('automationbvt') {
echo "Checkout Automation BVT"
}
},
"Checkout Automation Server":{
dir('automationserver') {
echo "Checkout Automation Server"
}
},
"Checkout Automation Web":{
dir('automationweb') {
echo "Checkout Automation Web"
}
}

)
//Step 2
echo "Load Properties"

}
stage('Print Change Log'){
//Step 0
echo "Print ChangeLog"

}
stage('Platform_Build') {
//Step 1
 echo "Build Platform"
//Step 2
echo "Copy Platform to Common Stage"

//Step 3
echo "Update Current"
}
parallel (
"Platform_Clover" : {
stage("Platform Clover"){
//Step 1
 echo "Build Platform Clover"
//Step 2
echo "Copy Platform Clover to Common Stage"

//Step 3
echo "Update Current"
}
},

"Automation Build and Deploy" : {  
stage('Platform_Deploy'){
//Step 1 Platform_Deploy
echo "Deploy Platform to Nexus"
}
stage('Automation_Framework_Build'){
//Step 1
  echo "Build Automation Framework"

}
parallel (
"Build_BVT_Automation" : {
 //Step 1
echo "Build Automation BVT"
 
 //Step2
  echo "Build Current Automation BVT"
},
"Build_Web_Automation" : {
//Step 1
echo "Build Automation Web"
 
 //Step2
  echo "Build Current Automation Web"
},
"Build_Server_Automation" : {
 //Step 1
echo "Build Automation Server"
 
 //Step2
  echo "Build Current Automation Server"
}
)
stage('Deploy_Automation_Code') {
//Step 1
echo "Deploy Automation Code"

}
},

"Platform_SonarQube" : {
echo "Build Sonarqube"
}
)
stage('End'){
echo "Complete Platform Pipeline"
}
}catch(Exception e){
currentBuild.result = 'FAILURE'
}
finally{ 
if (currentBuild.result.toString().equals('SUCCESS')){
echo "Create GIT Tag"
}
echo "Send Email Notification"
}
}

The above code is giving something crap in BlueOcean and the stage like "Deploy_Automation_Code" is not seen at all in the UI.
The first node is parallel "AUtomation Build and Deploy" step is showing the echo of two stages.
Using Jenkins Version 2.46.2.Below is the UI which I am getting in BlueOcean




Can anyone give some expert thoughts where I am missing something and any existing defect with already there in BlueOcean. Thanks a ton in Advance

Thanks,
Satbachan

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7b4b500d-ce88-4f04-831e-8a28835c1382%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS5Y1zSt0LwoyNk254gZdiOJkjFRrVafFE8LHABmrXjWXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Pipeline is not getting displayed Properly in BlueOcen

Jesse Glick-4
In reply to this post by SS-2
On Wed, Aug 16, 2017 at 8:11 AM, Satbachan Singh
<[hidden email]> wrote:
> any existing defect with already there in BlueOcean

https://issues.jenkins-ci.org/browse/JENKINS-38442

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2WZSdbJ8GEvo98zAE%2B%2Btnvz%2BCXjACZmi8Bk0x2ghbAUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Pipeline is not getting displayed Properly in BlueOcen

James Dumay
Yes, please use jenkins-users in future. But add your use case and picture to the comments of the ticket Jesse quoted.

On Thursday, August 17, 2017 at 12:46:42 AM UTC+10, Jesse Glick wrote:
On Wed, Aug 16, 2017 at 8:11 AM, Satbachan Singh
<<a href="javascript:" target="_blank" gdf-obfuscated-mailto="7jZOF9D0BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">satbach...@...> wrote:
> any existing defect with already there in BlueOcean

<a href="https://issues.jenkins-ci.org/browse/JENKINS-38442" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-38442\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7KA5rQA-pt1rT2GxRdro2WDWs3w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-38442\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7KA5rQA-pt1rT2GxRdro2WDWs3w&#39;;return true;">https://issues.jenkins-ci.org/browse/JENKINS-38442

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/48633902-62a3-432c-9028-60a22f82609f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.