Skip to main content
Version: Release 22.2

Black Duck Plugin

The plugin provides summary tiles for the Black Duck Hub that displays the counts of each component with various risks and severities.

In the Digital.ai Release Black Duck plugin, you can monitor various risks as analyzed by Black Duck, and to take action in Digital.ai Release. For example, to fail or pass a release based on the severity and volume of risks in Black Duck.

A gate task is included in the plugin. This is used to configure various thresholds which determine if the task pass or fails.

important

You must set up a connection to Black Duck server before adding Black Duck tasks or tiles. For information, see Define a Black Duck Server section on this page.

note

In the release flow editor, the Black Duck Check Compliance task has a red border.

Features

The plugin added to Digital.ai Release provides:

  • A Black Duck Server type that can be used to configure the host running the Black Duck Hub.
  • A Black Duck Check Compliance task.
  • A summary tile for the Black Duck Risk Profile.
  • A summary tile for the Black Duck Risk Trend.

Requirements

The plugin requires the following:

  • The Black Duck Hub server running and accessible via HTTP(S).
  • The scan results available on the Black Duck Hub server.

Define a Black Duck Server

There are two locations where you can define a Black Duck: Server configuration:

  • On a global level in Connections under the Configuration group of the navigation pane
  • On a folder level in Overview > Folders of the navigation pane, under the Configuration tab of the desired folder

To set up a connection to a Black Duck Hub Server, do the following steps:

  1. In Digital.ai Release, go to one of the two specified locations.
  2. Click Add button next to the Black Duck: Server.
  3. In the Title field, specify a name for your Black Duck server.
  4. In the URL field, specify the URL where to connect to the Black Duck server.
  5. To trust all SSL certificates exposed by the server, check the Trust Certificate checkbox.
  6. In the Username and Password fields, specify the login username and password of the user on the server.
note

Authentication using API token is supported

Check Black Duck1 7. If you are using a proxy connection, specify the host, port, username, password, and NTLM domain authentication in the Proxy section. Check Black Duck1 8. To test the server connection, click Test. 9. Click on Save.

After the server connection is set up, you can create a release or template that checks thresholds of various risks according to the Black Duck Hub.

Check Compliance Task

The Check Compliance task creates a gate in the release flow which can break the flow if the count of components of various risks are greater than the configured thresholds.

In the new release, add a task of type Black Duck > Check Compliance.

  1. Select the Black Duck server where the results are stored.
  2. Specify the Project Name and the Project Version.
  3. Configure the thresholds for each type of risk for each severity. Each threshold sets the maximum allowed count of components for that risk and severity.

Check Compliance Task

Black Duck Risk Profile Tile

The Black Duck Risk Profile tile shows a summary of a risk type displayed as a graph, for example: Security Risk, License Risk, or Operational Risk.

The graph shows the number of components categorized according to severity for the configured risk type.

To configure the Black Duck Risk Profile tile, do the following steps:

  1. In the top navigation bar, click on Dashboards.
  2. Select the dashboard where you want to add the new tile.
note

If you have not created a dashboard yet, to create dashboard, click on the Add dashboard button on the top right of the screen.

  1. On the top right of the screen, click Configure dashboard.
  2. On the top right of the screen, click Add tiles.
  3. Hover over Black Duck risk profile and click on Add.
  4. On the dashboard, hover over the new Black Duck risk profile tile and click configure.
  5. In the Title field, enter the name for the tile.
  6. In the Server field, enter the name of the Black Duck server to connect with.
  7. In the Project field, enter the project to pull data from.
  8. In the Version field, select a version to display metrics on.
  9. In the Risk type field, select a risk type to display.
note

Version filters follow semantic versioning. A custom regex can also be used, provided that it is python compatible.

  1. Click on Save.

Black Duck Risk Proile Tile

Black Duck Risk trend tile

The Black Duck Risk trend tile shows a summary of a risk type, displayed as a graph, over a set period of time. For example: Security Risk, License Risk, or Operational Risk.

To add a Black Duck Risk trend tile, do the following steps:

  1. In the top navigation bar, click Dashboards.
  2. Select the dashboard where you want to add the new tile.
note

If you have not created a dashboard yet, to create the dashboard, click on the Add dashboard button on the top right of the screen.

  1. On the top right of the screen, click on Configure dashboard.
  2. On the top right of the screen, click on Add tiles.
  3. Hover over Black Duck risk trend and click on Add.
  4. On the dashboard, hover over the new Black Duck risk trend tile and click configure.
  5. In the Title field, enter the name for the tile.
  6. In the Server field, enter the name of the Black Duck server to connect with.
  7. In the Time period field, select the period of time to display.
  8. In the Project name field, enter the project to pull data from.
  9. In the Risk type field, select a risk type to display.
  10. In the Versions field, select the versions to display metrics on.
note

Version filters follow semantic versioning. A custom regex can also be used, provided that it is python compatible.

  1. Click on Save.

Black Duck Risk trend Tile