Onboard ADO repositories to an existing Polaris application

Black Duck Polaris Platform

This procedure describes how to onboard one or more Azure DevOps repositories to a single existing Polaris application. Each Azure DevOps repository you select is mapped to a new Polaris project within that application.

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.

Important:

Bulk SCM integration with Azure DevOps Cloud requires a Polaris Premium subscription.

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.

Add Azure DevOps repositories to an existing application

  1. On the Portfolio page, select an application by clicking its name.
  2. On the Application page, select + Create > New Project(s) with SCM.
  3. Connect to your SCM:
    1. Select the type of server hosting your repositories:
      • Cloud-hosted — for Azure DevOps Cloud
      • Self-hosted — for Azure DevOps Server
    2. Select Azure Repos.
    3. (Azure DevOps Server only) Enter the SCM URL of your Azure DevOps Server instance, including the collection path (for example, https://{server}/{collection}).
    4. (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.
    5. Enter your Azure DevOps access token under Repository Access Token.
      Note: The access token provided here will be used to complete the onboarding process and will be subject to rate limits enforced by Azure DevOps.
    6. Click Test Connection.

      You should receive a Connection Successful message and the Quick Start options should be visible. If your connection test is unsuccessful, check the following:

      • That your network connection is stable.
      • That the Repository Access Token is accurate.
      • That the Repository Access Token is still valid and has not expired.
      • That you selected the correct provider for your SCM.
      • That you have authorized the access token for use outside SSO (if applicable).
      • (Azure DevOps Server only) That the teleport agent (for example, Bridge) in the private network is running and pointing at the secure tunnel. See Add and manage secure tunnels in the Polaris UI.
  4. Under the Repository Mapping heading, select Azure DevOps projects or repositories to import as new Polaris projects from the pulldowns. If an arrow is next to a name, click it to view repositories within it.
    Note: Azure DevOps Server does not support group-level service hook auto-registration. Service hooks must be configured at the Collection or Project level in Azure DevOps Server.
  5. Click Import Repositories.

    On your Portfolio page, a progress bar will track the percentage of completion.

    If the onboarding fails, an email notification will be sent to the user who initiated the onboarding. Organization Admins can monitor activity in audit logs (My Organization > Audit Logs).

    Click Cancel to cancel the import. Any repository in the process of being imported at the time of cancellation will complete in the background after the cancel is accepted, and all further onboarding will be stopped immediately. For example, if you import ten repositories and cancel at 50%, five repositories would be imported and five repositories would not.

Next steps