You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2024/07/10 06:45:56 UTC

(hbase) 01/01: HBASE-28722 Should wipe out all the output directories before unstash in nightly job

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch HBASE-28722
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit fb49b70550dbe28139d1e37c89b0c9a7befc24ed
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Wed Jul 10 14:45:33 2024 +0800

    HBASE-28722 Should wipe out all the output directories before unstash in nightly job
---
 dev-support/Jenkinsfile | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile
index 94652560614..f93408d6fd3 100644
--- a/dev-support/Jenkinsfile
+++ b/dev-support/Jenkinsfile
@@ -954,13 +954,25 @@ pipeline {
     always {
       script {
          try {
+           sh "printenv"
+           // wipe out all the output directories before unstashing
+           sh'''
+             echo "Clean up result directories"
+             rm -rf ${OUTPUT_DIR_RELATIVE_GENERAL}
+             rm -rf ${OUTPUT_DIR_RELATIVE_JDK8_HADOOP2}
+             rm -rf ${OUTPUT_DIR_RELATIVE_JDK8_HADOOP3}
+             rm -rf ${OUTPUT_DIR_RELATIVE_JDK11_HADOOP3}
+             rm -rf ${OUTPUT_DIR_RELATIVE_JDK17_HADOOP3}
+             rm -rf output-srctarball
+             rm -rf output-integration
+           '''
            unstash 'general-result'
            unstash 'jdk8-hadoop2-result'
            unstash 'jdk8-hadoop3-result'
            unstash 'jdk11-hadoop3-result'
            unstash 'jdk17-hadoop3-result'
            unstash 'srctarball-result'
-           sh "printenv"
+
            def results = ["${env.OUTPUT_DIR_RELATIVE_GENERAL}/commentfile",
                           "${env.OUTPUT_DIR_RELATIVE_JDK8_HADOOP2}/commentfile",
                           "${env.OUTPUT_DIR_RELATIVE_JDK8_HADOOP3}/commentfile",