Exporting objects using DevOps pipeline
You can use a CI/CD pipeline for exporting the Adeptia Connect objects from one environment to another automatically. The CI/CD pipeline uses the Export XML file that you must have created as a prerequisite for export operation, and generates an exported ZIP that contains the objects you want to migrate. After you create the Exported ZIP from the source environment, you need to import the objects to the new environment by running the import pipeline.
How the Export pipeline works
The diagram below represents how the export pipeline works, and automates the export process.
When triggered, the pipeline performs the following sequence of actions.
Connects to the GIT repository, pulls the Export XML file, and places it to a location in the PVC (shared folder).
Pulls and deploys the migration utility helm chart to create the Exported ZIP using the Export XML file at a PVC (shared) location.
Downloads the newly created Exported ZIP, and pushes it to the GitHub repository.
Deletes the migration workspace created during the export process.
To start with exporting the objects, you first need to create an export pipeline having all the required parameters for exporting the objects.
Important
Adeptia provides you with an export pipeline file that you can use to create the export pipeline.
The parameters' values you pass in the pipeline supersede the corresponding existing values in the Export XML file.
After you create the pipeline, you need to trigger the pipeline to perform the export operation.
Creating and triggering the Export pipeline
To create the pipeline in Jenkins using the export pipeline provided by Adeptia, follow the steps given below.
Log in to the Jenkins with admin privileges.
Select New Item.
Enter a name for the Export pipeline, and then select Pipeline.
Click OK.
Copy the content from the provided export pipeline file.
In the Pipeline Definition section, paste the copied content and uncheck the Use Groovy Sandbox checkbox.
Click Save.
On the screen that follows, click Build Now.
As you build the pipeline for the very first time, all the parameters get initialized.Refresh the page.
The Build Now option now changes to Build with Parameters.Click Build with Parameters.
You will see all the parameters inherited from the export pipeline file.
Enter the parameter values as per your requirement.
Click Build to trigger the pipeline.