Skip to content

Commit bcc84a8

Browse files
authored
[ci] Fix Jenkinsfile to use the json files for pipeline benchmarks reporting (#8346)
* Fix Jenkinsfile to use the json files for pipeline benchmarks reporting * Change extension in stashBenchmarkResults
1 parent 5a64b09 commit bcc84a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.ci/Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,14 @@ def gitHubCommentWithBenchmarkReport() {
194194
}
195195
dir("${BASE_DIR}") {
196196
// download artifacts for this PR
197-
def bucketUri = getBenchmarkBucketURI() + "*.xml"
197+
def bucketUri = getBenchmarkBucketURI() + "*.json"
198198
log(level: 'INFO', text: "googleStorageDownload(bucketUri: ${bucketUri}, localDirectory: ${currentBenchmarkResults}, pathPrefix: ${getBenchmarkPathPrefix()})")
199199
googleStorageDownload(bucketUri: bucketUri, credentialsId: "${JOB_GCS_CREDENTIALS}", localDirectory: currentBenchmarkResults, pathPrefix: getBenchmarkPathPrefix())
200200

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

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

0 commit comments

Comments
 (0)