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 2021/09/30 09:12:35 UTC

[hbase] 01/01: test nightlies

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

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

commit 3f24b96d4214b34b1a869c134600a14bac844fcc
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Thu Sep 30 17:09:48 2021 +0800

    test nightlies
---
 dev-support/Jenkinsfile | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile
index f3de8ed..d86e54a 100644
--- a/dev-support/Jenkinsfile
+++ b/dev-support/Jenkinsfile
@@ -53,6 +53,7 @@ pipeline {
       // TODO does hadoopcheck need to be jdk specific?
     SHALLOW_CHECKS = 'all,-shadedjars,-unit' // run by the 'yetus general check'
     DEEP_CHECKS = 'compile,htmlout,javac,maven,mvninstall,shadedjars,unit' // run by 'yetus jdkX (HadoopY) checks'
+    ASF_NIGHTLIES = 'https://nightlies.apache.org/'
   }
   parameters {
     booleanParam(name: 'USE_YETUS_PRERELEASE', defaultValue: false, description: '''Check to use the current HEAD of apache/yetus rather than our configured release.
@@ -573,6 +574,19 @@ pipeline {
                   echo "No archiver directory, skipping compressing."
                 fi
 '''
+              sshPublisher(publishers: [
+                sshPublisherDesc(configName: 'Nightlies',
+                  transfers: [
+                    sshTransfer(remoteDirectory: 'hbase/${JOB_NAME}/${BUILD_NUMBER}/',
+                    sourceFiles: '${env.OUTPUT_DIR_RELATIVE}/test_logs.zip')
+                  ]
+                )
+              ])
+              // remove the big test logs zip
+              sh '''#!/bin/bash -e
+                rm -rf "${OUTPUT_DIR}/test_logs.zip"
+                echo "${ASF_NIGHTLIES}/hbase/${JOB_NAME}/${BUILD_NUMBER}/test_logs.zip" > "${OUTPUT_DIR}/test_logs.txt"
+'''
               // Has to be relative to WORKSPACE.
               archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/*"
               archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/**/*"