This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch HBASE-29930
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/HBASE-29930 by this push:
new 702568dcf2d fix
702568dcf2d is described below
commit 702568dcf2d3012f8e2faf8aa7a5a246a4f2dd66
Author: Duo Zhang <[email protected]>
AuthorDate: Sat Feb 28 16:07:36 2026 +0800
fix
---
.../integration-test/integration-test.Jenkinsfile | 38 ++++++++++++----------
dev-support/integration-test/source-artifact.sh | 12 ++++---
2 files changed, 27 insertions(+), 23 deletions(-)
diff --git a/dev-support/integration-test/integration-test.Jenkinsfile
b/dev-support/integration-test/integration-test.Jenkinsfile
index a8b550f17a8..10e95c048b5 100644
--- a/dev-support/integration-test/integration-test.Jenkinsfile
+++ b/dev-support/integration-test/integration-test.Jenkinsfile
@@ -89,26 +89,28 @@ pipeline {
} // stages
post {
always {
- sshPublisher(publishers: [
- sshPublisherDesc(configName: 'Nightlies',
- transfers: [
- sshTransfer(remoteDirectory: "hbase/${JOB_NAME}/${BUILD_NUMBER}",
- sourceFiles: "output-srctarball/hbase-src.tar.gz"
+ script {
+ def srcFile = "${env.WORKSPACE}/output-srctarball/hbase-src.tar.gz"
+ if (fileExists) {
+ echo "upload hbase-src.tar.gz to nightlies"
+ sshPublisher(publishers: [
+ sshPublisherDesc(configName: 'Nightlies',
+ transfers: [
+ sshTransfer(remoteDirectory:
"hbase/${JOB_NAME}/${BUILD_NUMBER}",
+ sourceFiles: "output-srctarball/hbase-src.tar.gz"
+ )
+ ]
)
- ]
- )
- ])
- // remove the big src tarball, store the nightlies url in hbase-src.html
- sh '''#!/bin/bash -e
+ ])
+ }
+ // remove the big src tarball, store the nightlies url in
hbase-src.html
+ sh '''#!/bin/bash -e
SRC_TAR="${WORKSPACE}/output-srctarball/hbase-src.tar.gz"
- if [ -f "${SRC_TAR}" ]; then
- echo "Remove ${SRC_TAR} for saving space"
- rm -rf "${SRC_TAR}"
- python3 ${BASEDIR}/dev-support/gen_redirect_html.py
"${ASF_NIGHTLIES_BASE}/output-srctarball" >
"${WORKSPACE}/output-srctarball/hbase-src.html"
- else
- echo "No hbase-src.tar.gz, skipping"
- fi
- '''
+ echo "Remove ${SRC_TAR} for saving space"
+ rm -rf "${SRC_TAR}"
+ python3 ${BASEDIR}/dev-support/gen_redirect_html.py
"${ASF_NIGHTLIES_BASE}/output-srctarball" >
"${WORKSPACE}/output-srctarball/hbase-src.html"
+ '''
+ }
archiveArtifacts artifacts: 'output-srctarball/*'
archiveArtifacts artifacts: 'output-srctarball/**/*'
archiveArtifacts artifacts: 'output-integration-*/*'
diff --git a/dev-support/integration-test/source-artifact.sh
b/dev-support/integration-test/source-artifact.sh
index 59667408cfa..e0136b8e9b4 100755
--- a/dev-support/integration-test/source-artifact.sh
+++ b/dev-support/integration-test/source-artifact.sh
@@ -34,6 +34,8 @@ function usage {
exit 1
}
+set -e
+
MVN="mvn"
if ! command -v mvn &>/dev/null; then
MVN=$MAVEN_HOME/bin/mvn
@@ -217,8 +219,11 @@ function build_tarball {
cd "${unpack_dir}"
-${MVN} -Dmaven.repo.local="${m2_tarbuild}" help:active-profiles | grep -q
hadoop-3.0
-if [ $? -ne 0 ]; then
+
+if ${MVN} -Dmaven.repo.local="${m2_tarbuild}" help:active-profiles | grep -q
hadoop-3.0; then
+ echo "The hadoop-3.0 profile is activated by default, build a default
tarball."
+ build_tarball 0
+else
echo "The hadoop-3.0 profile is not activated by default, build a default
tarball first."
# use java 8 to build with hadoop2
JAVA_HOME="/usr/lib/jvm/java-8" build_tarball 0
@@ -235,7 +240,4 @@ if [ $? -ne 0 ]; then
fi
# move tarballs back
mv "${unpack_dir}"/hbase-*-bin.tar.gz "${unpack_dir}"/hbase-assembly/target/
-else
- echo "The hadoop-3.0 profile is activated by default, build a default
tarball."
- build_tarball 0
fi