Installing the Artifactory Integration Plugin

The following sections describe installing the plugin and testing the connection.

Installing the Artifactory Integration plugin

The following steps describe an overview of the process for installing and configuring the Black Duck Artifactory Integration plugin.

  1. When you've downloaded and decompressed the artifactory-integration-<version>.[zip | .tgz] file, you're ready to configure the plugin properties file.

  2. Get a Black Duck API token to use for credentials in the blackDucrtifactoryIntegration.properties file.

  3. Configure an Artifactory Server under Integrations on your Black Duck instance.

  4. Configure the Black Duck credentials and config name using the blackDuckArtifactoryIntegration.properties file, which is in the /plugins/lib folder.

  5. Copy the plugins and the lib folder into ${ARTIFACTORY_HOME}/var/etc/plugins/
    which looks like the following when copied:
    ${ARTIFACTORY_HOME}/var/etc/plugins/lib/blackDuckArtifactoryIntegration.properties

  6. Change the user for the following folders:

    • chown -R 1030:1030 <path-to-blackDuckArtifactoryIntegration.groovy>

    • chown -R 1030:1030 <path-to-plugin-libs-directory>

  7. Restart your Artifactory server.

Test the connection

When you install and configure the Black Duck Artifactory Integration plugin, Synopsys recommends that you test the connection and make sure the plugin works properly. Use the following curl command to test the connection.

curl -X GET -u USERNAME:PASSWORD “http://ARTIFACTORY_SERVER/artifactory/api/plugins/execute/blackDuckTestConfig”

Artifactory installed with Docker

Perform a Docker cp command to move the plugin files and the lib folder from the extracted location to ${ARTIFACTORY_HOME}/var/etc/plugins/. 

A simple way to do this is to copy the entire plugins folder that you extracted from the Black Duck Artifactory plugin distribution zip into ${ARTIFACTORY_HOME}/var/etc/.

 

©2023 Synopsys, Inc. All Rights Reserved