Skip to content

Commit 2f352f7

Browse files
v1vmergify-bot
authored andcommitted
Revert "[CI] googleStorageUploadExt step (#24048)" (#25454)
This reverts commit 8064395. (cherry picked from commit cdcbe36)
1 parent 87da3df commit 2f352f7

2 files changed

Lines changed: 21 additions & 17 deletions

File tree

.ci/packaging.groovy

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ pipeline {
1717
JOB_GCS_BUCKET = 'beats-ci-artifacts'
1818
JOB_GCS_BUCKET_STASH = 'beats-ci-temp'
1919
JOB_GCS_CREDENTIALS = 'beats-ci-gcs-plugin'
20-
JOB_GCS_EXT_CREDENTIALS = 'beats-ci-gcs-plugin-file-credentials'
2120
DOCKERELASTIC_SECRET = 'secret/observability-team/ci/docker-registry/prod'
2221
DOCKER_REGISTRY = 'docker.elastic.co'
2322
GITHUB_CHECK_E2E_TESTS_NAME = 'E2E Tests'
@@ -471,11 +470,14 @@ def publishPackages(baseDir){
471470
uploadPackages("${bucketUri}/${beatsFolderName}", baseDir)
472471
}
473472

474-
def uploadPackages(bucketUri, beatsFolder){
475-
googleStorageUploadExt(bucket: bucketUri,
476-
credentialsId: "${JOB_GCS_EXT_CREDENTIALS}",
477-
pattern: "${beatsFolder}/build/distributions/**/*",
478-
sharedPublicly: true)
473+
def uploadPackages(bucketUri, baseDir){
474+
googleStorageUpload(bucket: bucketUri,
475+
credentialsId: "${JOB_GCS_CREDENTIALS}",
476+
pathPrefix: "${baseDir}/build/distributions/",
477+
pattern: "${baseDir}/build/distributions/**/*",
478+
sharedPublicly: true,
479+
showInline: true
480+
)
479481
}
480482

481483
/**
@@ -530,4 +532,4 @@ def fixPermissions() {
530532
}
531533
}
532534
}
533-
}
535+
}

Jenkinsfile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ pipeline {
1515
DOCKER_REGISTRY = 'docker.elastic.co'
1616
JOB_GCS_BUCKET = 'beats-ci-temp'
1717
JOB_GCS_CREDENTIALS = 'beats-ci-gcs-plugin'
18-
JOB_GCS_EXT_CREDENTIALS = 'beats-ci-gcs-plugin-file-credentials'
1918
OSS_MODULE_PATTERN = '^[a-z0-9]+beat\\/module\\/([^\\/]+)\\/.*'
2019
PIPELINE_LOG_LEVEL = 'INFO'
2120
PYTEST_ADDOPTS = "${params.PYTEST_ADDOPTS}"
@@ -326,10 +325,13 @@ def publishPackages(beatsFolder){
326325
* @param beatsFolder the beats folder.
327326
*/
328327
def uploadPackages(bucketUri, beatsFolder){
329-
googleStorageUploadExt(bucket: bucketUri,
330-
credentialsId: "${JOB_GCS_EXT_CREDENTIALS}",
328+
googleStorageUpload(bucket: bucketUri,
329+
credentialsId: "${JOB_GCS_CREDENTIALS}",
330+
pathPrefix: "${beatsFolder}/build/distributions/",
331331
pattern: "${beatsFolder}/build/distributions/**/*",
332-
sharedPublicly: true)
332+
sharedPublicly: true,
333+
showInline: true
334+
)
333335
}
334336

335337
/**
@@ -724,12 +726,12 @@ def archiveTestOutput(Map args = [:]) {
724726
* disk space of the jenkins instance
725727
*/
726728
def tarAndUploadArtifacts(Map args = [:]) {
727-
def fileName = args.file.replaceAll('[^A-Za-z-0-9]','-')
728-
tar(file: fileName, dir: args.location, archive: false, allowMissing: true)
729-
googleStorageUploadExt(bucket: "gs://${JOB_GCS_BUCKET}/${env.JOB_NAME}-${env.BUILD_ID}",
730-
credentialsId: "${JOB_GCS_EXT_CREDENTIALS}",
731-
pattern: "${fileName}",
732-
sharedPublicly: true)
729+
tar(file: args.file, dir: args.location, archive: false, allowMissing: true)
730+
googleStorageUpload(bucket: "gs://${JOB_GCS_BUCKET}/${env.JOB_NAME}-${env.BUILD_ID}",
731+
credentialsId: "${JOB_GCS_CREDENTIALS}",
732+
pattern: "${args.file}",
733+
sharedPublicly: true,
734+
showInline: true)
733735
}
734736

735737
/**

0 commit comments

Comments
 (0)