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 committed by GitHub
parent fec4c52499
commit fd9cfd789b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 17 deletions

View File

@ -239,8 +239,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,
@ -320,8 +320,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,
@ -400,8 +400,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,
@ -487,8 +487,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,
@ -620,10 +620,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/**/*'
}
}
}

View File

@ -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/*'
}
}
}

View File

@ -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,

View File

@ -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/*'
}
}
}