Installing the Artifactory Integration plugin

Artifactory Integration

Version
latest

The following steps describe the process for installing and configuring the Artifactory Integration plugin.

Downloading and extracting the Artifactory plugin

Download the Black Duck Artifactory Integration plugin archive (.zip or .tgz) distribution from the Black Duck Artifactory Black Duck repository.

After downloading the distribution, extract the archive file. Note the following file structure:

artifactory-integration-<version number>/
--blackDuckArtifactoryIntegration.groovy
– lib/
– -- artifactory-integration-common-<version number>.jar
– -- blackDuckArtifactoryIntegration.properties
– -- synopsysArtifactoryVersion.txt

The components of the distribution are as follows:

  • blackDuckArtifactoryIntegration.groovy: The plugin.

  • lib: The library folder containing the dependencies for the plugin.

  • blackDuckArtifactoryIntegration.properties: The configuration file for the plugin.

Obtaining and configuring Black Duck credentials

Obtain a Black Duck SCA API token to use for credentials in the blackDuckArtifactoryIntegration.properties file.

Configure the Black Duck SCA credentials using the blackDuckArtifactoryIntegration.properties file, which is in the artifactory-integration-<version>/lib folder.

Last steps

Copy the artifactory-integration-<version>/blackDuckArtifactoryIntegration.groovy file and the artifactory-integration-<version>/lib folder into ${ARTIFACTORY_HOME}/var/etc/plugins/.

Change the user for the following folders:

  • chown -R 1030:1030 ${ARTIFACTORY_HOME}/var/etc/plugins/blackDuckArtifactoryIntegration.groovy
  • chown -R 1030:1030 ${ARTIFACTORY_HOME}/var/etc/plugins/lib

Restart your Artifactory server.

Artifactory installed with Docker

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