You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ps...@apache.org on 2019/10/10 18:05:55 UTC

[hbase] branch branch-1.3 updated: HBASE-23114 Use archiveArtifacts in Jenkinsfiles (#681)

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

psomogyi pushed a commit to branch branch-1.3
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-1.3 by this push:
     new e3acd00  HBASE-23114 Use archiveArtifacts in Jenkinsfiles (#681)
e3acd00 is described below

commit e3acd00c93fbadb960768c434acc1cf68ff71322
Author: Peter Somogyi <ps...@apache.org>
AuthorDate: Thu Oct 10 13:27:50 2019 +0200

    HBASE-23114 Use archiveArtifacts in Jenkinsfiles (#681)
    
    Signed-off-by: Michael Stack <st...@apache.org>
---
 dev-support/Jenkinsfile                             | 20 ++++++++++----------
 dev-support/adhoc_run_tests/Jenkinsfile             |  6 +++---
 dev-support/flaky-tests/flaky-reporting.Jenkinsfile |  2 +-
 dev-support/flaky-tests/run-flaky-tests.Jenkinsfile |  2 +-
 4 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile
index 0b3f3ac..487c9d9 100644
--- a/dev-support/Jenkinsfile
+++ b/dev-support/Jenkinsfile
@@ -176,8 +176,8 @@ curl -L  -o personality.sh "${env.PROJECT_PERSONALITY}"
             always {
               stash name: 'general-result', includes: "${OUTPUT_DIR_RELATIVE}/commentfile"
               // Has to be relative to WORKSPACE.
-              archive "${env.OUTPUT_DIR_RELATIVE}/*"
-              archive "${env.OUTPUT_DIR_RELATIVE}/**/*"
+              archiveArtifacts "${env.OUTPUT_DIR_RELATIVE}/*"
+              archiveArtifacts "${env.OUTPUT_DIR_RELATIVE}/**/*"
               publishHTML target: [
                 allowMissing: true,
                 keepAll: true,
@@ -257,8 +257,8 @@ curl -L  -o personality.sh "${env.PROJECT_PERSONALITY}"
                 fi
 '''
               // Has to be relative to WORKSPACE.
-              archive "${env.OUTPUT_DIR_RELATIVE}/*"
-              archive "${env.OUTPUT_DIR_RELATIVE}/**/*"
+              archiveArtifacts "${env.OUTPUT_DIR_RELATIVE}/*"
+              archiveArtifacts "${env.OUTPUT_DIR_RELATIVE}/**/*"
               publishHTML target: [
                 allowMissing         : true,
                 keepAll              : true,
@@ -336,8 +336,8 @@ curl -L  -o personality.sh "${env.PROJECT_PERSONALITY}"
                 fi
 '''
               // Has to be relative to WORKSPACE.
-              archive "${env.OUTPUT_DIR_RELATIVE}/*"
-              archive "${env.OUTPUT_DIR_RELATIVE}/**/*"
+              archiveArtifacts "${env.OUTPUT_DIR_RELATIVE}/*"
+              archiveArtifacts "${env.OUTPUT_DIR_RELATIVE}/**/*"
               publishHTML target: [
                 allowMissing         : true,
                 keepAll              : true,
@@ -422,8 +422,8 @@ curl -L  -o personality.sh "${env.PROJECT_PERSONALITY}"
                 fi
 '''
               // Has to be relative to WORKSPACE.
-              archive "${env.OUTPUT_DIR_RELATIVE}/*"
-              archive "${env.OUTPUT_DIR_RELATIVE}/**/*"
+              archiveArtifacts "${env.OUTPUT_DIR_RELATIVE}/*"
+              archiveArtifacts "${env.OUTPUT_DIR_RELATIVE}/**/*"
               publishHTML target: [
                 allowMissing         : true,
                 keepAll              : true,
@@ -484,8 +484,8 @@ curl -L  -o personality.sh "${env.PROJECT_PERSONALITY}"
           post {
             always {
               stash name: 'srctarball-result', includes: "output-srctarball/commentfile"
-              archive 'output-srctarball/*'
-              archive 'output-srctarball/**/*'
+              archiveArtifacts 'output-srctarball/*'
+              archiveArtifacts 'output-srctarball/**/*'
             }
           }
         }
diff --git a/dev-support/adhoc_run_tests/Jenkinsfile b/dev-support/adhoc_run_tests/Jenkinsfile
index b3793cd..e06fdba 100644
--- a/dev-support/adhoc_run_tests/Jenkinsfile
+++ b/dev-support/adhoc_run_tests/Jenkinsfile
@@ -81,11 +81,11 @@ pipeline {
       }
       post {
         always {
-          archive 'output/*'
-          archive 'output/**/*'
+          archiveArtifacts artifacts: 'output/*'
+          archiveArtifacts artifacts: 'output/**/*'
         }
         failure {
-          archive 'component/**/target/surefire-reports/*'
+          archiveArtifacts artifacts: 'component/**/target/surefire-reports/*'
         }
       }
     }
diff --git a/dev-support/flaky-tests/flaky-reporting.Jenkinsfile b/dev-support/flaky-tests/flaky-reporting.Jenkinsfile
index 75354e8..d5e750a 100644
--- a/dev-support/flaky-tests/flaky-reporting.Jenkinsfile
+++ b/dev-support/flaky-tests/flaky-reporting.Jenkinsfile
@@ -51,7 +51,7 @@ pipeline {
   post {
     always {
       // Has to be relative to WORKSPACE.
-      archive "includes,excludes,dashboard.html"
+      archiveArtifacts artifacts: "includes,excludes,dashboard.html"
       publishHTML target: [
         allowMissing: true,
         keepAll: true,
diff --git a/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile b/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile
index fdd64bb..03658d3 100644
--- a/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile
+++ b/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile
@@ -73,7 +73,7 @@ pipeline {
     always {
       junit testResults: "**/surefire-reports/*.xml", allowEmptyResults: true
       // TODO compress these logs
-      archive 'includes.txt,**/surefire-reports/*,**/test-data/*,target/machine/*'
+      archiveArtifacts artifacts: 'includes.txt,**/surefire-reports/*,**/test-data/*,target/machine/*'
     }
   }
 }