Introduction
When it's time for deployment exporting all the individual integrations and importing into the environments individually could be quite a tedious task.
Main Article
In this blog I will be explaining about automating the Deployment process in OICS.
Below is the order of the steps that are to be followed:
STEP:1
Configure a dummy trigger connection
STEP:2 List the files from SFTP as shown below
Provide the input directory of the files where the .iar exports are
stored
you can refer to : https://oracletechshares.blogspot.com/2022/07/archive-integrations-of-instance-using.html for easy way to export the integrations .
STEP:3
Drop a for-each action and map it according as shown below
Inside the loop follow STEP4 and STEP 5
STEP:4
Use the same SFTP connection once again .
The configuration of the SFTP should be as per below
screenshot
Adjust the mappings as below
STEP5
Add the invoke rest trigger connection which is configured
with the deployment environment URI
Fill in the details as below:
Paste ‘/ic/api/integration/v1/integrations/archive’
in the endpoint URI field
Make sure you had marked the below two boxes
Click on NEXT followed by DONE.
Now, Adjust the mappings between STEP 4 and STEP 5 as below
Hard code Content Type to ‘multipart/form-data’
and File Input Html Field Name to ‘file’
That’s it your end integration should look like below:
Hit Submit and Chill.
P.S : Incase you want to deploy only one particular Integration configure the ImprotTrigger connection with below payload.
{
"IntegrationFileName”: ""
}
and directly map the IntegrationFileName to FileName field of SFTP performing Downloadfile action.
Comments
Post a Comment