I wrote below code to execute jobs in sequence in Pipeline script Jenkins, but I have a requirement to run 'build' and 'Undeploy' from below as parallel and then 'Deploy' after that
node: {
stage 'build'
build job: 'JenkinsTest', parameters: [
[$class: 'StringParameterValue', name: 'VERSION', value: "${VERSION}"],
[$class: 'StringParameterValue', name: 'RBFLAG', value: "${RBFLAG}"],
[$class: 'StringParameterValue', name: 'SET_ENV', value: "${SET_ENV}"]
]
stage 'Undeploy'
build job: 'Undeploy job', parameters: [
[$class: 'StringParameterValue', name: 'RBFLAG', value: "${RBFLAG}"]
]
stage 'Deploy'
build job: 'Deploy job', parameters: [
[$class: 'StringParameterValue', name: 'RBFLAG', value: "${RBFLAG}"]
]
}
Please help.