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/07 14:00:03 UTC

[hbase] branch master updated: HBASE-26318 Publish test logs for flaky jobs to nightlies (#3717)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 7ae71e8  HBASE-26318 Publish test logs for flaky jobs to nightlies (#3717)
7ae71e8 is described below

commit 7ae71e880d33db8f49ba1de605f98579f1bf746c
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Thu Oct 7 21:58:48 2021 +0800

    HBASE-26318 Publish test logs for flaky jobs to nightlies (#3717)
    
    Signed-off-by: Peter Somogyi <ps...@apache.org>
---
 dev-support/flaky-tests/run-flaky-tests.Jenkinsfile | 18 ++++++++++++++++--
 1 file changed, 16 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..594000e 100644
--- a/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile
+++ b/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile
@@ -29,6 +29,9 @@ pipeline {
     timeout (time: 2, unit: 'HOURS')
     timestamps()
   }
+  environment {
+    ASF_NIGHTLIES = 'https://nightlies.apache.org'
+  }
   parameters {
     booleanParam(name: 'DEBUG', defaultValue: false, description: 'Produce a lot more meta-information.')
   }
@@ -72,8 +75,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,test_logs.txt,target/machine/*'
     }
   }
 }