Installation and Configuration - Sonatype Platform Plugin for Jenkins
Installation
Download latest version:
Install through the Jenkins UI
Download the most recent version of the plugin.
Sign in to Jenkins as an administrator.
Navigate to the Manage Jenkins > Plugins page.
Click on the Advanced tab.
Choose the
.hpi
file you previously downloaded.Optionally you may enter the URL to the archive file under the Deploy Plugin section.
Deploy the plugin.
Install through the Jenkins Plugin Manager
Sign in to Jenkins as an administrator.
Navigate to Manage Jenkins.
In the System Configuration section, click on Plugins.
In available plugins, search and install the UpdateSites Manager plugin.
Once installed, navigate to Manage Jenkins.
In the Uncategorized section, click on Manage UpdateSites.
Click on Add → Update Site, and enter the required information:
ID: sonatype-update-site.
Note
'sonatype-update-site' must be used as stated. This ID is essential for system functionality and must not be altered or renamed.
URL:
https://download.sonatype.com/integrations/jenkins-uc/update-center.json
Mark the checkbox "Need CA Certificate" and paste the following certificate:
-----BEGIN CERTIFICATE----- MIIDHzCCAgegAwIBAgIJAP+lqAK85t4HMA0GCSqGSIb3DQEBCwUAMCYxCzAJBgNVBAYTAlVTMRcwFQYDVQQKDA5Tb25hdHlwZSwgSW5jLjAeFw0yNDA0MTYyMDI3MzNaFw0yNzA0MTYyMDI3MzNaMCYxCzAJBgNVBAYTAlVTMRcwFQYDVQQKDA5Tb25hdHlwZSwgSW5jLjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOSSYo277GaxCRlk9/waQ+ytNU/suCqb8SlGeAWHpleZFwvFVxxG0MU1nEI7tgKCXoyXMdbM/bXFgTzjthAOcgNQaAFDY4aUO6DPjPxMv3FTHn4FqdCfL+zEBSzmMD9R3wwblRjcnhc0c5pq+2+jopu0no0nmvEo/KczPnDfmCS90v87ACkNMcVEaIe+AYDgBGMLcY3QeouEsLnKE6FNnovzyW8h8kBRHWiolgDlA6J0KRpqOKfpdtYrA22YzhsSw7WX4Tj2rZDhHmlZ6tT3zkXHM5evXR7H9aMalF+LVhg2ShUhCIfxVpKgvLd80N39+iBOvT02/7DsB2WaYvr6TxECAwEAAaNQME4wHQYDVR0OBBYEFIzUBWpQAwcpuPr94D7k9SMTGEV2MB8GA1UdIwQYMBaAFIzUBWpQAwcpuPr94D7k9SMTGEV2MAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAFkrkGZ+PoZ5JGM0rin7pCk/1e2dCeeh3/uMaQQ0QYyC4jMbsYfid/V8io2AQLujOUt9TLhNvRDIaFanUBfBdw9deHTrJf4Zm45FQGbytDOgOcF4hZ58yBjJv+Fs9ARFmF3rkWjWDcnIE9eNeXv82UD+lDyTEVH88Sb6qddkOHnAMT7dwCVDpxycWYWpPmwPM7Yf6a+shshPJqveD65RyJbolk4u49owJ3hYpLwmPvDfN9sxaqRVrdKg3RnYWf+faU1bMGXQEj/0tIipHvYuDzOCTGC587zByu589SHYjEPg2i7ud1EYXkeb7nEjfsYUzum3jGx7u1MDQ5RaxPyNxyA= -----END CERTIFICATE-----
Click Apply and Save.
Navigate to Manage Jenkins → Plugins page.
In the Plugin Manager window, select the Available plugins tab and enter "Nexus Platform Plugin" in the search box.
Note
If the plugin does not appear after adding the new site, try clicking the refresh button at the top right corner.
Mark the Install checkbox to select the Nexus Platform Plugin and click the Install button at the top right corner.
Success messages will appear as the plugin and its extensions are installed.
Install Using Alternative Methods
Sonatype Platform Plugin for Jenkins can be installed using the Jenkins CLI.
Configuration
Jenkins can be configured to connect with one or more instances of IQ Server to use when evaluating your application builds. The first instance in the list is used by default.
The configured user for IQ Server must have the Evaluate Application permission. We recommend creating a Jenkins service account and using tokens to reduce the risk of exposing credentials.
Sign in to Jenkins as an administrator.
Navigate to the Manage Jenkins > System.
In the Sonatype Nexus section, select Nexus IQ Server from the Add Nexus IQ Server drop-down menu and enter the following information:
Display Name: The name used to select an IQ Server instance.
Server ID: ID to specify an IQ Server instance in pipeline builds.
Server URL: The location of the IQ Server.
Credentials:
Click Add and select Jenkins.
On the modal, enter the IQ Server username and password. Click Add.
Note
You can learn more about user roles in the Sonatype Lifecycle documentation.
Select the credentials from the drop-down list.
Click the Test Connection button. If the connection is successfully established, you'll see a confirmation message.
The IQ report summary is embedded in Jenkins build reports. Optionally, select the 'Hide embedded reports in Jenkins' checkbox to only link to the report.
Click the Save button.