@@ -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} "
@@ -387,10 +386,13 @@ def publishPackages(beatsFolder){
387386* @param beatsFolder the beats folder.
388387*/
389388def uploadPackages (bucketUri , beatsFolder ){
390- googleStorageUploadExt(bucket : bucketUri,
391- credentialsId : " ${ JOB_GCS_EXT_CREDENTIALS} " ,
389+ googleStorageUpload(bucket : bucketUri,
390+ credentialsId : " ${ JOB_GCS_CREDENTIALS} " ,
391+ pathPrefix : " ${ beatsFolder} /build/distributions/" ,
392392 pattern : " ${ beatsFolder} /build/distributions/**/*" ,
393- sharedPublicly : true )
393+ sharedPublicly : true ,
394+ showInline : true
395+ )
394396}
395397
396398/**
@@ -785,12 +787,12 @@ def archiveTestOutput(Map args = [:]) {
785787* disk space of the jenkins instance
786788*/
787789def tarAndUploadArtifacts (Map args = [:]) {
788- def fileName = args. file . replaceAll( ' [^A-Za-z-0-9] ' , ' - ' )
789- tar( file : fileName, dir : args . location, archive : false , allowMissing : true )
790- googleStorageUploadExt( bucket : " gs:// ${ JOB_GCS_BUCKET } / ${ env.JOB_NAME } - ${ env.BUILD_ID } " ,
791- credentialsId : " ${ JOB_GCS_EXT_CREDENTIALS } " ,
792- pattern : " ${ fileName } " ,
793- sharedPublicly : true )
790+ tar( file : args . file, dir : args. location, archive : false , allowMissing : true )
791+ googleStorageUpload( bucket : " gs:// ${ JOB_GCS_BUCKET } / ${ env.JOB_NAME } - ${ env.BUILD_ID } " ,
792+ credentialsId : " ${ JOB_GCS_CREDENTIALS } " ,
793+ pattern : " ${ args.file } " ,
794+ sharedPublicly : true ,
795+ showInline : true )
794796}
795797
796798/**
0 commit comments