Running a CI Job

Overview

ARM facilitates the creation of CI jobs, allowing users to migrate or deploy nCino data and metadata into their destination environments using the following ways:

Deployment MethodsDescription

Feature Migration Template

The data which is part of a feature migration template (either standard or community template) will be picked up and deployed to the destination org or selected version control. For more information, refer Feature Migration template section.

Template using Salesforce Org

The object configuration, such as filters, applied mappings, and so on, will be picked up from the standard/community template chosen, and based on the configurations, the data is pulled from the source org and later deployed to the destination environment.

Version Control

The only difference between this and the Feature Migration template deployment is that here the template is picked up, which is part of version control. Such data is pulled from the version control and deployed to the destination.

Version Control using Salesforce Org

The object configuration, such as filters, applied mappings, and so on, will be picked up from the standard/community template chosen, which is part of version control. Based on the configurations, the data is pulled from the source org and later deployed to the destination environment.

Prerequisites

Before you proceed with CI job creation, you must have the below permissions:

  1. You're allowed to access the CI Jobs section. The admin can assign the required permission to you by visiting the Admin > Roles tab and creating a role with the above permission enabled.

  2. To create a CI job, you must have Create CI Job permission. The admin can assign the same by visiting the Admin > Roles tab and creating a role with the above permission enabled.

  3. You should be able to edit/modify your existing CI job only if special permission for CI Job List is assigned. For example, you will need Edit and Delete permissions to edit or delete your existing job.

Creating a CI Job

  1. Log in to your AutoRABIT account.

  2. Hover your mouse over the nCino module and click on CI Jobs.

  3. Click on Create CI Job, available on the top corner of the screen.

  4. On the next screen, give the job a descriptive name in the Job Name field and briefly describe it.

  5. Next, you must choose the appropriate deployment method for your CI job configuration.

    1. Deployment via template: You'll be asked to choose the template type, i.e., standard or community. The data which is part of the standard or community template chosen will be picked up and deployed to the destination org or selected version control.

    2. Deployment via template using Salesforce Org: The object configuration, such as filters, applied mappings, and so on, will be picked up from the standard/community template chosen. Based on the configurations, the data is pulled from the source org and later deployed to the destination environment.

    1. Deploment via Version Control: Select the template which is part of the version control branch. Such data is pulled from the version control and deployed to the destination.

  6. You can choose from three additional deployment types when you select the Deployment From Version Controloption.

    • Entire Branch: All of the templates from the version control branch will be populated, and you can choose any of them or all.

    • Baseline Revision: The nCino revisions are pulled from the version control branch, and you must select one from the list. All the revisions above the set baseline revision will be picked up, which implies the templates committed above the baseline revision will be picked up, and you can deploy those templates to the target org. For example, if you want to include templates from the top three versions, you must select the fourth revision as the baseline revision.

    • Revision Range: The templates are picked up based on the from and to revisions, and you can deploy those templates to the destination org.

    • Deployment via Version Control using Salesforce Org:The object configuration, such as filters, applied mappings, and so on, will be picked up from the standard/community template chosen, which is part of version control. Based on the configurations, the data is pulled from the source org and later deployed to the destination environment.

  7. Select the template(s) from the populated templates list for the CI job process. Click on the template, select the template version. Repeat the step for more template selection. Use the Select All checkbox to select all the templates for deployment to be carried out. The template chosen will get listed under the Selected Versions tab.

  8. Use the up/down arrow button to move the selected versions up and down or the delete button to remove a version from the list. Based on the selection, the top version will be deployed initially, and the process continues for the remaining versions.

Point to Note:

  • The most recent version of the template is selected by default

  • The name of the selected version will be in the format "Template Name- Selected Version."

  1. Click Next to proceed to the next screen.

  2. Choose your destination environment.

    1. Destination Org: Select your target org to which the templates will get deployed.

    2. Version Control: Select your repository and branch to commit the templates.Point to Note:Committing to the version control will not be available for Deployment via Version Control and Deployment via Version Control using Salesforce Org feature.

  3. Under Object Configuration, view the objects available for your selected templates. Click on the + sign will render the object list and the applied mappings and filters for each template version.

  1. Applied Mapping: The application will default use AutoRABIT external ID for record mapping between source and destination org. Users will have the option to choose their own external ID based on the requirement. LookupKey__c is auto-chosen as a default field. If the lookupKey__c field is unavailable, AutorabitExtId__c would be the next choice, and similarly, Name will be the third preference if both lookupKey__c and AutorabitExtId__c are unavailable.

    • In the 'Source' field, you must select the source field whose values will be populated in the destination external Id field.

    • In the 'Destination' field, you must select the required field from the destination org, whose values will remain unique for all the records.

  2. Applied Filters: If any filter is applied to the objects, such a filter will be displayed here. You can edit the applied filter (if required) using the Edit icon. Editing of the filter is currently not allowed for deployment via the template.

  1. Click Next to proceed to the next screen.

  2. Under the Notifications section, select the user email id to send email notifications on the success or failure of a build. Use the Add User Email (s) button to add the custom email address of the users to get notified of the CI job pass or fail.

  3. Next, under the Schedule section, you can schedule the process it must run.

    • Daily: The process will run daily at the scheduled time or interval set.

    • Weekly: The process will run weekly on the scheduled day and time.

    • No schedule: The process will only be saved; you can run it when required.

  4. Select other destination orgs under the Post Deployment Activities section. This will allow the package from the build to be reused to deploy the same data in various Salesforce environments as a post-deployment successful activity.

  5. Click Next to proceed to the final screen. This is the summary page for the CI job that you're about to create. You can view the template details and the mappings/ filters you applied for the last time before the job gets created.

  1. Before you conclude, select the criteria that you can set for the deployment process to continue.

    • Disable Workflow Rules: This option will deactivate the workflow rules associated with objects in the deployment.

    • Disable Validation Rules: This option will deactivate the validation rules associated with objects as part of the deployment.

    • Use Bulk API (Batch API will be used if the option is not enabled): You can transfer bulk records from the source and destination org.

    • Insert/update with Null Values: This will either insert or update record field values with null (if the value is null in source org) in destination org.

    • Use UTF-8 file encoding for file read and write operations: Use UTF-8 as the internal representation of strings. Text is transcoded from the local encoding to UTF-8 when data is written to or read from a file. UTF-8 must be enabled if your data exclusively contains English alphabets. UTF-8 must be disabled if your data contains non-English alphabets. UTF-8 should be enabled by default as per Salesforce.

  2. Click Save to complete the job creation process. You'll be redirected to the CI Result screen, where you can trigger a build for your configured job to run the CI operation. Select your CI job from the dropdown on the top right corner of the CI Results screen and click the Build Now button to trigger a build for your recently created job.

Last updated