From d220ab37d580d1a1b2bedcf655cb6e6801c3b9bd Mon Sep 17 00:00:00 2001 From: Peter Somogyi Date: Thu, 10 Oct 2019 13:27:50 +0200 Subject: [PATCH] HBASE-23114 Use archiveArtifacts in Jenkinsfiles (#681) Signed-off-by: Michael Stack --- dev-support/Jenkinsfile | 24 +++++++++---------- dev-support/adhoc_run_tests/Jenkinsfile | 6 ++--- .../flaky-tests/flaky-reporting.Jenkinsfile | 2 +- .../flaky-tests/run-flaky-tests.Jenkinsfile | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile index 5bc3ef65acef..0e640a3060f7 100644 --- a/dev-support/Jenkinsfile +++ b/dev-support/Jenkinsfile @@ -238,8 +238,8 @@ pipeline { 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 artifacts: "${env.OUTPUT_DIR_RELATIVE}/*" + archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/**/*" publishHTML target: [ allowMissing: true, keepAll: true, @@ -319,8 +319,8 @@ pipeline { fi ''' // Has to be relative to WORKSPACE. - archive "${env.OUTPUT_DIR_RELATIVE}/*" - archive "${env.OUTPUT_DIR_RELATIVE}/**/*" + archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/*" + archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/**/*" publishHTML target: [ allowMissing : true, keepAll : true, @@ -399,8 +399,8 @@ pipeline { fi ''' // Has to be relative to WORKSPACE. - archive "${env.OUTPUT_DIR_RELATIVE}/*" - archive "${env.OUTPUT_DIR_RELATIVE}/**/*" + archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/*" + archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/**/*" publishHTML target: [ allowMissing : true, keepAll : true, @@ -486,8 +486,8 @@ pipeline { fi ''' // Has to be relative to WORKSPACE. - archive "${env.OUTPUT_DIR_RELATIVE}/*" - archive "${env.OUTPUT_DIR_RELATIVE}/**/*" + archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/*" + archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/**/*" publishHTML target: [ allowMissing : true, keepAll : true, @@ -619,10 +619,10 @@ pipeline { post { always { stash name: 'srctarball-result', includes: "output-srctarball/commentfile,output-integration/commentfile" - archive 'output-srctarball/*' - archive 'output-srctarball/**/*' - archive 'output-integration/*' - archive 'output-integration/**/*' + archiveArtifacts artifacts: 'output-srctarball/*' + archiveArtifacts artifacts: 'output-srctarball/**/*' + archiveArtifacts artifacts: 'output-integration/*' + archiveArtifacts artifacts: 'output-integration/**/*' } } } diff --git a/dev-support/adhoc_run_tests/Jenkinsfile b/dev-support/adhoc_run_tests/Jenkinsfile index b3793cd97fbb..e06fdba325a6 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 75354e8591f8..d5e750a47e9e 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 bca95ddb1899..5b0d581dd426 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/*' } } }