mild cosmetic tweaks
# This value should not be updated - the Jenkins
# build process will, for ANY snapshot build,
-# override the latest snapshot jar.
-
+# override the hub-detect-latest-SNAPSHOT.jar file on
+# gh-pages.
DETECT_LATEST_SNAPSHOT=hub-detect-latest-SNAPSHOT.jar
-# This value should be automatically updated by the
-# gradle build process for a non-snapshot build.
+# DETECT_LATEST_RELEASE_VERSION should be set in your
+# environment if you wish to use a version different
+# from LATEST.
DETECT_RELEASE_VERSION=${DETECT_LATEST_RELEASE_VERSION}
# If you would like to enable the shell script to use
# the latest snapshot instead of the latest release,
# specify DETECT_USE_SNAPSHOT=1 in your environment.
# The default is to NOT use snapshots. If you enable
-# snapshots, the jar file will always be downloaded.
-
+# snapshots, the jar file will be downloaded whenever
+# a new commit is added to the master branch.
DETECT_USE_SNAPSHOT=${DETECT_USE_SNAPSHOT:-0}
# To override the default location of /tmp, specify
# your own DETECT_JAR_PATH in your environment and
# *that* location will be used.
-
DETECT_JAR_PATH=${DETECT_JAR_PATH:-/tmp}
# If you want to pass any java options to the
# invocation, specify DETECT_JAVA_OPTS in your
# environment. For example, to specify a 6 gigabyte
# heap size, you would set DETECT_JAVA_OPTS=-Xmx6G.
-
DETECT_JAVA_OPTS=${DETECT_JAVA_OPTS:-}
# If you want to pass any additional options to
# curl, specify DETECT_CURL_OPTS in your environment.
# For exmaple, to specify a proxy, you would set
# DETECT_CURL_OPTS=--proxy http://myproxy:3128
-
DETECT_CURL_OPTS=${DETECT_CURL_OPTS:-}
SCRIPT_ARGS="$@"
@@ -63,12 +61,11 @@ get_detect() {
if [ -z "${DETECT_RELEASE_VERSION}" ]; then
DETECT_SOURCE="http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.blackducksoftware.integration&a=hub-detect&v=LATEST"
DETECT_DESTINATION="${DETECT_JAR_PATH}/hub-detect-latest.jar"
- echo "will look for : ${DETECT_SOURCE}"
else
DETECT_SOURCE="http://repo2.maven.org/maven2/com/blackducksoftware/integration/hub-detect/${DETECT_RELEASE_VERSION}/hub-detect-${DETECT_RELEASE_VERSION}.jar"
DETECT_DESTINATION="${DETECT_JAR_PATH}/hub-detect-${DETECT_RELEASE_VERSION}.jar"
- echo "will look for : ${DETECT_SOURCE}"
fi
+ echo "will look for : ${DETECT_SOURCE}"
fi
USE_REMOTE=1
