XLD-Jenkins - How to deploy same build to two XLD instances with one job to avoid duplicate builds.

Follow

Rohit Yadav -

Scenario

Need to deploy/publish same package to two different XLD instances.

Environment

XL Deploy

Steps to Perform

 

Install XL Deploy Plugin V 6.1.0 or higher in your Jenkins. Create a pipeline project. Create your Jenkins File as

code {
    stage('Publish') {  
    xldPublishPackage serverCredentials: 'xld-admin', darPath: 'app_new-1.0.dar'
     }
     stage('Publish') {  
    xldPublishPackage serverCredentials: 'xld2', darPath: 'app_new-1.0.dar'
     } 
  stage('Deploy') {  
    xldDeploy serverCredentials: 'xld-admin', environmentId: 'Environments/env', packageId: 'Applications/app_new/1.0'
    }
    stage('Deploy') {  
    xldDeploy serverCredentials: 'xld2', environmentId: 'Environments/env', packageId: 'Applications/app_new/1.0'
    }
}

 

 

Additional Information

Below is the URL for XL Deploy documentation for using a pipeline using Jenkins File.

https://docs.xebialabs.com/xl-deploy/concept/jenkins-xl-deploy-plugin.html#using-jenkinsfile

Tags
 

 

 

 

 

Have more questions? Submit a request
Powered by Zendesk