CodeScan and Flosum Integration
  • 2 Minutes to read
  • Contributors
  • Dark
    Light

CodeScan and Flosum Integration

  • Dark
    Light

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.

  1. First, install the CodeScan package in your Flosum org. Package URL needs to be given by your Flosum Customer Success Manager.

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

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

    • Activate CodeScan: Click on Activation tab Enable Synchronization for Flosum-CodeScan.
      image.png

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

    • 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.
      image.png

    • 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.
      image.png

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 the new branch and attach it to existing repository and click on Save.
    image.png

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

  3. Login to app.codescan.io using your credentials and you will notice that the branch is populated in the CodeScan Server with your Project.
    image.png

  4. Select the branch and click on a button Add Analysis Project and attach it as a Webhook.
    image.png
    image.png

  5. 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.
    image.png

  2. Click on component type and select all the component types and associate branch and click save.
    image.png

  3. Login to app.codescan.io using your credentials and you will notice that the branch is populated in the CodeScan Server.
    image.png

  4. Click on the branch and attach analysis as webHook.

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

Note:

Step 3, 4, and 5 have similar functionality as Case 1.


Was this article helpful?