HBASE-26917 Do not add --threads when running 'mvn site' (#4354)
Signed-off-by: GeorryHuang <huangzhuoyue@apache.org>
(cherry picked from commit f4eb9071fd
)
This commit is contained in:
parent
c1c6ff9c3a
commit
7b9fb0f047
|
@ -156,11 +156,15 @@ function personality_modules
|
||||||
# At a few points, hbase modules can run build, test, etc. in parallel
|
# At a few points, hbase modules can run build, test, etc. in parallel
|
||||||
# Let it happen. Means we'll use more CPU but should be for short bursts.
|
# Let it happen. Means we'll use more CPU but should be for short bursts.
|
||||||
# https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3
|
# https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3
|
||||||
|
if [[ "${testtype}" == mvnsite ]]; then
|
||||||
|
yetus_debug "Skip specifying --threads since maven-site-plugin does not support building in parallel."
|
||||||
|
else
|
||||||
if [[ -n "${BUILD_THREAD}" ]]; then
|
if [[ -n "${BUILD_THREAD}" ]]; then
|
||||||
extra="--threads=${BUILD_THREAD}"
|
extra="--threads=${BUILD_THREAD}"
|
||||||
else
|
else
|
||||||
extra="--threads=2"
|
extra="--threads=2"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# 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
|
||||||
|
|
Loading…
Reference in New Issue