CodeScan and Flosum Integration

About Flosum

Flosum is a release management tool for the Salesforce platform. Flosum users can now integrate CodeScan in their deployments to achieve error-free and secure releases.

How to Integrate Flosum with CodeScan?

  1. Install the CodeScan package in your Flosum org. Package URL to be provided by the Flosum Customer Success Manager.

  2. After installation, click on App launcher and open Flosum-Codescan.

  1. There are few settings which we need to enable in Flosum-CodeScan Package.

    • Activate CodeScan: Click on Activation tab and select Enable Synchronization option for Flosum-CodeScan.

    • Authorize CodeScan: To authenticate CodeScan account you need to have an Organization Key as well as Access Token from CodeScan Server.

    • Select Component Types: We support six metadata components as shown in the below image and you must select the branch in order to perform static code analysis. So, you have to select a branch and click on Save.

    • Create new project from existing branch: You can select an existing Flosum branch and click on Create button to create a new project in CodeScan which you can analyze.

Now you have done your complete setup with respect to Flosum-CodeScan.

How Does Flosum-CodeScan Work

Case 1: Create a new branch and add all metadata components

In this use case we will create a new branch in Flosum and add all new metadata components and do a static code analysis on a CodeScan server.

  1. Go to Flosum, Create a new branch and attach it to existing repository and click on Save.

  1. Now go to Flosum-CodeScan Package, click on component type and select all the component types and associate branch and click Save.

  1. Navigate to your instance's URL, for example, https://app.codescan.io/ for US region, https://app-eu.codescan.io/ for EU region or https://app-aus.codescan.io/ for AUS region.

  2. Login to your CodeScan account, and you will notice that the branch is populated in the CodeScan Server with your project.

  1. Select the branch and click on Add Analysis Project button and attach it as a webhook.

  1. Now you deploy metadata components like Apex Class, triggers to your branch and CodeScan will trigger static code analysis on the fly.

Case 2: For an existing branch create a new project

In this use case we will authorize existing branch in Flosum and add all new metadata components and do a static code analysis on a CodeScan server.

Note: This case is very similar to case 1, only step 1 is added as an extra functionality.

  1. Go to Flosum-CodeScan Package and click on Create project from a branch, select the branch and click on Create.

  1. Click on component type and select all the component types and associate branch and click save.

  1. Navigate to your instance's URL, for example, https://app.codescan.io/ for US region, https://app-eu.codescan.io/ for EU region or https://app-aus.codescan.io/ for AUS region.

  2. Login to your CodeScan account, and you will notice that the branch is populated in the CodeScan Server.

  1. Click on the branch and attach analysis as webhook.

  2. Now you can deploy metadata components like Apex Class, Triggers to your branch and CodeScan will trigger static code analysis on the fly.

Note: Step 4, 5, and 6 have similar functionality as Case 1.

Last updated