This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch HBASE-30004
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/HBASE-30004 by this push:
new 855df802568 fix
855df802568 is described below
commit 855df80256857f32c8c65feea9afc8acc0115578
Author: Duo Zhang <[email protected]>
AuthorDate: Tue Mar 17 21:39:57 2026 +0800
fix
---
dev-support/generate-website/build-hbase-website.sh | 14 ++++++++++----
.../generate-website/generate-hbase-website.Jenkinsfile | 2 +-
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/dev-support/generate-website/build-hbase-website.sh
b/dev-support/generate-website/build-hbase-website.sh
index 483ddb33472..de9d5f45255 100755
--- a/dev-support/generate-website/build-hbase-website.sh
+++ b/dev-support/generate-website/build-hbase-website.sh
@@ -58,6 +58,12 @@ done
if [ $# -lt 1 ]; then
usage
fi
+
+MVN="mvn"
+if ! command -v mvn &>/dev/null; then
+ MVN=$MAVEN_HOME/bin/mvn
+fi
+
component_dir="$(cd "$(dirname "$1")"; pwd)/$(basename "$1")"
if [ -z "${working_dir}" ]; then
@@ -95,7 +101,7 @@ fi
export MAVEN_OPTS="${MAVEN_OPTS} -Dmaven.repo.local=${local_repo}"
# Verify the Maven version
-mvn -version
+${MVN} -version
# Verify the git version
git --version
@@ -145,13 +151,13 @@ echo "Building HBase"
# breaks for me is hbase-server trying to find hbase-http:test and
hbase-zookeeper:test.
# But! some sunshine: because we're doing a full install before running site,
we can skip all the
# compiling in the forked executions. We have to do it awkwardly because
MJAVADOC-444.
-if mvn \
+if ${MVN} \
--batch-mode \
-Psite-install-step \
--errors \
--log-file="${working_dir}/hbase-install-log-${CURRENT_HBASE_COMMIT}.txt" \
clean install \
- && mvn site \
+ && ${MVN} site \
--batch-mode \
-Dscala.skip=true \
-Psite-build-step \
@@ -166,7 +172,7 @@ fi
# Stage the site
echo "Staging HBase site"
-mvn \
+${MVN} \
--batch-mode \
--errors \
--log-file="${working_dir}/hbase-stage-log-${CURRENT_HBASE_COMMIT}.txt" \
diff --git a/dev-support/generate-website/generate-hbase-website.Jenkinsfile
b/dev-support/generate-website/generate-hbase-website.Jenkinsfile
index bd013f33a5c..bac895983d5 100644
--- a/dev-support/generate-website/generate-hbase-website.Jenkinsfile
+++ b/dev-support/generate-website/generate-hbase-website.Jenkinsfile
@@ -114,7 +114,7 @@ pipeline {
archiveArtifacts artifacts: '*.patch.zip,hbase-*.txt'
}
failure {
- mail to: '[email protected]', replyTo: '[email protected]',
subject: "Failure: HBase Generate Website", body: """
+ mail to: '[email protected]', replyTo: '[email protected]', subject:
"Failure: HBase Generate Website", body: """
Build status: ${currentBuild.currentResult}
The HBase website has not been updated to incorporate recent HBase changes.