Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ export OM_SERVICE_ID="omservice"
export SCM=scm1.org
export SECURITY_ENABLED=true

curl -LO https://downloads.apache.org/ranger/KEYS
gpg --import KEYS
if [[ "${SKIP_APACHE_VERIFY_DOWNLOAD}" != "true" ]]; then
curl -LO https://downloads.apache.org/ranger/KEYS
gpg --import KEYS
fi

download_and_verify_apache_release "ranger/${RANGER_VERSION}/apache-ranger-${RANGER_VERSION}.tar.gz"
tar -C "${DOWNLOAD_DIR}" -x -z -f "${DOWNLOAD_DIR}/apache-ranger-${RANGER_VERSION}.tar.gz"
Expand Down
7 changes: 5 additions & 2 deletions hadoop-ozone/dist/src/main/compose/testlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ source "${_testlib_dir}/../smoketest/testlib.sh"
: ${OZONE_COMPOSE_RUNNING:=false}
: ${SECURITY_ENABLED:=false}
: ${SCM:=scm}
: ${SKIP_APACHE_VERIFY_DOWNLOAD:=${CI:-false}}

# Check if running from output of Maven build or from source
_is_build() {
Expand Down Expand Up @@ -631,6 +632,8 @@ download_and_verify_apache_release() {
local download_dir="${DOWNLOAD_DIR:-/tmp}"

download_if_not_exists "${base_url}${remote_path}" "${download_dir}/${f}"
download_if_not_exists "${checksum_base_url}${remote_path}.asc" "${download_dir}/${f}.asc"
gpg --verify "${download_dir}/${f}.asc" "${download_dir}/${f}" || exit 1
if [[ "${SKIP_APACHE_VERIFY_DOWNLOAD}" != "true" ]]; then
download_if_not_exists "${checksum_base_url}${remote_path}.asc" "${download_dir}/${f}.asc"
gpg --verify "${download_dir}/${f}.asc" "${download_dir}/${f}" || exit 1
fi
}