Add a Project to CodeScan from Bitbucket
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Add a Project to CodeScan from Bitbucket

  • Dark
    Light

This document is a guide on how to add a Bitbucket project to your CodeScan cloud account and run the analysis.

  1. Login to your CodeScan account.
  2. Once you login into your CodeScan account, on the top right corner, click on the (+) icon and select Analyze new project.CodeScan account
  3. It takes you to a different window. Choose the Organization for which you'd like to create a project.Analyze projects
  4. In the next window, click on Add Analysis Project option.Add Analysis Project
  5. You will now see a new popup window, select Bitbucket from the given options.Bitbucket
  6.  Once you select the Bitbucket it will redirect to the Bitbucket login page. Validate your credentials and click on Login.Bitbucket
  7. Enter the necessary information in the below fields and then click on Add and Run Now.
    add a new project
    • Choose the repository you want to add followed by the Project Branch name.
    • Make sure you select the checkbox under Check Pull Requests.
    • Now, enter the project key followed by the project name.
      Note:
      To know where to find the project key, refer to our document on how to do it by clicking here.
    • Once you fill out all the details in the popup window, select Add and Run Now.
  8. This triggers the project analysis along with the project being added under your CodeScan organization.
  9. You can view the project analysis report by clicking on Details from your VC repository.VC repository
  10.  When you click the link, it will take you to the CodeScan Project page, where you can view your project's log report.codescan project page

Now that the webhooks have been created, every time there is a push to the tracked branch or pull request made/updated against the tracked branch, an analysis will be triggered in CodeScan.


Was this article helpful?