-
Notifications
You must be signed in to change notification settings - Fork 39
Using Detect
By default the detect scripts download a detect jar from Artifactory. If instead you have already downloaded the detect jar but still want to use the shells script set the 'DETECT_JAR_PATH' environment variable to the path of the jar.
powershell
$env:DETECT_JAR_PATH = "file-path"
bash
export DETECT_JAR_PATH="file-path"
By default, the powershell script exits with the same exit code as detect. If simply want it to return, set the DETECT_EXIT_CODE_PASSTHRU environment variable to 1.
$env:DETECT_EXIT_CODE_PASSTHRU = 1
By default, the powershell script checks the system for Java before running. If you wish to disable this check, set the DETECT_SKIP_JAVA_TEST environment variable to 1.
$env:DETECT_SKIP_JAVA_TEST = 1
bash
export DETECT_LATEST_RELEASE_VERSION = "version-desired"
powershell
$env:DETECT_LATEST_RELEASE_VERSION = "version-desired"
cmd
set DETECT_LATEST_RELEASE_VERSION = version-desired
By default, the detect scripts pull the newest version of detect available. If you wish to use a snapshot build of detect you must set the following variables.
$env:DETECT_USE_SNAPSHOT = 1
$env:DETECT_LATEST_RELEASE_VERSION = "version-desired"