4

Touchless Deployment 🚀- Automate through sFTP via CPI | SAP Blogs

 1 year ago
source link: https://blogs.sap.com/2022/07/20/touchless-deployment-%f0%9f%9a%80-automate-through-sftp-via-cpi/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
July 20, 2022 2 minute read

Touchless Deployment 🚀- Automate through sFTP via CPI

Previous Article : Introducing Touchless Deployment  & Working Session

Dear All,

In this article, describes how you can automate your SQL deployments to SAP Commission database automatically using Touchless Deployment API’s through SAP Integration Suite or Cloud Integration (CPI) through sFTP connection

SFTP protocol, clients, servers etc. Page by the original author of SFTP.

Background

If customers wants another way to deploy but not through CI/CD or Postman process explained in my previous articles,, there is way to automate through pushing the DDL file to sFTP dropbox provided by SAP Commissions through developing Iflow from SAP Cloud Platform Integration or SAP Integration Suite.

so this way, customer will have to just drop their ddl file with updated incremental changeset id so it gets deploy automatically and secured way…  also you can develop your own Iflow adding additional steps like after deploy you can send email notifcation or adding succesfull logs with your deploy id.

Let’s get started


SAP Commission dropbox offers customers provided with sFTP connection & access for pushing the files but we are making use of Outbound folder to automate for storing DDL objects for deploying..

so we are going to create a New folder called “DDL” but this will not be available for any of your dropbox by default but even though if you have folder creation access and then you wouldn’t have access to create files inside the directory.  This is something Product team and engineering team to think through how customers can get benefit and take advantage from different approach.

2022-07-20_19-01-52.png

sFTP Configuration setup

2022-07-20_19-41-40.png

We have deployed Iflow successfully and now you can drop the DDL files inside the sFTP directory and process would check & pick every 5mins if there is any file inside the directory to trigger the Iflow.

2022-07-20_18-58-53.png

Final Iflow would look like below

2022-07-20_18-54-13.png

Let’s see the sample file how it gets deploy succesfully

2022-07-20_19-18-39.png

Once you push your file to sFTP directory i.e DDL folder in my example –  Iflow will pick automatically.

2022-07-20_19-15-09.png

How liquibase.xml looks

2022-07-20_19-15-44.png
How it gets zipped and deployed to SAP Commissions
2022-07-20_19-17-00.png

Once the Iflow is succesfull and gets deployed to SAP commissions, the file in sFTP gets deleted automatically.

2022-07-20_19-32-39.png

Closing Thoughts for Developers motivation

FRofB6wVkAACU_g.png

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK