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 45c2221b6ec fix
45c2221b6ec is described below

commit 45c2221b6ecd554b31177e964672e8585f34821d
Author: Duo Zhang <[email protected]>
AuthorDate: Sun Mar 1 10:17:07 2026 +0800

    fix
---
 .../integration-test/integration-test.Jenkinsfile  | 69 +++++++++++++---------
 1 file changed, 41 insertions(+), 28 deletions(-)

diff --git a/dev-support/integration-test/integration-test.Jenkinsfile 
b/dev-support/integration-test/integration-test.Jenkinsfile
index d6af12638eb..89255eaa02e 100644
--- a/dev-support/integration-test/integration-test.Jenkinsfile
+++ b/dev-support/integration-test/integration-test.Jenkinsfile
@@ -97,6 +97,34 @@ pipeline {
         '''
         stash name: 'hbase-install', includes: 
"unpacked_src_tarball/hbase-assembly/target/hbase-*-bin.tar.gz"
       } // steps
+      post {
+        always {
+          script {
+            def srcFile = "${env.WORKSPACE}/output-srctarball/hbase-src.tar.gz"
+            if (fileExists(srcFile)) {
+              echo "upload hbase-src.tar.gz to nightlies"
+              sshPublisher(publishers: [
+                sshPublisherDesc(configName: 'Nightlies',
+                  transfers: [
+                    sshTransfer(remoteDirectory: 
"hbase/${JOB_NAME}/${BUILD_NUMBER}",
+                      sourceFiles: srcFile
+                    )
+                  ]
+                )
+              ])
+              // 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"
+                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/**/*'
+        }
+      }
     } // packaging test
     stage ('integration test matrix') {
       matrix {
@@ -265,6 +293,13 @@ pipeline {
                 echo "(/) {color:green}+1 client integration test for 
${HADOOP_VERSION} with shaded hadoop client {color}" >> 
${OUTPUT_DIR}/commentfile
               '''
             } // steps
+            post {
+              always {
+                stash name: "test-result-${env.HADOOP_VERSION}", includes: 
"${env.OUTPUT_DIR}/commentfile"
+                archiveArtifacts artifacts: "${env.OUTPUT_DIR}/*"
+                archiveArtifacts artifacts: "${env.OUTPUT_DIR}/**/*"
+              } // always
+            } // post
           } // integration test
         } // stages
       } // matrix
@@ -272,38 +307,16 @@ pipeline {
   } // stages
   post {
     always {
-      script {
-        def srcFile = "${env.WORKSPACE}/output-srctarball/hbase-src.tar.gz"
-        if (fileExists(srcFile)) {
-          echo "upload hbase-src.tar.gz to nightlies"
-          sshPublisher(publishers: [
-            sshPublisherDesc(configName: 'Nightlies',
-              transfers: [
-                sshTransfer(remoteDirectory: 
"hbase/${JOB_NAME}/${BUILD_NUMBER}",
-                  sourceFiles: srcFile
-                )
-              ]
-            )
-          ])
-          // 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"
-            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-*/*'
-      archiveArtifacts artifacts: 'output-integration-*/**/*'
       script {
         def results = []
         results.add('output-srctarball/commentfile')
-        
results.add("output-integration-hadoop-${env.HADOOP_VERSION}/commentfile")
         for (hadoop_version in getHadoopVersions(env.HADOOP_VERSIONS)) {
-          
results.add("output-integration-hadoop-${hadoop_version}/commentfile")
+          try {
+            unstash "test-result-${hadoop_version}"
+            
results.add("output-integration-hadoop-${hadoop_version}/commentfile")
+          } catch (e) {
+            echo "unstash ${hadoop-version} failed, ignore"
+          }
         }
         echo env.BRANCH_NAME
         echo env.BUILD_URL

Reply via email to