Connect a Polaris project to an ADO repository

Black Duck Polaris Platform

This procedure describes how to connect an existing Polaris project to an Azure DevOps (Cloud or Server) repository.

Before you begin, review Integrate Azure DevOps with Polaris. If you're using Azure DevOps Server, that topic explains how to make sure Polaris has network access to your ADO Server instance. Create a personal access token as described in Azure Tokens for SCM Bulk Integration and/or Monitoring before proceeding.

Note: SCA Fix Pull Requests are supported for repositories hosted in Azure DevOps Cloud and Azure DevOps Server. For Azure DevOps Server integrations, Polaris creates the pull request over the Secure Tunnel that connects it to your repository. See SCA Fix Pull Requests.

Naming imported repositories

Important: When you import a Git repository from a third-party SCM provider into your Azure DevOps project, Azure DevOps may append ".git" to the end of the repository's name. When this occurs, Polaris will not accept the repository's URL.

To rename an imported repository, follow these steps:

  1. In Azure DevOps, select Repos > Files.
  2. At the top of the page, open the menu that displays the name of the current repository and select Manage repositories.
  3. For the repo you want to rename, select More options > Rename.
  4. Remove .git from the repository's name and select Rename.

Connect to a repository in Azure DevOps

  1. In Polaris, open the project you wish to connect to a repository (go to Portfolio, select an application, and then select a project).
  2. Select Settings > Integrations.
  3. Under Connected SCM, select Edit.
  4. Select the type of server hosting your repository:
    • Cloud-hosted — for Azure DevOps Cloud
    • Self-hosted — for Azure DevOps Server
  5. Select Azure Repos.
  6. Enter the Repository URL.

    To obtain the repository URL, open your Azure DevOps repository in a browser and select Clone. Copy the HTTPS URL (SSH is not supported).

    For Azure DevOps Server, the repository URL follows the format https://{server}/{collection}/{project}/_git/{repository}.



  7. (Azure DevOps Server only) If you're using the Secure Tunnel, check URL is in a private network and select a secure tunnel from the pull-down menu.
  8. Under Repository Access Token, enter the token you created in Azure DevOps.
  9. Click Test Connection. A spinning circle indicates the test is in progress.
  10. If your connection is successful, click Save.

    If your connection test is unsuccessful, check the following and retry:

    1. That your network connection is stable.
    2. That the Repository URL is accurate.
    3. That the Repository Access Token is accurate.
    4. That the Repository Access Token is still valid and has not expired.
    5. That you selected the correct provider and hosting type for your SCM.
    6. That you have authorized the access token for use outside SSO (if applicable).
    7. (Azure DevOps Server only) That Polaris external IP addresses have been added to your firewall allow list, or that the Secure Tunnel is correctly configured.

Next steps