We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9fd33f commit 9437c5cCopy full SHA for 9437c5c
.ci/packaging.groovy
@@ -222,7 +222,12 @@ def withMacOSEnv(Closure body){
222
}
223
224
def publishPackages(baseDir){
225
- googleStorageUpload(bucket: "gs://${JOB_GCS_BUCKET}/snapshots",
+ def bucketUri = "gs://${JOB_GCS_BUCKET}/snapshots"
226
+ if (env.CHANGE_ID?.trim()) {
227
+ bucketUri = "gs://${JOB_GCS_BUCKET}/pull-requests/pr-${env.CHANGE_ID}"
228
+ }
229
+
230
+ googleStorageUpload(bucket: "${bucketUri}",
231
credentialsId: "${JOB_GCS_CREDENTIALS}",
232
pathPrefix: "${baseDir}/build/distributions/",
233
pattern: "${baseDir}/build/distributions/**/*",
0 commit comments