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/10/02 14:19:44 UTC

[hbase] 01/01: HBASE-26318 Publish test logs for flaky jobs to nightlies

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

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

commit 642ae0a8df2d6c622fb20bfae3fbba4620745ebf
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Sat Oct 2 22:18:55 2021 +0800

    HBASE-26318 Publish test logs for flaky jobs to nightlies
---
 dev-support/flaky-tests/run-flaky-tests.Jenkinsfile | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile b/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile
index 0ba200b..3803650 100644
--- a/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile
+++ b/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile
@@ -72,8 +72,19 @@ pipeline {
   post {
     always {
       junit testResults: "**/surefire-reports/*.xml", allowEmptyResults: true
-      // TODO compress these logs
-      archiveArtifacts artifacts: 'includes.txt,**/surefire-reports/*,**/test-data/*,target/machine/*'
+      sshPublisher(publishers: [
+        sshPublisherDesc(configName: 'Nightlies',
+          transfers: [
+            sshTransfer(remoteDirectory: "hbase/${JOB_NAME}/${BUILD_NUMBER}",
+              sourceFiles: "**/surefire-reports/*,**/test-data/*"
+            )
+          ]
+        )
+      ])
+      sh '''#!/bin/bash -e
+        echo "${ASF_NIGHTLIES}/hbase/${JOB_NAME}/${BUILD_NUMBER}" > "test_logs.txt"
+      '''
+      archiveArtifacts artifacts: 'includes.txt,target/machine/*'
     }
   }
 }