Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,14 @@ def gitHubCommentWithBenchmarkReport() {
}
dir("${BASE_DIR}") {
// download artifacts for this PR
def bucketUri = getBenchmarkBucketURI() + "*.xml"
def bucketUri = getBenchmarkBucketURI() + "*.json"
log(level: 'INFO', text: "googleStorageDownload(bucketUri: ${bucketUri}, localDirectory: ${currentBenchmarkResults}, pathPrefix: ${getBenchmarkPathPrefix()})")
googleStorageDownload(bucketUri: bucketUri, credentialsId: "${JOB_GCS_CREDENTIALS}", localDirectory: currentBenchmarkResults, pathPrefix: getBenchmarkPathPrefix())

// download artifacts from the target branch if any
if (env.CHANGE_TARGET) {
try {
copyArtifacts(filter: "${currentBenchmarkResults}/*.xml", flatten: true, optional: true, projectName: getBaselineJobName(), selector: lastWithArtifacts(), target: baseline)
copyArtifacts(filter: "${currentBenchmarkResults}/*.json", flatten: true, optional: true, projectName: getBaselineJobName(), selector: lastWithArtifacts(), target: baseline)
} catch(e) {
log(level: 'INFO', text: 'gitHubCommentWithBenchmarkReport: it was not possible to copy the previous build.')
return
Expand Down Expand Up @@ -398,7 +398,7 @@ def prepareStack() {
}

def stashBenchmarkResults() {
def wildcard = 'build/benchmark-results/*.xml'
def wildcard = 'build/benchmark-results/*.json'
r = sh(label: "isBenchmarkResultsPresent", script: "ls ${wildcard}", returnStatus: true)
if (r != 0) {
echo "isBenchmarkResultsPresent: benchmark files not found, report won't be stashed"
Expand Down