Add a project to CodeScan from Salesforce
Last updated
Last updated
This document guides how to add a Salesforce project to your CodeScan cloud account and run the analysis.
Login into your CodeScan account.
Once you log into your CodeScan account, click the +
icon in the top right corner and select Analyze new project
.
It takes you to a different window. Choose the Organization
for which you'd like to create a project. Click Set Up
.
In the next window, click on Add Analysis Project
option.
You will now see a new popup window; select Salesforce
from the given options.
Next, choose the environment from the dropdown between Production/Developer, My own domain, and Sandbox.
Production/Developer:
Production/Developer refers authenticating users to Salesforce.com for a Developer account and/or a Production account using the username and password at login.salesforce.com.
Sandbox:
Sandboxes are test environments that provide a way to copy and create metadata from a production org (above). It is a separate environment where you can test (including seeding with data). There are four different types of sandboxes, accessed at test.salesforce.com.
My own domain:
Choose this if you have set up your domain or custom URL to access your Salesforce org rather than https://login.salesforce.com. Next, specify the Salesforce login URL in the text box. For example, https://mydomainname.my.salesforce.com. Companies and admins can better manage login and authentication for their Salesforce orgs by creating a custom domain.
Click on Authorize
. It will redirect to the Salesforce login page. Validate your credentials and click on Login
.
You will be redirected back to the CodeScan app.
In CodeScan, on Add a new project
screen, fill in the below details:
The project key
and the project name
are auto-assigned. You can edit the fields as per your need.Note:To know where to find the project key, refer to our document on how to do it by clicking HERE.
Enter the project version under the Default Project Version
field.
Choose the Unit Test Mode
from the dropdown. This allows you to configure which unit tests are run by the analysis. Example, Run Unit Tests, Use Previous Run, or keep it in disabled mode
Under Scheduling
, you can set the time frame for the analysis to run. You can run the project automatically by selecting Daily or manually by selecting Manual. If you select Daily, another field named Schedule has to be selected by choosing the time you want the automatic analysis to be triggered.
Click Add and Run Now
. This triggers the project analysis and the added project under your CodeScan organization.
You'll be redirected to the Project Analysis
screen to view the status of your analysis triggered.
"ip restricted" error: If your scan fails with the IP restricted error, please refer to the Troubleshooting article.
View the log report by clicking on Gear
() icon drop-down and selecting Logs
.