CodeScan Integration

Updated 1 week ago by Copado Solutions

CodeScan Integration

If you want to integrate all the functionality included in your CodeScan license with Copado, you need to configure a new Static Code Analysis Settings record in Copado with your CodeScan account.

  1. Log in to your Salesforce org where Copado is installed.
  2. Click on the Static Code Analysis Settings tab.
  3. Create a new record and select CodeScan record type based.
  4. Fill the Static Code Analysis Settings form:
    1. Static Code Analysis Name: This is only for reference.
    2. Select a version depending on your CodeScan license: Cloud or On premise Sonarqube.
    3. Introduce a CodeScan token created with your CodeScan account.
    4. Type the URL to access your CodeScan:
      1. The URL for the CodeScan cloud version is: "https://app.codescan.io"
      2. In case you have a CodeScan license on premise, you need to expose the machine where CodeScan is installed and include URL in this field.
  5. If Cloud CodeScan Version is selected, Cloud Organization needs to be filled with the organization key that exist under My Organizations in "https://app.codescan.io".
  6. Finally, you need to add your Static Code Analysis Settings to your deployment flow.

Now, whenever you run a static code analysis from a User Story associated with a project whose deployment flow is the one with your static code analysis settings, a new Static Code Analysis record will be created with a link to the CodeScan results.


How did we do?