-
DarkLight
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.
-
First, install the CodeScan package in your Flosum org. Package URL needs to be given by your Flosum Customer Success Manager.
-
After installation, click on App launcher and open Flosum-Codescan.
-
There are few settings which we need to enable in Flosum-CodeScan Package.
-
Activate CodeScan: Click on Activation tab Enable Synchronization 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.
-
Go to Flosum, Create the new branch and attach it to existing repository and click on Save.
-
Now go to Flosum-CodeScan Package, click on component type and select all the component types and associate branch and click Save.
-
Login to app.codescan.io using your credentials and you will notice that the branch is populated in the CodeScan Server with your Project.
-
Select the branch and click on a button Add Analysis Project and attach it as a Webhook.
-
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.
This case is very similar to case 1, only step 1 is added as an extra functionality.
-
Go to Flosum-CodeScan Package and Click on Create project from a branch, select the branch and click on create.
-
Click on component type and select all the component types and associate branch and click save.
-
Login to app.codescan.io using your credentials and you will notice that the branch is populated in the CodeScan Server.
-
Click on the branch and attach analysis as webHook.
-
Now you deploy metadata components like Apex Class, triggers to your branch and CodeScan will trigger static code analysis on the fly.
Step 3, 4, and 5 have similar functionality as Case 1.