How to: Create a Jenkins pipeline script for parallel deploy packages in Deploy

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' }, ) } } }

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.