This is my first post to this forum . We had a requirement to create a pipeline having the below flow.
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 first node is parallel "AUtomation Build and Deploy" step is showing the echo of two stages.
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