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?
Install the
CodeScan package
in your Flosum org. Package URL to be provided by the Flosum Customer Success Manager.After installation, click on
App launcher
and openFlosum-Codescan
.
There are few settings which we need to enable in Flosum-CodeScan Package.
Activate CodeScan: Click on
Activation
tab and selectEnable Synchronization
option for Flosum-CodeScan.
Authorize CodeScan: To authenticate CodeScan account you need to have an
Organization Key
as well asAccess 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 a new branch and attach it to existing repository and click on
Save
.
Now go to
Flosum-CodeScan Package
, click oncomponent type
and select all the component types and associate branch and clickSave
.
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.
Login to your CodeScan account, and you will notice that the branch is populated in the CodeScan Server with your project.
Select the
branch
and click onAdd Analysis Project
button 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.
Note: This case is very similar to case 1, only step 1 is added as an extra functionality.
Go to
Flosum-CodeScan Package
and click onCreate project
from a branch, select thebranch
and click onCreate
.
Click on
component type
and select all the component types and associate branch and clicksave
.
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.
Login to your CodeScan account, and you will notice that the branch is populated in the CodeScan Server.
Click on the
branch
and attach analysis as webhook.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