HBASE-26848 Addendum make tmpdir absolute
(cherry picked from commit caea843e94
)
This commit is contained in:
parent
f497465d38
commit
c413bb1120
|
@ -46,7 +46,8 @@ pipeline {
|
||||||
sh '''#!/usr/bin/env bash
|
sh '''#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
declare -a curl_args=(--fail)
|
declare -a curl_args=(--fail)
|
||||||
declare -a mvn_args=(--batch-mode -fn -Dbuild.id="${BUILD_ID}" -Dmaven.repo.local="${WORKSPACE}/local-repository" -Djava.io.tmpdir=target)
|
tmpdir=$(realpath target)
|
||||||
|
declare -a mvn_args=(--batch-mode -fn -Dbuild.id="${BUILD_ID}" -Dmaven.repo.local="${WORKSPACE}/local-repository" -Djava.io.tmpdir=${tmpdir})
|
||||||
if [ "${DEBUG}" = "true" ]; then
|
if [ "${DEBUG}" = "true" ]; then
|
||||||
curl_args=("${curl_args[@]}" -v)
|
curl_args=("${curl_args[@]}" -v)
|
||||||
mvn_args=("${mvn_args[@]}" -X)
|
mvn_args=("${mvn_args[@]}" -X)
|
||||||
|
|
|
@ -165,7 +165,9 @@ function personality_modules
|
||||||
# Set java.io.tmpdir to avoid exhausting the /tmp space
|
# Set java.io.tmpdir to avoid exhausting the /tmp space
|
||||||
# Just simply set to 'target', it is not very critical so we do not care
|
# Just simply set to 'target', it is not very critical so we do not care
|
||||||
# whether it is placed in the root directory or a sub module's directory
|
# whether it is placed in the root directory or a sub module's directory
|
||||||
extra="${extra} -Djava.io.tmpdir=target -DHBasePatchProcess"
|
# let's make it absolute
|
||||||
|
tmpdir=$(realpath target)
|
||||||
|
extra="${extra} -Djava.io.tmpdir=${tmpdir} -DHBasePatchProcess"
|
||||||
|
|
||||||
if [[ "${PATCH_BRANCH}" = branch-1* ]]; then
|
if [[ "${PATCH_BRANCH}" = branch-1* ]]; then
|
||||||
extra="${extra} -Dhttps.protocols=TLSv1.2"
|
extra="${extra} -Dhttps.protocols=TLSv1.2"
|
||||||
|
|
Loading…
Reference in New Issue