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.
Install CodeScan package in your Flosum org. Package URL needs to be
given by 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: In order 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 have to select the branch in order to do perform static code analysis. So, you have to select a branch and click on Save.
- Create a 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.
Step 1: Go to Flosum, Create the new branch and attach it to existing repository and click on save.
Step 2: Now go to Flosum-CodeScan Package, click on component type and select all the component types and associate branch and click save.
Step 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.
Step 4: Select the branch and click on a button attach analysis project and attach it as a Webhook.
Step 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.
Step 1: Go to Flosum-CodeScan Package and Click on Create project from a
branch, select the branch and click on create.
Step 2: Click on component type and select all the component types and
associate branch and click save.
Step 3: Login to app.codescan.io using your credentials and you will notice
that the branch is populated in the CodeScan Server.
Step 4: Click on the branch and attach analysis as webHook.
Step 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, 5 have similar functionality as Case 1.