Question
How can we create a parallel jobs pipeline for deployment with Deploy?
Answer
You need to add the parallel tag in the pipeline script
pipeline { agent any stages { stage('Build') { steps { script{ parallel( "import1":{ xldPublishPackage darPath: 'testB-1.0.dar', serverCredentials: 'XLD' }, "import2":{ xldPublishPackage darPath: 'testC-1.0.dar', serverCredentials: 'XLD' }, "build1":{ xldDeploy environmentId: 'Environments/test', packageId: 'Applications/testB',
serverCredentials: 'XLD' }, "build2":{ xldDeploy environmentId: 'Environments/test', packageId: 'Applications/testc',
serverCredentials: 'XLD' }, ) } } }
Comments
Please sign in to leave a comment.