HBASE-23114 Use archiveArtifacts in Jenkinsfiles (#681)

Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
Peter Somogyi 2019-10-10 13:27:50 +02:00
parent 3025c4250c
commit 14d58e2e64
4 changed files with 17 additions and 17 deletions

View File

@ -238,8 +238,8 @@ pipeline {
always { always {
stash name: 'general-result', includes: "${OUTPUT_DIR_RELATIVE}/commentfile" stash name: 'general-result', includes: "${OUTPUT_DIR_RELATIVE}/commentfile"
// Has to be relative to WORKSPACE. // Has to be relative to WORKSPACE.
archive "${env.OUTPUT_DIR_RELATIVE}/*" archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/*"
archive "${env.OUTPUT_DIR_RELATIVE}/**/*" archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/**/*"
publishHTML target: [ publishHTML target: [
allowMissing: true, allowMissing: true,
keepAll: true, keepAll: true,
@ -319,8 +319,8 @@ pipeline {
fi fi
''' '''
// Has to be relative to WORKSPACE. // Has to be relative to WORKSPACE.
archive "${env.OUTPUT_DIR_RELATIVE}/*" archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/*"
archive "${env.OUTPUT_DIR_RELATIVE}/**/*" archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/**/*"
publishHTML target: [ publishHTML target: [
allowMissing : true, allowMissing : true,
keepAll : true, keepAll : true,
@ -399,8 +399,8 @@ pipeline {
fi fi
''' '''
// Has to be relative to WORKSPACE. // Has to be relative to WORKSPACE.
archive "${env.OUTPUT_DIR_RELATIVE}/*" archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/*"
archive "${env.OUTPUT_DIR_RELATIVE}/**/*" archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/**/*"
publishHTML target: [ publishHTML target: [
allowMissing : true, allowMissing : true,
keepAll : true, keepAll : true,
@ -486,8 +486,8 @@ pipeline {
fi fi
''' '''
// Has to be relative to WORKSPACE. // Has to be relative to WORKSPACE.
archive "${env.OUTPUT_DIR_RELATIVE}/*" archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/*"
archive "${env.OUTPUT_DIR_RELATIVE}/**/*" archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/**/*"
publishHTML target: [ publishHTML target: [
allowMissing : true, allowMissing : true,
keepAll : true, keepAll : true,
@ -619,10 +619,10 @@ pipeline {
post { post {
always { always {
stash name: 'srctarball-result', includes: "output-srctarball/commentfile,output-integration/commentfile" stash name: 'srctarball-result', includes: "output-srctarball/commentfile,output-integration/commentfile"
archive 'output-srctarball/*' archiveArtifacts artifacts: 'output-srctarball/*'
archive 'output-srctarball/**/*' archiveArtifacts artifacts: 'output-srctarball/**/*'
archive 'output-integration/*' archiveArtifacts artifacts: 'output-integration/*'
archive 'output-integration/**/*' archiveArtifacts artifacts: 'output-integration/**/*'
} }
} }
} }

View File

@ -81,11 +81,11 @@ pipeline {
} }
post { post {
always { always {
archive 'output/*' archiveArtifacts artifacts: 'output/*'
archive 'output/**/*' archiveArtifacts artifacts: 'output/**/*'
} }
failure { failure {
archive 'component/**/target/surefire-reports/*' archiveArtifacts artifacts: 'component/**/target/surefire-reports/*'
} }
} }
} }

View File

@ -51,7 +51,7 @@ pipeline {
post { post {
always { always {
// Has to be relative to WORKSPACE. // Has to be relative to WORKSPACE.
archive "includes,excludes,dashboard.html" archiveArtifacts artifacts: "includes,excludes,dashboard.html"
publishHTML target: [ publishHTML target: [
allowMissing: true, allowMissing: true,
keepAll: true, keepAll: true,

View File

@ -73,7 +73,7 @@ pipeline {
always { always {
junit testResults: "**/surefire-reports/*.xml", allowEmptyResults: true junit testResults: "**/surefire-reports/*.xml", allowEmptyResults: true
// TODO compress these logs // TODO compress these logs
archive 'includes.txt,**/surefire-reports/*,**/test-data/*,target/machine/*' archiveArtifacts artifacts: 'includes.txt,**/surefire-reports/*,**/test-data/*,target/machine/*'
} }
} }
} }