Integration Server Code Deployment using Azure Devops, ABE & webMethods Deployer
Tags: integration, azure, devops, tutorial
Published: 2021-10-06 15:06:15

---
title: Integration Server Code Deployment using Azure Devops, ABE & webMethods Deployer
published: true
date: 2021-02-09 15:18:51 UTC
tags: #integration, #azure, #devops, #tutorial
canonical_url: https://tech.forums.softwareag.com/t/integration-server-code-deployment-using-azure-devops-abe-webmethods-deployer/238752/1
---

In this article, we use Microsoft’s self-hosted agent on the build server where ABE and webMethods deployer are installed. Then we use ABE ANT targets and deployer to create and deploy IS packages from a git repository to the target Integration Server orchestrated by Azure DevOps.

## Prerequisite

webMethods Integration Server Build Server installed along with Deployer and Asset Build Environment.

## Installation Steps

1. We start with the Self-Hosted Agent Installation & Configuration on the build server
2. Log in to the Azure DevOps portal ([dev.azure.com](http://dev.azure.com)) and select Organization settings.
3. Navigate to Pipelines->Agent Pools->Default and select New Agent  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/e/e77a3cb7a98783e709a1b757b01b6120306d3f16.png)
4. The steps to set up the agent will appear as shown below.  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/7/798b4dd9789537719327ea3918d8f0f29f3dc3c5.png)
5. Depending on the Build Server machine type, download the agent software in the build server.
6. For configuring the agent after downloading, please follow the steps provided in the below URL  
[How to create and configure AzureDevops Pipelines Agent](https://docs.devart.com/devops-automation-for-sql-server/walkthrough/create-configure-azuredevops-pipelines%20agent.html)  
Refer to the “Configuring a self–hosted agent” section
7. Additionally, one might need Personal Access Token (PAT) during agent configuration, which can be obtained from Azure DevOps Portal-> User Settings. Click on New Token and provide the desired permissions, scope, and expiry date for the token.  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/a/ae017b74eff99b89eeb2553162994794f6236a64.png) ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/d/d3b54622e5c9174817661e5a18acf046aa13a974.png)
8. Once the agent is installed, configured, and started, navigate back to Pipelines->Agent Pools->Default in the Azure DevOps Portal. The agent should be enabled and online.  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/8/84a7335988d190a56f50ce80d1698c9f693af78b.png)
9. Once the agent is installed and online, we proceed with a new project and pipeline creation.
10. Navigate to [dev.azure.com](http://dev.azure.com) home page and create your project.  
 ![7](https://aws1.discourse-cdn.com/techcommunity/original/2X/3/36abd01b74c43235e6fa64431d163c07ef24e4fe.png)
11. Create a new pipeline, select the desired repository (Azure repo, git, bitbucket, svn etc.) which stores the required IS packages and add an empty/agent job and select “Default” agent pool in the Agent Selection.  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/b/baf50e4aefc087a756230387fdb47b4a4f279291.png)
12. On the Agent job, select add and Add a “Power shell script” step. In the Power shell script, select inline and provide the command to execute the build creation. Please note that Azure DevOps takes care of checking out the IS packages to the agent work directory.  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/6/6cb136bfbb3a549ad381846918008e48616e0398.png)  
Before you execute this step, you need to configure the below properties at a minimum in the build.properties (`<SAG_HOME>\common\AssetBuildEnvironment\master_build\build.properties`) for your build to run.  
`build.output.dir= Directory Path to save your builds.`  
`build.source.dir = Checkout location in the Agent Work directory.`  
`enable.build.IS = true (for IS assets deployment)`  
Additionally, you can set logging and archival settings as desired.  
Based on the properties set in the build.properties file, build.bat generates the composites in the output directory given above.
13. Once the build is created, we proceed with deployer project creation and code deployment using Deployer CLI.
14. Add another “Power shell script” step. In the Power shell script, select inline and provide the command to execute the project creation in Deployer for a specific project automator file.  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/5/5646d11e167700c4ccfe6a1937f8d3f08eb4c68b.png)  
Script user in this step -  
`<SAG_HOME>\IntegrationServer\instances\<instanceName>\packages\WmDeployer\bin\projectAutomator.bat <Path to project Automator file>`  
Project Automator file can be created using the below sample in git hub or even exported from Deployer UI for an existing project and modifying as per the repository location and target server details.  
[sagdevops-ci-assets/ProjectSpecificationTemplate.xml at master · SoftwareAG/sagdevops-ci-assets · GitHub](https://github.com/SoftwareAG/sagdevops-ci-assets/blob/master/resources/ProjectSpecificationTemplate.xml)  
Also, we have saved the project automator file in the same git repo as that of the packages and use it from the checkout folder for this step.  
We can even add the deployer targets to build.xml file and execute the build.bat with the specific target.  
In this case, additional settings required for the deployer should be added to build.properties file.
15. Then add another Power shell script for project deployment created in the previous step.  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/4/4336c3094472fa688c4b1ad10fe93d511278df4f.png)  
Script used in this step –  
`<SAG_HOME>\IntegrationServer\instances\<instanceName>\packages\WmDeployer\bin\Deployer.bat --deploy -project <projectName> -dc <deployment Candidate Name> -host <Deployer Host> -port <deployer Port> -user <Username> -pwd <Password> -force`
16. Once these steps are configured, execute the pipeline to checkout the code from the git repo, create the build and deploy the build to the target server specified in the project automator file.  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/2X/f/fd1bb975249d3b7d3c19f146765b74d0fc3b84bc.jpeg)

**Notes:**

- This article provides on basic deployment of IS packages. Additional configuration and customization can be done in the ABE, build.xml and even in the project.automator file as per the desired deployment needs.
- Also, the pipeline jobs can be scheduled or invoked on demand using the REST API of Azure Devops.
- Similar steps can be followed for other code deployment as well like BPM, MWS assets etc.
- Self-Hosted Agent on Azure VMs is one of the approaches for invoking ABE and deployer from Azure Devops. Additionally, we can enable Remote Management (WinRM or Remote SSH) on the build server and execute the Power shell using “Power shell on target machines” in Azure Devops.

[Read full topic](https://tech.forums.softwareag.com/t/integration-server-code-deployment-using-azure-devops-abe-webmethods-deployer/238752/1)