Skip to content
Ari Kamen edited this page Apr 18, 2017 · 30 revisions

Troubleshooting

If nothing appears to be happening please modify Artifactory's plugin logging level.

Controlling Plugin Log Level

The default log level for user plugins is "warn". To change a plugin log level, add the following to

${ARTIFACTORY_HOME}/etc/logback.xml:

<logger name="com.blackducksoftware.integration.hub.artifactory.scan.blackDuckScanForHub">
  <level value="info"/>
</logger>

The plugin also exposes a testing REST endpoint. If your Artifactory server is available at http://ARTIFACTORY_SERVER and you have administrator credentials 'admin/password', you can try:

curl -X GET -u admin:password "http://ARTIFACTORY_SERVER/artifactory/api/plugins/execute/testConfig"

If the plugin is configured correctly, you should get a response like this if everything is working as intended:

canConnectToHub: OK
artifactsFound: 1
loggedCronRuns:
addPolicyStatus 2017-01-03T14:14:00.004
addProjectVersionUrl 2017-01-03T14:15:00.002
scanForHub 2017-01-03T14:15:00.002

Your response might be a little different, but the essential pieces are getting 'OK' for canConnectToHub and getting a number greater than zero for artifactsFound.

Clone this wiki locally