HBASE-23114 Use archiveArtifacts in Jenkinsfiles (#681)
Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
parent
fec4c52499
commit
fd9cfd789b
|
@ -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/**/*'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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/*'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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/*'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue