Skip to content

Commit

Permalink
HBASE-23114 Use archiveArtifacts in Jenkinsfiles (#681)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Stack <[email protected]>
  • Loading branch information
petersomogyi committed Oct 10, 2019
1 parent a683955 commit 2fd35eb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions dev-support/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,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,
Expand Down Expand Up @@ -259,8 +259,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,
Expand Down Expand Up @@ -338,8 +338,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,
Expand Down Expand Up @@ -424,8 +424,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,
Expand Down Expand Up @@ -486,8 +486,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/**/*'
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions dev-support/adhoc_run_tests/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion dev-support/flaky-tests/flaky-reporting.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion dev-support/flaky-tests/run-flaky-tests.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*'
}
}
}

0 comments on commit 2fd35eb

Please sign in to comment.