Try to tell shellcheck to allow to fix jenkinsci/docker/#784

This commit is contained in:
nickolay-martinov 2019-01-31 12:04:29 +03:00
parent 8361eb1191
commit 9639c9dfd1
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ doDownload() {
fi
echo "Downloading plugin: $plugin from $url"
# We actually want to allow variable value to be split into multiple options passed to curl.
# This is needed to allow long options and any options that take value.
# shellcheck disable=SC2086
retry_command curl ${CURL_OPTIONS:--sSfL} --connect-timeout "${CURL_CONNECTION_TIMEOUT:-20}" --retry "${CURL_RETRY:-3}" --retry-delay "${CURL_RETRY_DELAY:-0}" --retry-max-time "${CURL_RETRY_MAX_TIME:-60}" "$url" -o "$jpi"
return $?
}