Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.
Eric Kerwin edited this page Mar 8, 2018 · 75 revisions

Using Hub-Detect

Run:

bash <(curl -s https://blackducksoftware.github.io/hub-detect/hub-detect.sh)

Help

bash <(curl -s https://blackducksoftware.github.io/hub-detect/hub-detect.sh) -h

In Jenkins

Add a build step of 'Execute shell' with this content:

#!/bin/bash
bash <(curl -s https://blackducksoftware.github.io/hub-detect/hub-detect.sh)

Using Spaces

Because of the way bash is executed, spaces need to be escaped. For example:

bash <(curl -s https://blackducksoftware.github.io/hub-detect/hub-detect.sh) --detect.project.name=\"Project Test\"

Using Snapshots

To use the latest snapshot, set the following environment variable

DETECT_USE_SNAPSHOT=1

Direct jar download

Grab the jars from our public AF: http://test-repo.blackducksoftware.com/artifactory/webapp/#/artifacts/browse/tree/General/bds-integrations-release/com/blackducksoftware/integration/hub-detect

Using gradle inspector locally (airgap)

Please download the gradle-inspector and its transitives: https://github.com/blackducksoftware/hub-detect/tree/gh-pages

Unzip the zip into a location of your choice.

Then use the following property: detect.gradle.inspector.air.gap.path=<path/to/folder/with/jars>

Spring

For extra details about Spring's configuration: https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html

Dev Notes

Building Hub-Detect for Eclipse

Please run the following command before working in Eclipse after checking out the source:

gradlew cleanEclipse eclipse
Clone this wiki locally