Skip to content

Commit

Permalink
[7.x](backport #28163) fix(ci): use the right parent directory for up…
Browse files Browse the repository at this point in the history
…loading GoIntegTests artifacts (#28243)
  • Loading branch information
mergify[bot] authored Oct 12, 2021
1 parent f35fd1a commit 0801ec9
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -805,15 +805,16 @@ def archiveTestOutput(Map args = [:]) {
}
}
def fileName = 'build/system-tests-*.tar.gz' // see dev-tools/mage/target/common/package.go#PackageSystemTests method
dir("${BASE_DIR}"){
cmd(label: "List files to upload", script: "ls -l ${BASE_DIR}/${fileName}")
googleStorageUploadExt(
bucket: "gs://${JOB_GCS_BUCKET}/${env.JOB_NAME}-${env.BUILD_ID}",
credentialsId: "${JOB_GCS_EXT_CREDENTIALS}",
pattern: "${BASE_DIR}/${fileName}",
sharedPublicly: true
)
def files = findFiles(glob: "${fileName}")
files.each { file ->
echo "${file.name}"
}
googleStorageUploadExt(
bucket: "gs://${JOB_GCS_BUCKET}/${env.JOB_NAME}-${env.BUILD_ID}",
credentialsId: "${JOB_GCS_EXT_CREDENTIALS}",
pattern: "${fileName}",
sharedPublicly: true
)
}
}
}
Expand Down

0 comments on commit 0801ec9

Please sign in to comment.