Skip to content

Commit

Permalink
HBASE-26848 Set java.io.tmpdir on mvn command when running jenkins job (
Browse files Browse the repository at this point in the history
#4231)

Signed-off-by: GeorryHuang <[email protected]>
  • Loading branch information
Apache9 authored Mar 16, 2022
1 parent c4ec523 commit cc13624
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-support/flaky-tests/run-flaky-tests.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pipeline {
sh '''#!/usr/bin/env bash
set -e
declare -a curl_args=(--fail)
declare -a mvn_args=(--batch-mode -fn -Dbuild.id="${BUILD_ID}" -Dmaven.repo.local="${WORKSPACE}/local-repository")
declare -a mvn_args=(--batch-mode -fn -Dbuild.id="${BUILD_ID}" -Dmaven.repo.local="${WORKSPACE}/local-repository" -Djava.io.tmpdir=target)
if [ "${DEBUG}" = "true" ]; then
curl_args=("${curl_args[@]}" -v)
mvn_args=("${mvn_args[@]}" -X)
Expand Down
6 changes: 5 additions & 1 deletion dev-support/hbase-personality.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ function personality_modules
extra="--threads=2"
fi

extra="${extra} -DHBasePatchProcess"
# 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
# whether it is placed in the root directory or a sub module's directory
extra="${extra} -Djava.io.tmpdir=target -DHBasePatchProcess"

if [[ "${PATCH_BRANCH}" = branch-1* ]]; then
extra="${extra} -Dhttps.protocols=TLSv1.2"
fi
Expand Down

0 comments on commit cc13624

Please sign in to comment.