cancel
Showing results for 
Search instead for 
Did you mean: 
1WSCGomez
Moderator
Moderator

Objective

The objective of this document is to create the use case for the CICD deployment and leverage the CICD framework being used by some of our customers to deploy the customer-tenant-seed using the CICD pipeline.

The following are the points that need to be considered to achieve the CICD deployment.

  1. Follow the GIT Structure and analogy defined for CPS projects/implementations.
  2. As of now following are the folders that can be achieved using the CICD deployment
  • Data Models including thing, RefereceData, Context model and UoM model, etc.
  • UI configs
  • Reference Data

Deployment Approach

Following steps to be followed to deployment perspective

Steps

 

Description

 

Step 1 - Zipping all the files required to deploy

Zip it following folders depending upon your data and models based on the implementations:

10-json-based

20-excel-based

Note: Please ignore to include the following folder as custom reports configs are not getting addressed as of now using any of the API 240.CustomReportConfig

Step 2 - Prepare upload

Create and send the request to setup the dataplatform seed to make them aware with the filename we are going to deploy api/binarystreamobjectservice/prepareUpload

This API call will provide a UploadURL.

1WSCGomez_5-1796299972727.png

Step 3 - Upload the File

Use the Upload URL from Step 2 to upload the zip file.

1. This will be a PUT call with the upload URL as the endpoint

2. Use the binary in body to upload the Zip file from your local

3. This call requires additional header property “x-ms-blob-type:BlockBlob”

1WSCGomez_6-1796299988753.png

 

1WSCGomez_7-1796299998098.png

Step 4 - Deploy tenant seed

Deploy the file to tenant /api/adminservice/deploytenantseed

Grab the Task id from the response

1WSCGomez_8-1796300012738.png

Step 5 - Ensure the upload is successful

Use the call to track the status /api/requesttrackingservice/get

1WSCGomez_9-1796300032278.png

Step 6 - Validate

Make sure the intended changes are deployed into the tenant either from UI or backend.

Postman Collection for all the above.

Refer to the file in the attachment Code Deployment.postman_collection.json 

 

Please post your questions in the comments section.

Download the material below:

Version history
Revision #:
3 of 3
Last update:
3 hours ago
Updated by:
 
Contributors